:root {
  --bg: #07090d;
  --surface: #0d1219;
  --surface-2: #141b25;
  --text: #f3f7fb;
  --muted: #9aa8b7;
  --line: rgba(202, 213, 225, 0.16);
  --primary: #24c06f;
  --primary-strong: #138954;
  --primary-soft: rgba(24, 185, 107, 0.14);
  --accent: #1776d2;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --success: #067647;
  --success-soft: #dcfae6;
  --warning: #b54708;
  --warning-soft: #fff2cc;
  --blue: #1776d2;
  --silver: #c9d4df;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0b1018;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

body.public-page {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(36, 192, 111, 0.07), transparent 260px),
    linear-gradient(135deg, #05070a 0%, #090d13 54%, #05070a 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100dvh;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: #070b12;
  color: #e2e8f0;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}

.brand img,
.brand video {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #05070a;
}

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

.brand small {
  color: #94a3b8;
  font-size: 12px;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #cbd5e1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: rgba(24, 185, 107, 0.14);
  color: #f8fafc;
  outline: none;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  color: #cbd5e1;
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18b96b;
  box-shadow: 0 0 0 4px rgba(24, 185, 107, 0.14);
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px;
  min-width: 0;
}

.section {
  display: none;
  min-width: 0;
}

.section.active {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101722;
  box-shadow: var(--shadow);
  min-width: 0;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.quote-form,
.quote-card,
.table-panel,
.settings-grid .panel,
.worker-card {
  padding: 20px;
}

fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.asset-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.88);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.asset-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asset-option:has(input:focus-visible) {
  outline: 3px solid rgba(15, 118, 110, 0.22);
}

.asset-option:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(24, 185, 107, 0.18), rgba(8, 118, 218, 0.12));
  box-shadow: inset 0 0 0 1px var(--primary);
}

.coin-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #0f172a;
  font-size: 23px;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -8px 14px rgba(0, 0, 0, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

.coin-btc {
  background: radial-gradient(circle at 32% 24%, #fff4b8, #facc15 42%, #b36b00 100%);
}

.coin-ltc {
  background: radial-gradient(circle at 32% 24%, #ffffff, #cbd5e1 42%, #64748b 100%);
}

.coin-usdt {
  background: radial-gradient(circle at 32% 24%, #caffef, #35d08a 45%, #047857 100%);
  color: #052e1b;
}

.asset-option strong,
.asset-option small {
  display: block;
}

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

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

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field span {
  color: #d8e3ef;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: rgba(6, 10, 16, 0.74);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input[readonly] {
  background: rgba(23, 34, 49, 0.82);
  color: #c9d4df;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.secret-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  min-height: 48px;
}

.secret-input-wrap input {
  border-radius: var(--radius) 0 0 var(--radius);
}

.secret-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(16, 23, 34, 0.86);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.secret-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secret-toggle:hover,
.secret-toggle:focus-visible,
.secret-toggle.is-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #18b96b, #0876da);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 118, 218, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--primary-strong);
}

.secondary-button,
.ghost-button {
  background: rgba(16, 23, 34, 0.86);
  border-color: var(--line);
  color: var(--text);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
}

.small-button {
  min-height: 36px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--text);
}

.quote-card {
  position: sticky;
  top: 24px;
}

.quote-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #aab9cc;
  font-size: 14px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
}

.badge.live {
  background: var(--success-soft);
  color: var(--success);
}

.quote-card > strong {
  display: block;
  margin: 12px 0 18px;
  font-size: 34px;
  line-height: 1.1;
}

.quote-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quote-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.quote-card dt {
  color: var(--muted);
}

.quote-card dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.deposit-box {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: #05080d;
  color: #e2e8f0;
}

.deposit-box span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.deposit-box code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.quote-footnote {
  margin: 12px 0 0;
  color: #aab9cc;
  font-size: 13px;
}

.quote-footnote a {
  color: #39d98a;
  font-weight: 800;
}

.form-footnote {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  min-width: 0;
}

.fee-table,
.orders-table {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

td input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.done {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.stop {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.worker-card {
  display: grid;
  gap: 10px;
}

.worker-card svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.worker-card h2 {
  margin: 0;
}

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

.worker-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.worker-card.ready span {
  background: var(--success-soft);
  color: var(--success);
}

.worker-card.pending span {
  background: var(--warning-soft);
  color: var(--warning);
}

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

.usdt-collect-result {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.trx-fee-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr max-content;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(8, 118, 218, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(8, 118, 218, 0.08), rgba(24, 185, 107, 0.08));
}

.trx-fee-box div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trx-fee-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trx-fee-box code,
.trx-fee-box strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trx-fee-box p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sender-status-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sender-status-row {
  display: grid;
  grid-template-columns: max-content minmax(84px, 0.55fr) minmax(0, 2fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.72);
}

.sender-status-row strong {
  color: var(--ink);
  font-size: 14px;
}

.sender-status-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usdt-collect-row {
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.72);
}

.usdt-collect-row strong {
  color: var(--ink);
  font-size: 14px;
}

.usdt-collect-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #05080d;
  color: #f8fafc;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.public-shell {
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 28px 48px;
  position: relative;
}

.public-shell::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(201, 212, 223, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 212, 223, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotate(6deg);
}

.public-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.support-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(24, 185, 107, 0.28);
  border-radius: var(--radius);
  background: rgba(24, 185, 107, 0.1);
  color: #dfffee;
  font-weight: 800;
  text-decoration: none;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  color: #f7fbff;
  text-decoration: none;
}

.public-brand img,
.public-brand video {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201, 212, 223, 0.34);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(24, 185, 107, 0.06), 0 0 30px rgba(8, 118, 218, 0.22);
  background: #05070a;
}

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

.public-brand strong {
  font-size: 20px;
  letter-spacing: 0.12em;
}

.public-brand small {
  color: #91a4ba;
  font-size: 12px;
}

.public-rate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(201, 212, 223, 0.2);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.72);
  color: #edf4ff;
  font-weight: 700;
}

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 28px;
}

.mode-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(201, 212, 223, 0.18);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.72);
  color: #d8e3ef;
  font-weight: 800;
  text-decoration: none;
}

.mode-switch a.active {
  border-color: rgba(24, 185, 107, 0.5);
  background: linear-gradient(135deg, rgba(24, 185, 107, 0.22), rgba(8, 118, 218, 0.14));
  color: #ffffff;
}

.exchange-screen {
  position: relative;
}

.exchange-copy {
  margin-bottom: 18px;
}

.exchange-copy h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.94;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #f7fbff, #18b96b 45%, #0876da 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rate-warning {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 212, 223, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 185, 107, 0.12), rgba(8, 118, 218, 0.1)),
    rgba(5, 8, 13, 0.78);
  color: #edf4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rate-warning svg {
  color: #39d98a;
  flex: 0 0 auto;
}

.rate-warning span {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.exchange-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.public-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #101722;
  border-color: rgba(201, 212, 223, 0.18);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.coin-stage {
  position: absolute;
  top: -92px;
  right: -58px;
  width: min(360px, 42vw);
  aspect-ratio: 1;
  opacity: 0.72;
  pointer-events: none;
}

.coin-stage img {
  position: absolute;
  inset: 24%;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.42));
}

.coin-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 212, 223, 0.22);
}

.orbit-outer {
  background:
    repeating-conic-gradient(from 18deg, rgba(201, 212, 223, 0.34) 0 2deg, transparent 2deg 7deg),
    radial-gradient(circle, transparent 58%, rgba(24, 185, 107, 0.12) 59%, transparent 66%),
    radial-gradient(circle, transparent 70%, rgba(8, 118, 218, 0.14) 71%, transparent 77%);
}

.orbit-middle {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(24, 185, 107, 0.34);
}

.orbit-inner {
  inset: 24%;
  border-color: rgba(8, 118, 218, 0.34);
  box-shadow: inset 0 0 30px rgba(201, 212, 223, 0.08);
}

.public-result {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(24, 185, 107, 0.28);
  border-radius: var(--radius);
  background: rgba(24, 185, 107, 0.1);
}

.public-result strong,
.public-result span {
  display: block;
}

.public-result code {
  overflow-wrap: anywhere;
  color: #d8e3ef;
}

.result-row {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(201, 212, 223, 0.13);
  border-radius: 8px;
  background: rgba(6, 9, 14, 0.5);
}

.result-row span {
  color: #8fa3b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-row code {
  color: #f3f8fc;
  font-size: 14px;
}

.crypto-clean-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(201, 212, 223, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 185, 107, 0.09), rgba(8, 118, 218, 0.11)),
    rgba(16, 23, 34, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.crypto-clean-section h2 {
  margin: 0;
}

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

.route-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(201, 212, 223, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 8, 13, 0.54);
  color: #edf4ff;
  font-weight: 800;
  font-size: 13px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mapping-panel {
  margin-top: 20px;
  padding: 20px;
}

.earnings-panel {
  margin-top: 20px;
  padding: 20px;
}

.telegram-settings-panel {
  margin-top: 20px;
  padding: 20px;
}

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

.panel-heading-row h2 {
  margin: 0;
}

.panel-heading-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-heading-row span.open {
  color: var(--primary);
}

.panel-heading-row span.closed {
  color: #f59e0b;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

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

.earning-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 13, 0.44);
}

.earning-card strong,
.earning-card span {
  display: block;
}

.earning-card span {
  color: var(--muted);
  font-size: 13px;
}

.earning-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.earning-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.earning-card dt {
  color: var(--muted);
  font-size: 13px;
}

.earning-card dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mapping-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
}

.mapping-grid code {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 13, 0.58);
  color: #c9d4df;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.profit-panel,
.approval-panel {
  padding: 20px;
}

.profit-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.profit-panel h2 {
  margin: 0;
}

.approval-list {
  display: grid;
  gap: 14px;
}

.approval-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 185, 107, 0.07), rgba(8, 118, 218, 0.06)),
    rgba(5, 8, 13, 0.48);
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-card-head strong,
.order-card-head small {
  display: block;
}

.order-card-head small {
  color: var(--muted);
  font-size: 13px;
}

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

.metric {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(201, 212, 223, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.74);
}

.metric span,
.metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  align-self: center;
  overflow-wrap: anywhere;
  color: #f7fbff;
  font-size: 18px;
  line-height: 1.18;
  font-variant-numeric: tabular-nums;
}

.metric.profit {
  border-color: rgba(24, 185, 107, 0.32);
  background: rgba(24, 185, 107, 0.1);
}

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

.order-details div {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #d8e3ef;
}

.order-details a {
  color: #39d98a;
  font-weight: 800;
}

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

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-link {
    justify-content: center;
  }

  .nav-link span {
    display: none;
  }

  .sidebar-note {
    display: none;
  }

  main {
    padding: 22px;
  }

  .quote-layout,
  .exchange-grid,
  .settings-grid,
  .control-grid,
  .worker-grid,
  .crypto-clean-section,
  .earnings-grid,
  .metric-grid,
  .order-details {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .trx-fee-box {
    grid-template-columns: 1fr;
  }

  .usdt-collect-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sender-status-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .trx-fee-box code,
  .trx-fee-box strong,
  .sender-status-row small,
  .usdt-collect-row small {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  main {
    padding: 16px;
  }

  .public-shell {
    padding: 16px;
  }

  .public-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-link,
  .public-rate-button,
  .mode-switch a {
    width: 100%;
  }

  .coin-stage {
    top: -34px;
    right: -70px;
    width: 240px;
    opacity: 0.42;
  }

  .section-header,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    font-size: 28px;
  }

  .quote-card > strong {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* WASHME refined interface */
body {
  letter-spacing: 0;
}

body.public-page {
  color: #f4f8fb;
}

.public-shell {
  width: min(1160px, 100%);
  padding: 20px 24px 42px;
}

.public-shell::before {
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(201, 212, 223, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 212, 223, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: none;
}

.public-topbar {
  min-height: 72px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 212, 223, 0.14);
}

.public-brand {
  min-width: 0;
}

.public-brand img,
.public-brand video {
  width: 52px;
  height: 52px;
  box-shadow: none;
}

.public-brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.support-link,
.public-rate-button {
  background: rgba(13, 18, 25, 0.82);
  border-color: rgba(201, 212, 223, 0.18);
  color: #edf4ff;
  min-height: 48px;
  padding-inline: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.support-link:hover,
.support-link:focus-visible,
.public-rate-button:hover,
.public-rate-button:focus-visible {
  border-color: rgba(36, 192, 111, 0.58);
  transform: translateY(-1px);
  outline: none;
}

.exchange-screen {
  display: grid;
  gap: 18px;
}

.exchange-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0;
}

.route-line {
  margin: 0;
  color: #82d7aa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.exchange-copy h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  background: linear-gradient(90deg, #ffffff 0%, #c9d4df 46%, #24c06f 72%, #1776d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.exchange-copy p:not(.route-line) {
  margin: 0;
  color: #b9c6d4;
  font-size: clamp(16px, 2vw, 18px);
}

.rate-warning {
  width: min(720px, 100%);
  margin: 0;
  background: rgba(12, 18, 25, 0.74);
  border-color: rgba(201, 212, 223, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.operating-hours-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(920px, 100%);
  padding: 13px 15px;
  background: rgba(12, 18, 25, 0.78);
  border: 1px solid rgba(201, 212, 223, 0.13);
  border-radius: 8px;
  color: #d8e5ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.operating-hours-note svg {
  width: 22px;
  height: 22px;
  color: #82d7aa;
}

.operating-hours-note span {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.operating-hours-note strong {
  justify-self: end;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 212, 223, 0.18);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.72);
  color: #edf4ff;
  font-size: 12px;
  white-space: nowrap;
}

.operating-hours-note strong.open {
  border-color: rgba(36, 192, 111, 0.5);
  color: #dfffee;
}

.operating-hours-note strong.closed {
  border-color: rgba(236, 185, 91, 0.42);
  color: #ffe4ad;
}

.exchange-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.public-panel,
.panel {
  background: rgba(13, 18, 25, 0.94);
  border-color: rgba(201, 212, 223, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.quote-form,
.quote-card {
  padding: 18px;
}

.quote-form fieldset {
  margin-bottom: 18px;
}

.asset-grid {
  gap: 10px;
}

.asset-option {
  min-height: 70px;
  background: rgba(8, 12, 18, 0.72);
}

.asset-option:has(input:checked) {
  background: rgba(36, 192, 111, 0.12);
  box-shadow: inset 0 0 0 1px rgba(36, 192, 111, 0.45);
}

.coin-mark {
  width: 40px;
  height: 40px;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.45), inset 0 -8px 12px rgba(0, 0, 0, 0.24);
}

.field span {
  color: #e7edf4;
}

.field input,
.field select {
  min-height: 48px;
  border-color: rgba(201, 212, 223, 0.3);
  background: #070b10;
  color: #f6fafc;
}

.field input[readonly] {
  background: rgba(20, 27, 37, 0.98);
  border-color: rgba(36, 192, 111, 0.26);
  color: #dfffee;
  font-weight: 800;
}

.primary-button {
  min-height: 52px;
  border-bottom-color: rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #5ee49a 0%, #24c06f 100%);
  color: #06110b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 14px 28px rgba(36, 192, 111, 0.18), 0 3px 0 rgba(8, 74, 39, 0.55);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(180deg, #73efaa 0%, #30cc7a 100%);
  color: #06110b;
  transform: translateY(-1px);
  outline: none;
}

.primary-button:active,
.support-link:active,
.public-rate-button:active {
  transform: translateY(1px);
}

.secondary-button,
.ghost-button,
.small-button {
  background: rgba(8, 12, 18, 0.72);
  border-color: rgba(201, 212, 223, 0.18);
  min-height: 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.small-button:hover,
.small-button:focus-visible {
  border-color: rgba(36, 192, 111, 0.55);
  color: #dfffee;
  outline: none;
}

.quote-card {
  top: 18px;
}

.quote-card > strong {
  font-size: clamp(30px, 4vw, 42px);
  color: #ffffff;
  letter-spacing: 0;
}

.quote-submit-button {
  width: 100%;
  min-height: 48px;
  margin: 14px 0 4px;
}

.quote-card dl div,
.order-details div {
  border-bottom-color: rgba(201, 212, 223, 0.13);
}

.deposit-box {
  background: #06090e;
  border: 1px solid rgba(201, 212, 223, 0.12);
}

.public-result {
  background: rgba(36, 192, 111, 0.1);
  border-color: rgba(36, 192, 111, 0.3);
}

.crypto-clean-section,
.coin-stage {
  display: none;
}

.app-shell {
  background:
    linear-gradient(180deg, rgba(36, 192, 111, 0.05), transparent 230px),
    #080b11;
}

.sidebar {
  background: #06090e;
  border-right: 1px solid rgba(201, 212, 223, 0.12);
}

main {
  width: min(1240px, 100%);
}

.control-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.brand {
  min-height: 72px;
}

.brand img,
.brand video {
  width: 68px;
  height: 68px;
  border-color: rgba(36, 192, 111, 0.38);
  box-shadow: 0 0 0 3px rgba(36, 192, 111, 0.08), 0 18px 34px rgba(0, 0, 0, 0.36);
}

.brand strong {
  font-size: 18px;
}

.public-brand img,
.public-brand video {
  width: 76px;
  height: 76px;
  border-color: rgba(36, 192, 111, 0.42);
  box-shadow: 0 0 0 5px rgba(36, 192, 111, 0.08), 0 0 42px rgba(8, 118, 218, 0.28);
}

.hero-logo-media {
  width: clamp(112px, 12vw, 148px);
  height: clamp(112px, 12vw, 148px);
  margin-bottom: 18px;
  border: 1px solid rgba(36, 192, 111, 0.45);
  border-radius: 50%;
  object-fit: cover;
  background: #05070a;
  box-shadow:
    0 0 0 8px rgba(36, 192, 111, 0.07),
    0 0 54px rgba(8, 118, 218, 0.34),
    0 24px 54px rgba(0, 0, 0, 0.42);
}

.control-grid + .telegram-settings-panel {
  margin-top: 16px;
}

.worker-card,
.profit-panel,
.approval-panel,
.table-panel {
  box-shadow: none;
}

.approval-card {
  background: rgba(8, 12, 18, 0.72);
  box-shadow: none;
}

.metric {
  min-height: 86px;
  background: rgba(20, 27, 37, 0.72);
}

.metric strong {
  font-size: clamp(16px, 1.4vw, 18px);
}

@media (max-width: 980px) {
  .public-shell {
    padding: 18px 18px 34px;
  }

  .public-topbar {
    margin-bottom: 18px;
  }

  .exchange-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .public-shell {
    padding: 14px 14px 28px;
  }

  .public-topbar {
    gap: 12px;
    min-height: auto;
    padding-bottom: 12px;
  }

  .topbar-actions {
    flex-direction: row;
  }

  .support-link,
  .public-rate-button {
    flex: 1 1 180px;
    min-width: 0;
  }

  .public-rate-button span,
  .support-link {
    font-size: 14px;
  }

  .exchange-copy h1 {
    font-size: 46px;
  }

  .rate-warning {
    align-items: flex-start;
    font-size: 14px;
  }

  .operating-hours-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operating-hours-note strong {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .quote-form,
  .quote-card,
  .profit-panel,
  .approval-panel,
  .table-panel,
  .worker-card {
    padding: 14px;
  }

  .asset-option {
    min-height: 64px;
  }

  .form-actions {
    gap: 8px;
  }

  .form-actions button,
  .order-actions button {
    width: 100%;
  }

  .quote-card > strong {
    font-size: 30px;
  }

  .metric {
    min-height: 78px;
  }
}

/* Premium exchange polish */
.public-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    linear-gradient(135deg, #030507 0%, #0b1017 42%, #06090e 100%);
}

.public-shell {
  width: min(1180px, 100%);
  padding: 28px 22px 56px;
}

.public-shell::before {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(201, 212, 223, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 212, 223, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

.public-topbar {
  min-height: 88px;
  margin-bottom: 34px;
  padding: 12px 0 22px;
  border-bottom: 1px solid rgba(201, 212, 223, 0.14);
}

.public-brand {
  gap: 16px;
}

.public-brand img,
.public-brand video {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(201, 212, 223, 0.34);
  box-shadow:
    0 0 0 6px rgba(36, 192, 111, 0.07),
    0 0 44px rgba(23, 118, 210, 0.24),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.public-brand strong {
  font-size: 24px;
  font-weight: 900;
}

.public-brand small {
  color: #aebdcb;
  font-size: 12px;
  line-height: 1.25;
  max-width: 280px;
  letter-spacing: 0.02em;
}

.support-link,
.public-rate-button {
  min-height: 50px;
  padding-inline: 18px;
  border-color: rgba(201, 212, 223, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(8, 12, 18, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 28px rgba(0, 0, 0, 0.22);
}

.exchange-screen {
  gap: 22px;
}

.exchange-copy {
  position: relative;
  max-width: 820px;
}

.hero-logo-media {
  width: clamp(136px, 13vw, 176px);
  height: clamp(136px, 13vw, 176px);
  margin-bottom: 20px;
  border-color: rgba(201, 212, 223, 0.38);
  box-shadow:
    0 0 0 8px rgba(36, 192, 111, 0.06),
    0 0 64px rgba(23, 118, 210, 0.3),
    0 28px 62px rgba(0, 0, 0, 0.48);
}

.route-line {
  color: #9ee6bd;
}

.exchange-copy h1 {
  font-size: clamp(52px, 7.2vw, 92px);
  font-weight: 900;
}

.exchange-copy p:not(.route-line) {
  max-width: 640px;
  color: #c5d0dc;
}

.rate-warning,
.operating-hours-note {
  width: min(900px, 100%);
  border-color: rgba(201, 212, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(8, 12, 18, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 14px 34px rgba(0, 0, 0, 0.2);
}

.rate-warning {
  padding: 13px 15px;
}

.operating-hours-note {
  padding: 15px 16px;
}

.exchange-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 24px;
}

.public-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(201, 212, 223, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    #0b1119;
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.public-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(36, 192, 111, 0.75), rgba(23, 118, 210, 0.58), transparent);
  pointer-events: none;
}

.quote-form,
.quote-card {
  padding: 24px;
}

.quote-card {
  position: sticky;
  top: 18px;
}

.quote-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-card > strong {
  display: block;
  margin: 12px 0 2px;
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1;
}

.asset-grid {
  gap: 12px;
}

.asset-option {
  min-height: 78px;
  border-color: rgba(201, 212, 223, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(7, 11, 16, 0.86);
}

.asset-option:hover,
.asset-option:focus-within {
  border-color: rgba(201, 212, 223, 0.3);
}

.asset-option:has(input:checked) {
  border-color: rgba(36, 192, 111, 0.7);
  background:
    linear-gradient(135deg, rgba(36, 192, 111, 0.18), rgba(23, 118, 210, 0.1)),
    rgba(7, 11, 16, 0.96);
}

.field input,
.field select {
  min-height: 52px;
  border-color: rgba(201, 212, 223, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    #05080d;
}

.field input:focus,
.field select:focus {
  border-color: rgba(36, 192, 111, 0.72);
  box-shadow: 0 0 0 3px rgba(36, 192, 111, 0.14), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.field input[readonly] {
  border-color: rgba(36, 192, 111, 0.36);
  background: rgba(10, 18, 15, 0.92);
  color: #e6fff0;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button,
.danger-button {
  border-radius: 8px;
}

.primary-button {
  min-height: 54px;
}

.deposit-box {
  border-color: rgba(201, 212, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    #05080d;
}

.quote-footnote {
  color: #9fb0bf;
}

.public-result {
  border-color: rgba(36, 192, 111, 0.36);
  background:
    linear-gradient(180deg, rgba(36, 192, 111, 0.14), rgba(23, 118, 210, 0.05)),
    rgba(7, 11, 16, 0.9);
}

.app-shell {
  background:
    linear-gradient(180deg, rgba(36, 192, 111, 0.055), transparent 280px),
    #070a0f;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    #05080d;
}

.brand img,
.brand video {
  width: 76px;
  height: 76px;
}

.control-grid {
  gap: 18px;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
}

.telegram-settings-panel,
.wallet-settings-panel,
.profit-panel,
.worker-card,
.approval-panel,
.table-panel {
  padding: 22px;
  border-color: rgba(201, 212, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    #0b1119;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.3);
}

.telegram-settings-panel {
  margin-top: 18px;
}

.wallet-settings-panel,
.approval-panel {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .public-shell {
    padding: 18px 18px 40px;
  }

  .public-topbar {
    align-items: flex-start;
  }

  .public-brand img,
  .public-brand video {
    width: 72px;
    height: 72px;
  }

  .exchange-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: static;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .brand img,
  .brand video {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .public-shell {
    padding: 12px 12px 28px;
  }

  .public-topbar {
    display: grid;
    gap: 14px;
  }

  .public-brand {
    gap: 12px;
  }

  .public-brand img,
  .public-brand video {
    width: 64px;
    height: 64px;
  }

  .public-brand strong {
    font-size: 20px;
  }

  .public-brand small {
    max-width: 230px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .support-link,
  .public-rate-button {
    width: 100%;
    min-height: 48px;
    padding-inline: 10px;
  }

  .hero-logo-media {
    width: 112px;
    height: 112px;
    margin-bottom: 12px;
  }

  .exchange-copy h1 {
    font-size: clamp(42px, 14vw, 54px);
  }

  .exchange-copy p:not(.route-line) {
    font-size: 16px;
  }

  .rate-warning,
  .operating-hours-note {
    padding: 13px;
  }

  .operating-hours-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operating-hours-note strong {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .quote-form,
  .quote-card,
  .telegram-settings-panel,
  .wallet-settings-panel,
  .profit-panel,
  .worker-card,
  .approval-panel,
  .table-panel {
    padding: 16px;
  }

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

  .asset-option {
    min-height: 68px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field input,
  .field select {
    min-height: 50px;
  }

  .quote-card > strong {
    font-size: 34px;
  }

  .quote-card {
    display: none;
  }

  .form-footnote {
    display: block;
  }

  .quote-topline {
    align-items: flex-start;
  }

  .form-actions,
  .settings-actions {
    display: grid;
  }

  .form-actions button,
  .settings-actions button,
  .order-actions button {
    width: 100%;
  }

  .sidebar {
    padding: 14px;
  }

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

  .nav-link {
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 6px;
    font-size: 12px;
  }

  .nav-link span {
    display: inline;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-link svg {
    width: 16px;
    height: 16px;
  }

  .section {
    padding: 16px 12px 28px;
  }

  .section-header {
    display: grid;
    gap: 12px;
  }

  .section-header button {
    width: 100%;
  }

  .panel-heading-row {
    align-items: flex-start;
  }
}

/* Header tagline fix */
.public-topbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  column-gap: 26px;
}

.topbar-tagline {
  justify-self: center;
  min-width: 0;
  color: transparent;
  background: linear-gradient(90deg, #24c06f 0%, #dce7f1 34%, #1887ff 64%, #24c06f 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(14px, 1.28vw, 19px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(36, 192, 111, 0.18);
  animation: washmeTaglineFlow 4.8s ease-in-out infinite;
}

@keyframes washmeTaglineFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-tagline {
    animation: none;
  }
}

@media (max-width: 980px) {
  .public-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 12px;
  }

  .topbar-tagline {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .public-topbar {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .topbar-tagline {
    font-size: 13px;
    white-space: normal;
    margin-bottom: -2px;
  }

  .topbar-actions {
    margin-top: -2px;
  }

  .support-link,
  .public-rate-button {
    min-height: 42px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .support-link svg,
  .public-rate-button svg {
    width: 16px;
    height: 16px;
  }
}

/* Logo-matched header actions */
.support-link,
.public-rate-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -16px 26px rgba(0, 0, 0, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

.support-link {
  background:
    radial-gradient(circle at 22% 16%, rgba(232, 255, 238, 0.72), transparent 22%),
    linear-gradient(150deg, rgba(55, 190, 116, 0.7) 0%, rgba(8, 73, 51, 0.92) 45%, rgba(5, 36, 31, 1) 100%),
    linear-gradient(320deg, rgba(24, 177, 101, 0.82), rgba(3, 42, 34, 0.98));
  border-color: rgba(72, 208, 135, 0.42);
  text-shadow: 0 2px 2px rgba(0, 20, 13, 0.55);
}

.public-rate-button {
  background:
    radial-gradient(circle at 24% 14%, rgba(238, 252, 255, 0.7), transparent 23%),
    linear-gradient(145deg, rgba(48, 166, 232, 0.72) 0%, rgba(10, 66, 132, 0.96) 46%, rgba(5, 27, 66, 1) 100%),
    linear-gradient(320deg, rgba(41, 99, 210, 0.88), rgba(4, 34, 78, 0.98));
  border-color: rgba(78, 164, 229, 0.44);
  text-shadow: 0 2px 2px rgba(0, 12, 34, 0.58);
}

.support-link::before,
.public-rate-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(255, 255, 255, 0.24) 42%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%);
  opacity: 0.42;
  transform: translateX(-36%);
  transition: transform 260ms ease, opacity 260ms ease;
}

.support-link:hover,
.support-link:focus-visible,
.public-rate-button:hover,
.public-rate-button:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -14px 24px rgba(0, 0, 0, 0.18),
    0 20px 38px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(70, 160, 218, 0.16);
}

.support-link:hover::before,
.support-link:focus-visible::before,
.public-rate-button:hover::before,
.public-rate-button:focus-visible::before {
  opacity: 0.62;
  transform: translateX(8%);
}

.support-link svg,
.public-rate-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.24));
}

.support-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 680px) {
  .public-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    margin-bottom: 22px;
  }

  .public-brand {
    grid-column: 1;
    min-width: 0;
  }

  .public-brand img,
  .public-brand video {
    width: 56px;
    height: 56px;
  }

  .public-brand strong {
    font-size: 18px;
  }

  .public-brand small {
    font-size: 11px;
  }

  .topbar-tagline {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 12px;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    justify-self: end;
    width: 138px;
    gap: 5px;
    margin: 0;
  }

  .support-link,
  .public-rate-button {
    width: 100%;
    min-height: 34px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .support-link span,
  .public-rate-button span {
    white-space: nowrap;
  }

  .support-link svg,
  .public-rate-button svg {
    width: 13px;
    height: 13px;
  }
}
