/* Private Marine — one visual language across client, orders and management. */
:root {
  color-scheme: dark;
  --navy: #101b2a;
  --paper: #101b2a;
  --card: #172436;
  --surface: #1c2c40;
  --surface-deep: #0d1724;
  --ink: #f5f0e5;
  --ink2: #e3ddd0;
  --muted: #a5afbb;
  --line: #314052;
  --gold: #d7bd80;
  --gold-soft: #deca9b;
  --lime: #d7bd80;
  --lime-dark: #d7bd80;
  --danger: #f0a598;
  --success: #a8ceb6;
  --nav-height: 84px;
  --radius: 22px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom));
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface-deep); }
body { margin: 0; background: var(--surface-deep); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
input, select, textarea { color: var(--ink); color-scheme: dark; }
select option { background: var(--surface); color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
button, a, input, select, textarea, summary { transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
::selection { background: var(--gold); color: var(--navy); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app-shell { max-width: 1120px; min-height: 100dvh; background: var(--paper); margin: 0 auto; padding-bottom: calc(var(--nav-height) + var(--safe-bottom)); }
.app-header { height: calc(104px + var(--safe-top)); padding: var(--safe-top) 48px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 14px; align-items: center; font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: 3px; }
.brand img { width: 38px; height: 38px; }
.brand-location { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2px; margin-top: 9px; color: var(--gold); }
.header-account { display: flex; gap: 9px; align-items: center; min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 10px 15px; font-size: 11px; color: var(--muted); }
.header-account .icon { width: 14px; height: 14px; }
.connection-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--muted); }
.connection-dot.connected { background: var(--success); }
.preview-notice { background: #152234; padding: 10px 48px; color: var(--muted); font-size: 11px; text-align: center; border-bottom: 1px solid var(--line); }
main { outline: none; }
.app-footer { display: flex; justify-content: space-between; gap: 16px; padding: 34px 48px; color: var(--muted); font-size: 11px; letter-spacing: .2px; }
.page { padding: 42px 48px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; gap: 18px; }
.page-heading > div { min-width: 0; }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: 1.7px; text-transform: uppercase; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; height: 1px; width: 22px; flex-shrink: 0; background: currentColor; opacity: .65; }
.page-title { font-family: var(--display); font-size: 48px; line-height: 1.05; letter-spacing: -.8px; margin: 12px 0; font-weight: 500; }
.page-subtitle { margin: 0; color: var(--muted); max-width: 540px; font-size: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 16px; gap: 14px; }
.section-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; margin: 0; }
.section-heading > a, .text-button { font-size: 11px; color: var(--gold); background: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 2px; min-height: 44px; }
.section-heading .icon, .text-button .icon { width: 15px; height: 15px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 27px; }
.hero { margin: 32px 48px 0; background: #122033; border: 1px solid var(--line); border-radius: 26px; min-height: 346px; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 1; width: 72%; padding: 40px; }
.hero .eyebrow { font-size: 11px; letter-spacing: 1.8px; }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 5vw, 66px); line-height: .99; font-weight: 500; letter-spacing: -1.4px; margin: 23px 0 18px; }
.hero h1 em { font-weight: 500; color: var(--gold); font-style: italic; }
.hero p { color: #b9c2ce; font-size: 13px; max-width: 375px; margin: 0; line-height: 1.75; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 11px; margin-top: 25px; border-top: 1px solid #d7bd803d; padding: 13px 0 0; }
.hero-chip .icon { height: 15px; width: 15px; }
.hero-image { position: absolute; right: 0; top: 0; height: 100%; width: 45%; object-fit: cover; opacity: .25; mask-image: linear-gradient(90deg, transparent, black); }
.hero-art { position: absolute; inset: 0 0 0 47%; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 85% 75%, #d7bd8012, transparent 64%); }
.hero-art::before { content: ""; position: absolute; left: -18%; right: -12%; bottom: 25%; height: 1px; background: linear-gradient(90deg, transparent, #d7bd8066 56%, transparent); transform: rotate(-13deg); }
.hero-art::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); right: 24%; bottom: 35%; box-shadow: 0 0 0 6px #d7bd8010; }
.orbit-one, .orbit-two { position: absolute; border: 1px solid #d7bd8038; border-radius: 50%; width: 340px; height: 340px; right: -55px; top: 10px; transform: rotate(-25deg) scaleX(.75); }
.orbit-two { width: 420px; height: 420px; right: -95px; top: -30px; border-color: #d7bd801b; transform: rotate(30deg) scaleX(.72); }
.hero-coordinate { position: absolute; right: 26px; bottom: 27px; font-size: 10px; letter-spacing: 2px; color: #c6b387; }
.transfer-body { padding: 0 48px; }
.rate-ribbon { display: flex; align-items: center; justify-content: space-between; padding: 24px 2px; gap: 15px; }
.rate-label { display: flex; gap: 12px; align-items: center; min-width: 0; }
.token-icon { width: 34px; height: 34px; border-radius: 50%; background: #d7bd8010; border: 1px solid #d7bd8033; color: var(--gold); display: grid; place-items: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.token-icon.tether { font-family: var(--display); }
.rate-label strong { display: block; font-size: 12px; font-weight: 600; }
.rate-label small { color: var(--muted); font-size: 11px; display: block; }
.rate-value { text-align: right; }
.rate-value strong { font-size: 20px; letter-spacing: -.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rate-value small { display: block; color: var(--muted); font-size: 11px; }
.rate-unavailable { color: var(--muted); font-size: 12px; font-weight: 500; }
.calculator { padding: 30px; }
.calculator-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 12px; }
.calculator-top h2 { font-size: 20px; font-weight: 600; letter-spacing: -.6px; margin: 0; }
.small-badge { border-radius: 20px; border: 1px solid #d7bd8033; background: #d7bd800a; color: var(--gold); padding: 5px 10px; font-size: 11px; line-height: 1.3; }
.form-label { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin: 0 0 10px; letter-spacing: .2px; }
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.source { display: flex; align-items: center; gap: 7px; justify-content: center; min-width: 0; background: transparent; border: 1px solid var(--line); border-radius: 10px; min-height: 47px; padding: 10px 6px; font-size: 11px; font-weight: 600; }
.source.active { border-color: var(--gold); background: #d7bd800d; color: var(--gold-soft); }
.source:disabled { background: var(--surface-deep); }
.source-mark { font-size: 14px; line-height: 1; font-weight: 600; color: var(--muted); }
.source.active .source-mark { color: var(--gold); }
.amount-row { display: flex; gap: 12px; align-items: stretch; }
.amount-field { background: var(--surface-deep); border: 1px solid var(--line); border-radius: 13px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; min-width: 0; flex: 1; position: relative; }
.amount-field > div { min-width: 0; }
.amount-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px #d7bd800b; }
.amount-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.amount-field input { font-size: 34px; letter-spacing: -.8px; line-height: 1.2; background: none; border: 0; width: 100%; outline: none; font-weight: 500; padding: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.currency-select { margin-left: 10px; border: 0; background: none; font-size: 16px; font-weight: 600; min-width: 75px; min-height: 44px; padding: 5px; color: var(--gold-soft); }
.amount-hint { font-size: 11px; color: var(--muted); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 9px 2px 0; }
.receive-options { --receive-index: 1; --receive-count: 3; position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(var(--receive-count), minmax(0, 1fr)); gap: 0; padding: 4px; background: var(--surface-deep); border: 1px solid var(--line); border-radius: 12px; margin: 22px 0 15px; }
.receive-options::before { content: ""; position: absolute; z-index: -1; inset: 4px auto 4px 4px; width: calc((100% - 8px) / var(--receive-count)); border: 1px solid #d7bd8066; border-radius: 8px; background: #d7bd8015; transform: translateX(calc(var(--receive-index) * 100%)); transition: transform 220ms var(--ease); }
.receive-option { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: none; border-radius: 8px; padding: 10px 6px; min-height: 52px; font-size: 11px; line-height: 1.5; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.receive-option.active { color: var(--gold-soft); }
.receive-option .icon { width: 16px; height: 16px; }
.quote-box { background: var(--surface-deep); border: 1px solid #d7bd8040; border-radius: 14px; display: flex; padding: 22px; color: var(--ink); justify-content: space-between; gap: 15px; align-items: center; min-height: 115px; }
.quote-box > div { min-width: 0; }
.quote-label { color: var(--muted); font-size: 11px; display: block; margin-bottom: 7px; }
.quote-amount { font-size: 35px; line-height: 1.2; font-weight: 500; letter-spacing: -.9px; font-variant-numeric: tabular-nums; color: var(--gold-soft); overflow-wrap: anywhere; }
.quote-amount .unit { font-size: 14px; letter-spacing: 0; margin-left: 5px; color: var(--gold-soft); }
.quote-extra { font-size: 11px; color: var(--muted); margin-top: 6px; }
.quote-decoration { width: 44px; height: 44px; border: 1px solid #d7bd8040; border-radius: 50%; display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.quote-decoration .icon { width: 22px; height: 22px; }
.quote-message { color: var(--ink); font-size: 13px; line-height: 1.6; max-width: 350px; }
.quote-message small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.quote-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin: 13px 2px 21px; }
.inline-error { color: var(--danger); background: #f0a5980e; border: 1px solid #f0a59840; border-radius: 10px; padding: 12px 14px; font-size: 12px; margin: 13px 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; border-radius: 11px; padding: 13px 19px; font-size: 12px; font-weight: 600; background: var(--gold); color: var(--navy); border: 1px solid transparent; }
.btn .icon { width: 17px; height: 17px; }
.btn-wide { width: 100%; justify-content: space-between; }
.btn-dark { background: var(--surface-deep); color: var(--gold-soft); border-color: #d7bd8050; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-small { min-height: 44px; padding: 10px 13px; font-size: 11px; }
.btn-danger { background: #f0a5980d; color: var(--danger); border-color: #f0a59840; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; }
.fineprint { font-size: 11px; color: var(--muted); text-align: center; margin: 13px 0 0; line-height: 1.7; }
.discount-box { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; gap: 12px; }
.discount-box strong { display: block; font-weight: 600; }
.discount-box small { display: block; color: var(--muted); font-size: 11px; }
.switch { position: relative; display: inline-flex; width: 44px; min-height: 44px; align-items: center; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { background: #3f4b5b; border-radius: 25px; width: 44px; height: 25px; position: relative; transition: background-color 180ms var(--ease); }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 17px; height: 17px; background: var(--ink); border-radius: 50%; transition: transform 180ms var(--ease); }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(19px); background: var(--navy); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
.how-card { margin-top: 24px; display: flex; align-items: center; gap: 15px; border-radius: 17px; padding: 22px; background: var(--card); border: 1px solid var(--line); width: 100%; text-align: left; }
.how-symbol { border: 1px solid #d7bd803d; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; color: var(--gold); }
.how-card strong { font-size: 13px; font-weight: 600; display: block; }
.how-card small { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.how-card > .icon { margin-left: auto; width: 17px; height: 17px; color: var(--gold); }
.partners { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 5px; gap: 15px; }
.partners span { font-size: 11px; color: var(--muted); }
.partner-names { display: flex; flex-wrap: wrap; gap: 15px; font-size: 12px; color: var(--ink2); font-weight: 600; letter-spacing: -.2px; }
.transfer-aside { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.transfer-aside h3 { font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.2; margin: 0 0 13px; }
.transfer-aside p { font-size: 12px; color: var(--muted); margin: 0 0 18px; max-width: 300px; }
.mini-point { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; color: var(--muted); margin-top: 10px; }
.mini-point .icon { height: 16px; width: 16px; color: var(--gold); margin-top: 2px; }
.trust-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; border-top: 1px solid var(--line); margin: 30px 0 0; padding: 24px 0 0; }
.trust-step { display: flex; align-items: flex-start; gap: 8px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.trust-step > span, .trust-step .step-number { color: var(--gold); }
.trust-step .icon { width: 14px; height: 14px; color: var(--gold); margin-top: 3px; }
.trust-step strong { display: block; color: var(--ink); font-size: 12px; margin: 7px 0 3px; font-weight: 500; }
.empty-state { border: 1px dashed #4b5664; border-radius: 20px; text-align: center; padding: 40px 25px; color: var(--muted); }
.empty-state .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 15px; }
.empty-state h3 { font-size: 17px; color: var(--ink); font-weight: 600; margin: 0 0 8px; }
.empty-state p { font-size: 12px; margin: 0 auto 18px; max-width: 380px; }
.info-card { display: flex; gap: 12px; align-items: flex-start; background: #1d2c3e; border: 1px solid var(--line); border-radius: 12px; padding: 17px; margin: 18px 0; color: var(--ink2); font-size: 12px; }
.info-card .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.info-card p { margin: 0; }
.field { margin-bottom: 20px; min-width: 0; }
.field label { font-size: 12px; display: block; margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface-deep); border: 1px solid var(--line); min-height: 50px; border-radius: 10px; padding: 12px 14px; outline: none; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #d7bd800b; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #909dad; opacity: 1; }
.field textarea { min-height: 110px; resize: vertical; }
.field small { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 17px; }
.detail-list { margin: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); min-width: 0; }
.detail-row dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; max-width: 65%; font-variant-numeric: tabular-nums; }
.review-total { background: var(--surface-deep); border: 1px solid #d7bd8040; border-radius: 13px; margin: 20px 0; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.review-total span { font-size: 11px; color: var(--muted); }
.review-total strong { font-size: 27px; letter-spacing: -.7px; font-weight: 500; color: var(--gold-soft); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: flex; gap: 17px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border: 0; }
.step-number { display: grid; place-items: center; border: 1px solid #d7bd8040; width: 35px; height: 35px; border-radius: 50%; font-family: var(--display); font-size: 21px; color: var(--gold); flex-shrink: 0; }
.step h3 { font-size: 14px; letter-spacing: -.1px; margin: 1px 0 8px; font-weight: 600; }
.step p { font-size: 12px; color: var(--muted); margin: 0; }
.big-rate { background: #142237; border: 1px solid var(--line); border-radius: 22px; padding: 32px; position: relative; overflow: hidden; }
.big-rate::after { content: "₮"; position: absolute; right: 26px; top: 0; font-size: 170px; line-height: 1; color: #d7bd8010; font-family: var(--display); }
.big-rate strong { display: block; font-size: 51px; font-weight: 500; letter-spacing: -1.9px; line-height: 1.3; margin: 17px 0 7px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; color: var(--gold-soft); overflow-wrap: anywhere; }
.big-rate strong small { font-size: 21px; letter-spacing: 0; }
.big-rate p { color: var(--muted); font-size: 12px; margin: 0; }
.rate-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-top: 18px; }
.rate-mini { padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.rate-mini span { font-size: 11px; color: var(--muted); }
.rate-mini strong { display: block; font-size: 21px; font-weight: 500; margin-top: 9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rate-mini small { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.crew-hero { border-radius: 23px; background: #142237; border: 1px solid var(--line); padding: 32px; position: relative; overflow: hidden; }
.crew-hero::after { content: ""; position: absolute; right: -65px; top: -30px; width: 270px; height: 270px; border: 1px solid #d7bd8026; border-radius: 50%; box-shadow: 0 0 0 26px #d7bd8007, 0 0 0 53px #d7bd8004; pointer-events: none; }
.crew-hero h2 { font-family: var(--display); font-size: 43px; letter-spacing: -.7px; font-weight: 500; line-height: 1.12; margin: 20px 0 14px; max-width: 390px; position: relative; z-index: 1; }
.crew-hero h2 em { font-weight: 500; color: var(--gold); }
.crew-hero p { font-size: 12px; color: var(--muted); max-width: 360px; margin: 0; position: relative; z-index: 1; }
.stats-grid, .admin-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 19px 0; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 21px 17px; background: var(--card); min-width: 0; }
.stat strong { font-size: 28px; letter-spacing: -.8px; display: block; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--gold-soft); overflow-wrap: anywhere; }
.stat span { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.progress-track { height: 5px; border-radius: 8px; background: #334054; overflow: hidden; margin: 15px 0 9px; }
.progress-bar { height: 100%; background: var(--gold); width: 0; max-width: 100%; border-radius: 8px; }
.progress-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.invite-link { font-size: 12px; padding: 16px; background: var(--surface-deep); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 11px; overflow-wrap: anywhere; margin: 18px 0; }
.invite-link .icon { width: 17px; height: 17px; color: var(--gold); }
.invite-link span { min-width: 0; flex: 1; word-break: break-all; }
.profile-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 29px; }
.avatar { height: 62px; width: 62px; border-radius: 18px; background: #d7bd800d; border: 1px solid #d7bd8040; color: var(--gold); display: grid; place-items: center; font-size: 24px; font-weight: 500; flex-shrink: 0; }
.profile-heading h1, .profile-heading h2 { font-family: var(--display); margin: 0; font-size: 36px; line-height: 1.1; font-weight: 500; letter-spacing: -.3px; overflow-wrap: anywhere; }
.profile-heading p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.menu-row { display: flex; align-items: center; gap: 15px; min-height: 72px; padding: 17px 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .row-symbol { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: #d7bd800c; color: var(--gold); flex-shrink: 0; }
.menu-row .row-symbol .icon { width: 18px; height: 18px; }
.menu-row strong { font-size: 13px; font-weight: 500; display: block; }
.menu-row small { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.menu-row > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.order-row { width: 100%; background: transparent; text-align: left; display: flex; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); padding: 19px 0; }
.order-row:last-child { border-bottom: 0; }
.order-symbol { height: 41px; width: 41px; border-radius: 12px; background: #d7bd800d; display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.order-description { flex: 1; min-width: 0; }
.order-description strong { font-size: 12px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.order-description small { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.order-amount { text-align: right; min-width: 0; }
.order-amount strong { font-size: 14px; font-weight: 500; display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.status { display: inline-block; border-radius: 15px; padding: 4px 9px; font-size: 11px; line-height: 1.5; background: #d7bd8012; color: var(--gold-soft); border: 1px solid #d7bd802e; white-space: nowrap; }
.status-processing { background: #d7bd8012; color: var(--gold-soft); }
.status-completed { background: #a8ceb60f; color: var(--success); border-color: #a8ceb62e; }
.status-cancelled { background: #a5afbb0b; color: var(--muted); border-color: #a5afbb2e; }
.order-amount .status { margin-top: 6px; }
.timeline { padding: 17px 0 0; margin: 0; list-style: none; }
.timeline li { padding: 0 0 29px 30px; position: relative; color: var(--muted); font-size: 11px; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 11px; height: 11px; border: 1px solid #647080; border-radius: 50%; background: var(--card); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 15px; height: calc(100% - 7px); width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--gold); border-color: var(--gold); }
.timeline li.active::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px #d7bd8016; }
.timeline strong { display: block; color: var(--ink); font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.support-card { background: #142237; border: 1px solid var(--line); border-radius: 23px; padding: 33px; }
.support-card h2 { font-family: var(--display); font-size: 39px; font-weight: 500; letter-spacing: -.7px; margin: 22px 0 15px; line-height: 1.1; }
.support-card p { font-size: 12px; color: var(--muted); margin: 0 0 27px; max-width: 440px; }
.support-card > .icon { color: var(--gold); width: 32px; height: 32px; }
.faq { border-bottom: 1px solid var(--line); padding: 17px 0; }
.faq summary { cursor: pointer; font-size: 13px; font-weight: 500; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 23px; font-weight: 400; color: var(--gold); flex-shrink: 0; }
.faq[open] summary::after { content: "−"; }
.faq p { font-size: 12px; color: var(--muted); margin: 12px 23px 0 0; line-height: 1.75; }
.admin-tabs { display: flex; gap: 4px; background: var(--surface-deep); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin-bottom: 24px; }
.admin-tabs button { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; min-height: 46px; padding: 10px 6px; font-size: 11px; color: var(--muted); }
.admin-tabs button.active { background: #d7bd8014; border-color: #d7bd8040; color: var(--gold-soft); }
.admin-stat-grid { margin: 0 0 24px; }
.admin-stat-grid .stat { padding: 19px 15px; }
.admin-user { display: flex; align-items: center; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.admin-user:last-child { border: 0; }
.admin-user .avatar { height: 39px; width: 39px; font-size: 15px; border-radius: 11px; }
.admin-user strong { font-size: 12px; display: block; font-weight: 500; overflow-wrap: anywhere; }
.admin-user small { color: var(--muted); font-size: 11px; display: block; }
.admin-user-id { font-size: 11px; color: var(--muted); margin-left: auto; overflow-wrap: anywhere; text-align: right; }
.settings-section { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 26px; margin-bottom: 19px; }
.settings-section h3 { font-size: 16px; font-weight: 600; margin: 0 0 22px; }
.settings-section .field:last-child { margin-bottom: 0; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 12px; }
.check-row:last-child { border: 0; }
.settings-note { font-size: 11px; color: var(--muted); margin: 13px 0 0; }
.search-field { position: relative; margin-bottom: 17px; }
.search-field input { width: 100%; border: 1px solid var(--line); min-height: 50px; padding: 12px 15px; background: var(--surface-deep); border-radius: 10px; outline: none; font-size: 16px; }
.loading-state { padding: 95px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.spinner { height: 24px; width: 24px; display: inline-block; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); max-width: 1120px; width: 100%; height: calc(var(--nav-height) + var(--safe-bottom)); padding: 11px 78px calc(11px + var(--safe-bottom)); background: #101b2af5; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); z-index: 20; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 11px; line-height: 1.3; color: var(--muted); min-width: 0; min-height: 44px; position: relative; border-radius: 11px; }
.bottom-nav a .icon { height: 21px; width: 21px; }
.bottom-nav a.active { color: var(--gold); font-weight: 600; }
.bottom-nav a.active::before { content: ""; width: 20px; height: 2px; position: absolute; top: -12px; border-radius: 2px; background: var(--gold); }
.toast { position: fixed; bottom: calc(var(--nav-height) + 16px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid #d7bd8050; color: var(--ink); border-radius: 12px; padding: 14px 22px; font-size: 12px; box-shadow: 0 8px 30px #0004; z-index: 60; max-width: 90%; text-align: center; }
dialog { border: 1px solid var(--line); padding: 0; border-radius: 23px; background: var(--card); width: min(550px,calc(100% - 30px)); color: var(--ink); max-height: calc(90dvh - var(--safe-top) - var(--safe-bottom)); overflow: auto; overscroll-behavior: contain; box-shadow: 0 25px 100px #0007; }
dialog[open] { animation: dialog-enter 250ms var(--ease); }
dialog::backdrop { background: #080e18bd; backdrop-filter: blur(5px); }
.modal-inner { padding: 30px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.modal-header h2 { margin: 0; font-family: var(--display); font-size: 33px; font-weight: 500; letter-spacing: -.4px; line-height: 1.15; }
.icon-button { height: 44px; width: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-deep); border: 1px solid var(--line); }
.icon-button .icon { height: 18px; width: 18px; }
.modal-inner p { font-size: 12px; color: var(--muted); }
.modal-inner .steps .step { padding: 18px 0; }
.success-symbol { height: 66px; width: 66px; border-radius: 50%; border: 1px solid #d7bd8040; background: #d7bd800d; color: var(--gold); display: grid; place-items: center; margin-bottom: 24px; }
.success-symbol .icon { height: 30px; width: 30px; }
.success-title { font-family: var(--display); font-size: 43px; font-weight: 500; letter-spacing: -.8px; line-height: 1.05; margin: 0 0 17px; }
.success-notice { font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.sample-tag { display: inline-block; background: #d7bd8012; border: 1px solid #d7bd8033; color: var(--gold-soft); font-size: 11px; border-radius: 12px; padding: 4px 10px; margin-bottom: 16px; }
.page-enter { animation: page-enter 250ms var(--ease) both; }
.quote-updated .quote-amount, .quote-updated .quote-message, .quote-updated .quote-extra { animation: quote-enter 160ms var(--ease); }
.network-error { padding: 70px 35px; max-width: 620px; margin: auto; text-align: center; }
.network-error h1 { font-family: var(--display); font-size: 39px; font-weight: 500; letter-spacing: -.6px; line-height: 1.15; }
.network-error p { font-size: 13px; color: var(--muted); }
.auth-locked { border: 1px solid #d7bd8035; background: #d7bd8008; padding: 21px; border-radius: 16px; margin-top: 23px; }
.auth-locked h3 { margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.auth-locked p { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.chip { background: var(--surface-deep); border: 1px solid var(--line); border-radius: 15px; padding: 5px 10px; font-size: 11px; color: var(--muted); }
.readonly-form { opacity: .85; }
.amount-field input::-webkit-inner-spin-button, .amount-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.amount-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.danger-text { color: var(--danger); }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.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; }
[hidden] { display: none !important; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.admin-user-button { background: transparent; width: 100%; text-align: left; }
.admin-user-button > .icon { height: 16px; width: 16px; color: var(--gold); }
.filter-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 17px; font-size: 12px; margin-bottom: 20px; }
.unread-dot { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-right: 7px; }
.message-meta { font-size: 11px; color: var(--muted); margin-top: 7px; }
.message-block { display: block; }
.message-operator { background: #d7bd800b; border-color: #d7bd8033; }
.message-text { font-size: 13px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.messages-feed { max-height: 350px; overflow: auto; overscroll-behavior: contain; margin-bottom: 20px; scrollbar-width: thin; scrollbar-color: #526070 transparent; }
.messages-feed:empty { margin-bottom: 0; }
.messages-feed .info-card { margin: 0 0 12px; }
.requisites-card { background: var(--surface-deep); border: 1px solid #d7bd8040; border-radius: 14px; padding: 20px; margin: 18px 0; }
.requisites-card h3 { font-size: 13px; font-weight: 600; margin: 0 0 12px; color: var(--gold-soft); }
.requisites-card p { font-size: 13px; color: var(--ink2); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.requisites-card .btn { margin-top: 9px; }
.rate-breakdown { background: var(--surface-deep); border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px; margin: 17px 0 23px; }
.rate-breakdown .detail-row { font-size: 11px; border-color: var(--line); padding: 11px 0; }
.rate-breakdown .info-card { background: var(--surface); margin: 12px 0 0; padding: 13px; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes quote-enter { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (hover:hover) {
  .header-account:hover, .source:hover:not(:disabled), .btn-outline:hover:not(:disabled), .icon-button:hover, .how-card:hover { border-color: #d7bd8073; background-color: #d7bd800b; }
  .btn:hover:not(:disabled):not(.btn-outline):not(.btn-dark):not(.btn-danger) { background: var(--gold-soft); box-shadow: 0 3px 18px #d7bd8012; }
  .btn-dark:hover:not(:disabled) { background: #d7bd8011; border-color: var(--gold); }
  .btn-danger:hover:not(:disabled) { background: #f0a59818; }
  .menu-row:hover, .order-row:hover, .admin-user-button:hover { background: #ffffff03; }
  .bottom-nav a:hover { color: var(--gold-soft); background: #d7bd8008; }
  .text-button:hover, .section-heading > a:hover { color: var(--ink); }
}
@media (min-width:760px) {
  body { padding-top: 24px; }
  .app-shell { min-height: calc(100dvh - 24px); border: 1px solid #253244; border-bottom: 0; border-radius: 28px 28px 0 0; box-shadow: 0 20px 90px #0003; }
  .transfer-body { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); column-gap: 27px; align-items: start; }
  .rate-ribbon { grid-column: 1 / -1; }
  .calculator { grid-column: 1; grid-row: 2 / span 3; }
  .how-card { grid-column: 2; margin-top: 0; min-height: 115px; gap: 13px; padding: 23px 19px; }
  .partners { grid-column: 2; display: block; margin-top: 24px; }
  .partner-names { margin-top: 12px; font-size: 11px; gap: 13px; }
  .transfer-aside { grid-column: 2; }
  .trust-row { grid-column: 1 / -1; }
  .desktop-two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
}
@media (max-width:959px) and (min-width:760px) {
  .app-header { padding-left: 34px; padding-right: 34px; }
  .hero { margin-left: 34px; margin-right: 34px; }
  .transfer-body, .page { padding-left: 34px; padding-right: 34px; }
  .calculator { padding: 24px; }
  .hero-content { padding: 34px; width: 80%; }
  .hero h1 { font-size: 54px; }
  .source-mark, .receive-option .icon { display: none; }
}
@media (max-width:759px) {
  :root { --nav-height: 78px; }
  body { background: var(--paper); }
  .app-header { height: calc(88px + var(--safe-top)); padding-left: 22px; padding-right: 22px; gap: 12px; }
  .brand { font-size: 23px; gap: 10px; letter-spacing: 2.1px; }
  .brand img { height: 32px; width: 32px; }
  .brand-location { font-size: 8px; letter-spacing: 1.3px; margin-top: 8px; }
  .header-account { padding: 9px 11px; gap: 7px; }
  .preview-notice { padding: 10px 22px; }
  .hero { margin: 23px 20px 0; min-height: 303px; border-radius: 22px; }
  .hero-content { padding: 29px 25px; width: 100%; }
  .hero h1 { font-size: clamp(41px,9vw,58px); letter-spacing: -1px; margin: 22px 0 17px; }
  .hero p { font-size: 12px; max-width: 310px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
  .hero-chip { font-size: 11px; margin-top: 22px; max-width: 290px; align-items: flex-start; }
  .hero-chip .icon { margin-top: 2px; }
  .hero-art { left: 42%; opacity: .42; }
  .orbit-one { right: -120px; top: 40px; }
  .orbit-two { right: -160px; top: 0; }
  .hero-coordinate { display: none; }
  .hero-image { width: 52%; opacity: .13; }
  .transfer-body { padding: 0 20px; }
  .rate-ribbon { padding: 22px 2px; gap: 10px; }
  .rate-label { gap: 9px; }
  .rate-value strong { font-size: 18px; }
  .calculator { padding: 25px 21px; border-radius: 20px; }
  .calculator-top { margin-bottom: 23px; }
  .calculator-top h2 { font-size: 18px; }
  .small-badge { font-size: 11px; padding: 5px 8px; }
  .sources { gap: 6px; }
  .source { font-size: 11px; padding: 10px 5px; min-height: 46px; gap: 5px; }
  .amount-field { padding: 16px; }
  .amount-field input { font-size: 32px; }
  .receive-option { font-size: 11px; line-height: 1.45; padding: 10px 5px; }
  .receive-option .icon { display: none; }
  .quote-box { padding: 21px 18px; }
  .quote-amount { font-size: 31px; }
  .quote-decoration { height: 39px; width: 39px; }
  .partners { margin: 26px 3px 5px; align-items: flex-start; }
  .partner-names { font-size: 11px; gap: 11px; }
  .transfer-aside { margin-top: 26px; padding-top: 23px; }
  .transfer-aside h3 { font-size: 27px; }
  .trust-row { gap: 12px; padding-top: 20px; margin-top: 25px; }
  .trust-step { font-size: 11px; }
  .trust-step strong { font-size: 11px; }
  .app-footer { padding: 29px 23px; font-size: 11px; }
  .page { padding: 32px 23px; }
  .page-title { font-size: 40px; letter-spacing: -.6px; }
  .page-subtitle { font-size: 12px; }
  .page-heading { margin-bottom: 25px; flex-wrap: wrap; }
  .card { padding: 23px 21px; border-radius: 20px; }
  .bottom-nav { padding: 10px 5px calc(10px + var(--safe-bottom)); }
  .bottom-nav a { font-size: 11px; gap: 7px; letter-spacing: -.2px; }
  .bottom-nav a.active::before { top: -11px; }
  .bottom-nav a .icon { height: 20px; width: 20px; }
  .crew-hero { padding: 28px 24px; }
  .crew-hero h2 { font-size: 37px; }
  .stats-grid, .admin-stat-grid { gap: 8px; }
  .stat { padding: 19px 13px; }
  .stat strong { font-size: 25px; }
  .rate-mini { padding: 18px; }
  .rate-mini strong { font-size: 19px; }
  .big-rate { padding: 28px 24px; }
  .big-rate strong { font-size: 43px; }
  .support-card { padding: 28px 24px; }
  .support-card h2 { font-size: 35px; }
  .desktop-two-col > * + * { margin-top: 22px; }
  .admin-stat-grid .stat { padding: 16px 11px; }
  .admin-stat-grid .stat strong { font-size: 24px; }
  .form-grid { gap: 0 13px; }
  .settings-section { padding: 23px 20px; }
  .modal-inner { padding: 27px 24px; }
  .review-total strong { font-size: 24px; }
}
@media (max-width:480px) {
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .review-total { padding: 17px; }
  .trust-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 22px; padding-top: 17px; }
  .trust-step { display: block; }
  .trust-step .icon { display: block; margin: 0 0 7px; }
  .trust-step > span { grid-row: 1 / span 2; }
  .trust-step strong { margin-top: 0; }
  .trust-step p { margin: 0; grid-column: 2; }
  .admin-user { flex-wrap: wrap; }
  .admin-user > div { min-width: 0; }
  .admin-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:360px) {
  .app-header { padding-left: 17px; padding-right: 17px; }
  .brand { font-size: 21px; gap: 8px; letter-spacing: 1.8px; }
  .brand-location { letter-spacing: .9px; }
  .header-account { gap: 6px; padding: 9px; font-size: 11px; }
  .header-account .icon { display: none; }
  .hero { margin-left: 16px; margin-right: 16px; }
  .hero-content { padding: 27px 20px; }
  .hero h1 { font-size: 40px; }
  .hero .eyebrow { letter-spacing: .8px; }
  .transfer-body { padding: 0 16px; }
  .calculator { padding: 23px 17px; }
  .calculator-top { align-items: flex-start; }
  .calculator-top h2 { font-size: 17px; }
  .small-badge { max-width: 88px; text-align: center; }
  .page { padding: 29px 19px; }
  .source-mark { display: none; }
  .currency-select { min-width: 68px; margin-left: 5px; }
  .amount-field { padding: 14px; }
  .amount-field input { font-size: 29px; }
  .quote-box { padding: 18px 15px; gap: 10px; }
  .quote-amount { font-size: 28px; }
  .quote-decoration { display: none; }
  .partner-names { gap: 8px; font-size: 11px; }
  .stats-grid, .admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid .stat:last-child, .admin-stat-grid .stat:last-child { grid-column: 1 / -1; }
  .bottom-nav a { font-size: 11px; letter-spacing: -.5px; }
  .order-row { flex-wrap: wrap; }
  .order-description { flex-basis: calc(100% - 55px); }
  .order-amount { margin-left: 54px; text-align: left; }
  .order-amount .status { margin-left: 8px; }
  .rate-grid { gap: 10px; }
  .rate-mini { padding: 16px 13px; }
  .rate-mini strong { font-size: 17px; }
  .review-total { flex-wrap: wrap; }
  .review-total strong { width: 100%; text-align: left; }
  .app-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
