/* Shared page rhythm and surfaces. Header and transactional behavior are independent. */
.exchange-feedback, .reserve-disclosure { padding: 12px 14px; border: 1px solid rgba(214,174,91,.35); border-radius: 12px; background: rgba(214,174,91,.08); font-size: 13px; line-height: 1.6; }
.exchange-feedback[hidden] { display: none; }
.reserve-manual::before { display: none !important; }
body.site-has-header #exchange-modal .modal-card { max-height: calc(var(--payment-height, 100dvh) - 24px) !important; overflow-y: auto !important; overscroll-behavior: contain; }
body.site-has-header #exchange-modal { padding: 12px !important; min-height: 0 !important; height: var(--payment-height, 100dvh) !important; }
body.site-has-header #exchange-modal :is(code, .deposit-address) { overflow-wrap: anywhere; }
body.site-has-header {
  --ui-panel: linear-gradient(145deg, rgba(35, 47, 49, .78), rgba(14, 24, 29, .92));
  --ui-inset: rgba(10, 20, 26, .62);
  --ui-line: rgba(179, 205, 207, .18);
  --ui-shadow: inset 0 1px 0 rgba(226, 244, 241, .07), 0 16px 44px rgba(0, 0, 0, .16);
  --ui-radius: 24px;
  --text: #e7eef3;
  --muted: #9cafb7;
  --accent: #8bd1c0;
  --line: var(--ui-line);
  background: radial-gradient(ellipse at 10% 4%, rgba(73, 113, 107, .13), transparent 45%), linear-gradient(160deg, #0a1216, #070e12 75%) !important;
}
body.site-has-header[data-theme='light'] {
  --ui-panel: linear-gradient(145deg, rgba(255,255,255,.88), rgba(232,241,241,.94));
  --ui-inset: rgba(246,250,250,.94);
  --ui-line: rgba(64, 96, 102, .2);
  --ui-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 44px rgba(32, 73, 82, .06);
  --text: #203b43;
  --muted: #566f77;
  --accent: #207864;
  background: radial-gradient(ellipse at 10% 4%, rgba(154, 199, 188, .17), transparent 45%), #edf3f3 !important;
}
body.site-has-header::before, body.site-has-header::after { opacity: .08 !important; }
body.site-has-header :is(.blob, .ambient, .ring, .glass-shell, .page-noise) { display: none !important; }
body.site-has-header :is(.backdrop-grid, .neural-grid) { opacity: .12 !important; }
body.site-has-header .page-beam { opacity: .12 !important; }
body.site-has-header :is(.app, .concept-wrap, .support-wrap) {
  box-sizing: border-box;
  width: min(1432px, calc(100% - 48px)) !important;
  max-width: 1432px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 48px 0 0 !important;
}
body.site-has-header .app::before, body.site-has-header .app::after { display: none; }
body.site-has-header .chamber-layer { transform: none !important; }
body.site-has-header :is(.page-hero, .how-wide-hero) { margin: 0 0 28px !important; padding: 0 !important; }
body.site-has-header :is(.page-hero h1, .how-wide-copy h1, .support-head h1) { margin: 8px 0 12px !important; font-size: clamp(28px, 3vw, 42px) !important; line-height: 1.15 !important; letter-spacing: -.04em; }
body.site-has-header :is(.page-hero p, .how-wide-copy p, .support-head p) { max-width: 640px; font-size: 15px !important; line-height: 1.65; color: var(--muted) !important; }
body.site-has-header .eyebrow { border: 0; background: none; padding: 0; font-size: 11px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); box-shadow: none; }
body.site-has-header :is(.form-shell, .market-page, .market-stat-card, .reserves-stage, .reserve-summary-card, .reserves-ledger, .transactions-panel, .metric-card, .exchange-card, .wallet-transactions, .wallet-card, .how-route, .how-ready, .faq-item, .support-card, .user-tool-card, .reviews-section, .recent-section) {
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  background: var(--ui-panel) !important;
  box-shadow: var(--ui-shadow) !important;
  backdrop-filter: blur(18px) saturate(.95);
  -webkit-backdrop-filter: blur(18px) saturate(.95);
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  animation: none !important;
}
body.site-has-header :is(.glass-card, .market-page, .reserves-stage, .form-shell)::after { opacity: .07 !important; pointer-events: none; }
body.site-has-header :is(.panel-head h2, .metric-card h2, .wallet-card h2, .wallet-transactions h2, .reserves-ledger-head h2, .how-route h2, .how-ready h2, .section-head h3) { font-size: 20px !important; line-height: 1.3; letter-spacing: -.025em; }
body.site-has-header :is(.panel-head p, .metric-card p, .wallet-transactions p, .reserves-ledger-head p, .section-head p) { font-size: 13px !important; line-height: 1.6; color: var(--muted); }
body.site-has-header :is(.money, .price-cell, .volume-cell, .reserve-amount, .market-stat-card .value) { font-variant-numeric: tabular-nums; }

/* A quiet introduction, with the exchange form as the primary action. */
body.site-has-header[data-page='index'] .ribbon-wrap { margin: 0 0 24px; padding: 0; }
body.site-has-header[data-page='index'] :is(.online-pill, .local-mode-pill) { background: transparent; border: 0; box-shadow: none; padding: 0; color: var(--muted); font-size: 11px; }
body.site-has-header[data-page='index'] .hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin: 0; transform: none !important; }
body.site-has-header[data-page='index'] .hero-copy { padding: 28px 0 0; min-width: 0; transform: none !important; opacity: 1 !important; filter: none !important; animation: none !important; }
body.site-has-header[data-page='index'] .exchange-title { max-width: 540px; min-height: 0; margin: 18px 0 20px; font-size: clamp(36px, 4.1vw, 58px); line-height: 1.08; letter-spacing: -.05em; color: var(--text); overflow-wrap: anywhere; }
body.site-has-header[data-page='index'] .hero-copy > p { max-width: 450px; font-size: 16px; line-height: 1.75; margin: 0; color: var(--muted); }
body.site-has-header .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 36px; }
body.site-has-header .hero-actions a, body.site-has-header .recent-section .section-head a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ui-line); border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; background: rgba(116,155,149,.06); }
body.site-has-header[data-page='index'] .hero-side-glass { margin: 0; padding: 28px 0 0; border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; animation: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
body.site-has-header[data-page='index'] .hero-side-glass h3 { margin: 0 0 20px; font-size: 15px; }
body.site-has-header[data-page='index'] .hero-side-grid { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: benefit; }
body.site-has-header[data-page='index'] .hero-side-card { position: relative; padding: 0 0 0 42px; min-height: 0; background: none; border: 0; box-shadow: none; counter-increment: benefit; }
body.site-has-header[data-page='index'] .hero-side-card::before { content: counter(benefit, decimal-leading-zero); position: absolute; top: 0; left: 0; color: var(--accent); font: 600 12px/28px 'Manrope', sans-serif; }
body.site-has-header[data-page='index'] .hero-side-card strong { display: block; font-size: 13px; margin-bottom: 5px; }
body.site-has-header[data-page='index'] .hero-side-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; }
body.site-has-header[data-page='index'] .form-shell { padding: 28px !important; width: 100%; min-width: 0; }
body.site-has-header[data-page='index'] .form-shell > * { animation: none !important; }
body.site-has-header[data-page='index'] .form-shell > h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
body.site-has-header[data-page='index'] .form-shell > .meta { font-size: 12px; line-height: 1.6; margin: 0 0 20px; }
body.site-has-header[data-page='index'] .asset-block { padding: 14px; border-radius: 18px; background: var(--ui-inset) !important; border: 1px solid var(--ui-line) !important; box-shadow: none !important; margin-top: 12px; }
body.site-has-header[data-page='index'] .asset-head { margin-bottom: 10px; }
body.site-has-header[data-page='index'] .asset-head label { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
body.site-has-header[data-page='index'] .preview { font-size: 12px; }
body.site-has-header[data-page='index'] .field-row { gap: 10px; margin-top: 10px; min-width: 0; }
body.site-has-header[data-page='index'] .form-shell :is(input:not([type='checkbox']), select, .asset-picker-trigger) { box-sizing: border-box; min-height: 46px; max-width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ui-line); background: var(--ui-inset) !important; color: var(--text); box-shadow: none; font-size: 15px; }
body.site-has-header[data-page='index'] .form-shell :is(input, select, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.site-has-header[data-page='index'] .asset-picker-trigger { width: 100%; }
body.site-has-header[data-page='index'] .form-shell .asset-picker-trigger b { font-size: 13px; }
body.site-has-header[data-page='index'] .hint { font-size: 11px; line-height: 1.5; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
body.site-has-header[data-page='index'] .quantum-core-wrap { height: 32px; min-height: 32px; margin: 8px 0 -2px; }
body.site-has-header[data-page='index'] .quantum-core { display: none; }
body.site-has-header[data-page='index'] .swap-node { width: 34px; height: 34px; font-size: 19px; background: var(--ui-panel); border: 1px solid var(--ui-line); color: var(--accent); box-shadow: none; }
body.site-has-header[data-page='index'] .quote-details { padding-top: 10px; border-top: 1px solid var(--ui-line); grid-template-columns: minmax(0, 1fr) auto; }
body.site-has-header[data-page='index'] .quote-details > div:last-child { text-align: right; }
body.site-has-header[data-page='index'] #rate-hint { text-align: left; }
body.site-has-header[data-page='index'] .quote-label { display: block; margin-bottom: 4px; font-size: 10px; color: var(--muted); }
body.site-has-header[data-page='index'] .tg-row { margin: 12px 0; grid-template-columns: 1fr; }
body.site-has-header[data-page='index'] .tg-row label, body.site-has-header[data-page='index'] .asset-block > label { display: block; font-size: 12px; margin-bottom: 8px; }
body.site-has-header[data-page='index'] .wallet-feedback { font-size: 11px; margin-top: 6px; line-height: 1.5; }
body.site-has-header[data-page='index'] .journey-block { display: none; }
body.site-has-header[data-page='index'] .journey-block h3 { font-size: 12px; margin-bottom: 10px; }
body.site-has-header[data-page='index'] .journey-steps { display: flex; flex-wrap: wrap; gap: 8px; }
body.site-has-header[data-page='index'] .journey-step { flex: 0 1 auto; min-width: 0; padding: 5px 8px; font-size: 10px; border-radius: 10px; }
body.site-has-header[data-page='index'] .journey-step i { width: 18px; height: 18px; font-size: 10px; }
body.site-has-header[data-page='index'] .confirm-row { align-items: flex-start; font-size: 11px; line-height: 1.6; margin: 16px 0; }
body.site-has-header[data-page='index'] .submit-btn { min-height: 48px; border-radius: 14px; background: #8bd1c0; border: 1px solid #a1dece; color: #102921; font-size: 15px; font-weight: 800; box-shadow: none; }
body.site-has-header[data-page='index'] .favorite-current-pair { min-height: 38px; font-size: 11px; background: transparent; box-shadow: none; }
body.site-has-header[data-page='index'] .section { margin-top: 28px; padding: 24px; }
body.site-has-header[data-page='index'] .hero-mini-swaps-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; max-height: 168px; overflow-y: auto; padding: 0 6px 0 0; margin-top: 18px; }
body.site-has-header[data-page='index'] .hero-mini-swaps-list > * { margin: 0; padding: 12px; font-size: 11px; line-height: 1.6; border-radius: 12px; min-width: 0; overflow-wrap: anywhere; background: var(--ui-inset); border: 1px solid var(--ui-line); }
body.site-has-header[data-page='index'] .reviews-nav-btn { width: 38px; height: 38px; border-radius: 50%; }
body.site-has-header[data-page='index'] .reviews-wrap { padding-inline: 50px; }
body.site-has-header[data-page='index'] .review-card { box-shadow: none; background: var(--ui-inset); border-color: var(--ui-line); border-radius: 18px; }
body.site-has-header[data-page='index'] .reviews-track { align-items: stretch; scroll-snap-type: x mandatory; gap: 16px; padding-block: 12px 4px; }
body.site-has-header[data-page='index'] .verified-order-card { flex: 0 0 min(340px, 100%); min-width: 0; max-width: none; padding: 20px; scroll-snap-align: start; }
body.site-has-header[data-page='index'] .verified-order-details { min-width: 0; grid-template-rows: auto auto 1fr auto auto; gap: 12px; }
body.site-has-header[data-page='index'] .review-head { margin: 0; }
body.site-has-header[data-page='index'] .review-meta { font-size: 16px; }
body.site-has-header[data-page='index'] .completed-order-date { font-size: 12px; color: var(--muted); }
body.site-has-header[data-page='index'] .verified-review-text { font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
body.site-has-header[data-page='index'] .public-order-id { white-space: normal; overflow-wrap: anywhere; }
body.site-has-header[data-page='index'] .reviews-nav-btn[hidden] { display: none; }
body.site-has-header[data-page='index'] .reviews-nav-btn:disabled { opacity: .35; cursor: default; transform: none; }
body.site-has-header[data-page='index'] .reviews-empty .reviews-wrap { padding: 0; }
body.site-has-header[data-page='index'] .reviews-empty .reviews-controls { display: none; }
.completed-empty { width: 100%; border: 1px solid var(--ui-line); border-radius: 18px; padding: 24px; background: var(--ui-inset); color: var(--muted); }
.completed-empty p { margin: 0; }
.completed-empty button { margin-top: 16px; border: 1px solid var(--ui-line); border-radius: 999px; padding: 9px 16px; color: var(--text); background: var(--ui-inset); cursor: pointer; }

/* Market: readable numbers on desktop, labelled cards rather than squeezed columns on mobile. */
body.site-has-header[data-page='market'] .market-page { display: grid !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 24px !important; min-height: 0 !important; max-height: none !important; grid-template-columns: minmax(0, 1fr) 280px !important; grid-template-rows: auto minmax(0, 1fr) !important; gap: 20px !important; }
body.site-has-header[data-page='market'] :is(.market-stats, .market-controls, .rate-table-wrap) { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
body.site-has-header[data-page='market'] .market-stats { height: auto !important; margin: 0 !important; }
body.site-has-header[data-page='market'] .market-stats { grid-column: 2 !important; grid-row: 1 / span 2 !important; display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: none !important; align-content: start; gap: 12px !important; }
body.site-has-header[data-page='market'] .market-stat-card { height: auto !important; min-height: 0 !important; max-height: none !important; padding: 18px !important; overflow: visible !important; display: flex !important; flex-direction: column; justify-content: flex-start !important; gap: 10px; }
body.site-has-header[data-page='market'] .market-stat-card .label { font-size: 10px !important; line-height: 1.5; margin: 0 !important; }
body.site-has-header[data-page='market'] .market-stat-card .value { font-size: 26px !important; line-height: 1.2; margin: 0 !important; }
body.site-has-header[data-page='market'] :is(.market-stat-detail, .market-stat-change, .market-volume-list, .market-sentiment-value, .market-dominance-legend) { font-size: 11px !important; line-height: 1.5; margin: 0 !important; }
body.site-has-header[data-page='market'] .market-volume-item { padding: 3px 0; justify-content: space-between; font-size: 11px !important; }
body.site-has-header[data-page='market'] .market-volume-item :is(b, span) { font-size: 11px !important; }
body.site-has-header[data-page='market'] .market-controls { grid-column: 1 !important; grid-row: 1 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; display: flex; flex-wrap: wrap; gap: 8px !important; }
body.site-has-header[data-page='market'] #marketSearch { flex: 1 1 200px; min-width: 0 !important; min-height: 44px; padding: 10px 14px !important; border-radius: 14px !important; background: var(--ui-inset) !important; font-size: 14px !important; }
body.site-has-header[data-page='market'] .sort-btn { padding: 8px 12px !important; min-height: 38px; font-size: 11px !important; }
body.site-has-header[data-page='market'] #marketUpdated { width: 100%; text-align: right; margin: 2px 0 0 !important; font-size: 10px !important; }
body.site-has-header[data-page='market'] .rate-table-wrap { grid-column: 1 !important; grid-row: 2 !important; height: 620px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 18px !important; border: 1px solid var(--ui-line) !important; background: var(--ui-inset) !important; box-shadow: none !important; }
body.site-has-header[data-page='market'] .rate-table { width: 100% !important; table-layout: auto !important; }
body.site-has-header[data-page='market'] .rate-table th { padding: 14px 12px !important; font-size: 10px !important; text-align: right; background: #132127 !important; }
body.site-has-header[data-page='market'] .rate-table td { padding: 16px 12px !important; font-size: 12px !important; text-align: right; background: transparent !important; }
body.site-has-header[data-page='market'] .rate-table :is(th, td):nth-child(-n+2) { text-align: left; }
body.site-has-header[data-page='market'] .rate-table .coin-cell { gap: 9px !important; font-size: 12px !important; }
body.site-has-header[data-page='market'] .coin-cell img { width: 28px !important; height: 28px !important; flex-shrink: 0; }
body.site-has-header[data-page='market'] .coin-cell span:last-child { font-size: 10px !important; }
body.site-has-header[data-page='market'] .exchange-mini-btn { min-height: 36px; padding: 8px 12px !important; border-radius: 999px; font-size: 11px !important; white-space: nowrap; }
body.site-has-header[data-page='market'][data-theme='light'] .rate-table th { background: #e4eeee !important; }
body.site-has-header[data-theme='light'] :is(.exchange-mini-btn, .sort-btn.active, .reserve-action, .reserve-live) { color: #206855 !important; border-color: rgba(32,104,85,.35) !important; background: #e4f1ec !important; }

body.site-has-header[data-page='reserves'] .reserves-stage { padding: 24px !important; gap: 20px; min-height: 0; grid-template-columns: 260px minmax(0, 1fr); }
body.site-has-header[data-page='reserves'] :is(.reserve-summary-card, .reserves-ledger) { padding: 20px; }
body.site-has-header[data-page='reserves'] .reserve-summary-number { font-size: 36px; }
body.site-has-header[data-page='reserves'] .reserve-card { min-height: 68px; border-radius: 14px; background: var(--ui-inset); box-shadow: none; grid-template-columns: 28px minmax(100px, 1fr) minmax(140px,1fr) auto; gap: 12px; }
body.site-has-header[data-page='reserves'] .reserves-column-head { grid-template-columns: 28px minmax(100px, 1fr) minmax(140px,1fr) auto; gap: 12px; }
body.site-has-header[data-page='reserves'] .reserve-amount { text-align: right; font-size: 13px; color: var(--text); }
body.site-has-header[data-page='reserves'] .reserves-column-head span:nth-child(3) { text-align: right; }
body.site-has-header[data-page='reserves'] .reserve-asset small { display: none; }

/* Cabinet and informational pages retain their layout, with the same type and spacing. */
body.site-has-header[data-cabinet] :is(.stage-transactions, .stage-wallet) { margin: 0 !important; width: 100% !important; height: auto !important; min-height: 0 !important; padding: 0 !important; gap: 20px !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body.site-has-header[data-cabinet] .stage::before { inset: 0 !important; opacity: .08 !important; }
body.site-has-header[data-cabinet] .stage::after { display: none !important; }
body.site-has-header[data-cabinet] .toast:not(.is-visible) { visibility: hidden; }
body.site-has-header[data-cabinet] :is(.transactions-panel, .metric-card, .exchange-card, .wallet-transactions, .wallet-card) { padding: 24px !important; }
body.site-has-header[data-cabinet] .panel-head { gap: 20px; flex-wrap: wrap; }
body.site-has-header[data-cabinet] .order-search { flex: 1 1 340px; max-width: 480px; }
body.site-has-header[data-cabinet] .order-search :is(input, button) { min-height: 42px; }
body.site-has-header[data-cabinet] .order-filters { gap: 10px; margin: 20px 0; }
body.site-has-header[data-cabinet] .order-filters select { min-height: 44px; font-size: 12px; }
body.site-has-header[data-cabinet][data-theme='light'] .order-filters select { background: var(--ui-inset) !important; color: var(--text) !important; border-color: var(--ui-line) !important; }
body.site-has-header[data-cabinet] .order-list-row { min-height: 60px; font-size: 12px !important; gap: 12px; }
body.site-has-header[data-cabinet] .order-list-row .person b { overflow-wrap: anywhere; font-size: 11px; }
body.site-has-header[data-cabinet] .order-list-row .money { text-align: right; }
body.site-has-header[data-cabinet] .table .rate-note { padding: 18px 8px; font-size: 13px; line-height: 1.6; }
body.site-has-header[data-cabinet] .demo-order-row { min-height: 62px; height: auto; font-size: 12px; gap: 12px; }
body.site-has-header[data-cabinet] .demo-order-row b { overflow-wrap: anywhere; }
body.site-has-header .how-wide-hero { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: none; border: 0; box-shadow: none; }
body.site-has-header .how-wide-stats { display: none; }
body.site-has-header :is(.how-route, .how-ready, .support-card) { padding: 28px; }
body.site-has-header .how-wide-layout { gap: 20px; }
body.site-has-header .how-card { padding: 24px; min-height: 0; background: var(--ui-inset); border-radius: 18px; box-shadow: none; }
body.site-has-header .how-card h3 { font-size: 16px; line-height: 1.4; }
body.site-has-header .how-card p { font-size: 13px; line-height: 1.75; color: var(--muted); }
body.site-has-header .faq-toggle { padding: 22px; font-size: 15px; }
body.site-has-header .faq-panel p { max-width: 780px; line-height: 1.8; font-size: 14px; }
body.site-has-header .support-head { margin-bottom: 24px; }
body.site-has-header .support-nav { display: none; }
body.site-has-header .support-quick { margin-bottom: 24px; padding: 16px; }
body.site-has-header .support-form { gap: 20px; }
body.site-has-header:is([data-page='privacy'], [data-page='terms'], [data-page='aml']) .glass-screen { max-width: 900px; padding: 28px; margin-inline: 0; background: var(--ui-panel); }
body.site-has-header:is([data-page='privacy'], [data-page='terms'], [data-page='aml']) .glass-screen p { font-size: 14px; line-height: 1.8; }
body.site-has-header .footer { box-sizing: border-box; width: 100% !important; max-width: 1432px !important; margin: 56px auto 0 !important; padding: 40px 24px 24px !important; border-radius: 24px 24px 0 0 !important; background: rgba(6,15,19,.72) !important; }
body.site-has-header[data-theme='light'] .footer { background: rgba(230,239,239,.9) !important; }
body.site-has-header .footer-inner { width: 100% !important; max-width: none !important; padding: 0 !important; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
body.site-has-header .footer-col :is(p, a) { font-size: 12px; line-height: 1.7; }
body.site-has-header .footer-bottom { margin-top: 28px !important; }

@media (max-width: 1050px) {
  body.site-has-header[data-page='index'] .hero-grid { gap: 28px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  body.site-has-header[data-page='market'] .market-page { grid-template-columns: minmax(0,1fr) !important; }
  body.site-has-header[data-page='market'] .market-stats { grid-column: 1 !important; grid-row: 3 !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.site-has-header[data-page='reserves'] .reserves-stage { grid-template-columns: 1fr; }
  body.site-has-header[data-page='reserves'] .reserves-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.site-has-header[data-page='reserves'] .reserves-overview .reserve-summary-card:last-child { grid-column: auto; }
}
@media (max-width: 740px) {
  body.site-has-header :is(.app, .concept-wrap, .support-wrap) { width: calc(100% - 24px) !important; padding-top: 24px !important; }
  body.site-has-header .page-hero { margin-bottom: 20px !important; }
  body.site-has-header[data-page='index'] .hero-grid { display: flex; flex-direction: column; gap: 18px; }
  body.site-has-header[data-page='index'] .hero-copy { display: contents; }
  body.site-has-header[data-page='index'] .hero-copy > .eyebrow { order: 0; }
  body.site-has-header[data-page='index'] .exchange-title { order: 1; font-size: clamp(30px,8.5vw,42px); margin: 0; }
  body.site-has-header[data-page='index'] .hero-copy > p { order: 2; font-size: 14px; margin: 0; }
  body.site-has-header[data-page='index'] .hero-actions { order: 3; margin: 0 0 4px; }
  body.site-has-header[data-page='index'] .form-shell { order: 4; padding: 18px !important; }
  body.site-has-header[data-page='index'] .hero-side-glass { order: 5; width: 100%; margin-top: 10px; }
  body.site-has-header[data-page='index'] .ribbon-wrap { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
  body.site-has-header[data-page='index'] .local-mode-pill { margin-left: 0; }
  body.site-has-header[data-page='index'] .form-shell :is(input:not([type='checkbox']), select) { font-size: 16px; }
  body.site-has-header[data-page='index'] .asset-block { padding: 12px; }
  body.site-has-header[data-page='index'] .field-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  body.site-has-header[data-page='index'] .form-shell .tg-row { grid-template-columns: 1fr; }
  body.site-has-header[data-page='index'] .section { padding: 18px; }
  body.site-has-header[data-page='index'] .hero-mini-swaps-list { grid-template-columns: 1fr; max-height: 220px; }
  body.site-has-header[data-page='index'] .reviews-wrap { padding: 0; }
  body.site-has-header .section-head { flex-wrap: wrap; gap: 12px; }
  body.site-has-header[data-page='market'] .market-page { padding: 16px !important; gap: 16px !important; }
  body.site-has-header[data-page='market'] .market-controls { display: flex !important; }
  body.site-has-header[data-page='market'] #marketSearch { flex-basis: 100%; }
  body.site-has-header[data-page='market'] .market-stats { grid-template-columns: 1fr !important; }
  body.site-has-header[data-page='market'] .rate-table-wrap { height: auto !important; max-height: 620px !important; border: 0 !important; border-radius: 0 !important; background: none !important; overflow: auto !important; }
  body.site-has-header[data-page='market'] .rate-table thead { display: none !important; }
  body.site-has-header[data-page='market'] .rate-table, body.site-has-header[data-page='market'] .rate-table tbody { display: block; min-width: 0 !important; }
  body.site-has-header[data-page='market'] .rate-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 16px; margin: 0 0 12px; border: 1px solid var(--ui-line); border-radius: 18px; background: var(--ui-inset); }
  body.site-has-header[data-page='market'] .rate-table td { display: block !important; padding: 0 !important; width: auto !important; min-width: 0 !important; border: 0 !important; text-align: left !important; font-size: 13px !important; white-space: normal !important; }
  body.site-has-header[data-page='market'] .rate-table td:nth-child(1) { display: none !important; }
  body.site-has-header[data-page='market'] .rate-table td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 12px !important; border-bottom: 1px solid var(--ui-line) !important; }
  body.site-has-header[data-page='market'] .rate-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
  body.site-has-header[data-page='market'] .rate-table td:nth-child(4), body.site-has-header[data-page='market'] .rate-table td:nth-child(6) { text-align: right !important; }
  body.site-has-header[data-page='market'] .rate-table td[colspan] { grid-column: 1/-1; display: block !important; }
  body.site-has-header[data-page='market'] .coin-cell { flex-wrap: wrap; }
  body.site-has-header[data-page='reserves'] .reserves-stage { padding: 16px !important; gap: 16px; }
  body.site-has-header[data-page='reserves'] :is(.reserves-overview, .reserves-ledger, .reserve-summary-card) { width: 100% !important; min-width: 0; }
  body.site-has-header[data-page='reserves'] .reserves-overview { grid-template-columns: 1fr; gap: 12px; }
  body.site-has-header[data-page='reserves'] .reserve-summary-card + .reserve-summary-card { margin-top: 0; }
  body.site-has-header[data-page='reserves'] .reserves-ledger { padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; }
  body.site-has-header[data-page='reserves'] .reserves-grid { max-height: 620px; padding: 0 4px 0 0; }
  body.site-has-header[data-page='reserves'] .reserves-column-head { display: none; }
  body.site-has-header[data-page='reserves'] .reserve-card { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; gap: 14px; padding: 16px; min-height: 116px; height: auto; }
  body.site-has-header[data-page='reserves'] .reserve-rank { display: none; }
  body.site-has-header[data-page='reserves'] .reserve-asset { grid-column: 1; grid-row: 1; }
  body.site-has-header[data-page='reserves'] .reserve-amount { grid-column: 1/-1; grid-row: 2; text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; font-size: 14px; }
  body.site-has-header[data-page='reserves'] .reserve-card .reserve-action { grid-column: 2; grid-row: 1; padding: 8px 10px; font-size: 10px; white-space: normal; max-width: 112px; }
  body.site-has-header[data-cabinet] :is(.transactions-panel, .metric-card, .exchange-card, .wallet-transactions, .wallet-card) { padding: 18px !important; }
  body.site-has-header[data-cabinet] .order-search { flex-basis: 100%; max-width: 100%; }
  body.site-has-header[data-cabinet] .order-list-row { display: grid !important; grid-template-columns: 1fr auto !important; gap: 12px; padding: 14px !important; border-radius: 16px; height: auto !important; }
  body.site-has-header[data-cabinet] .order-list-row .person { grid-column: 1/-1; }
  body.site-has-header[data-cabinet] .order-list-row > span:nth-child(2) { grid-column: 1/-1; }
  body.site-has-header[data-cabinet] .order-list-row .money { text-align: right; overflow-wrap: anywhere; }
  body.site-has-header .how-wide-hero { display: block; }
  body.site-has-header .how-wide-flow { margin-top: 20px; }
  body.site-has-header :is(.how-route, .how-ready, .support-card) { padding: 18px; }
  body.site-has-header .how-card { padding: 18px; }
  body.site-has-header .support-head { flex-wrap: wrap; }
  body.site-has-header .support-form { grid-template-columns: minmax(0,1fr); }
  body.site-has-header .footer { margin-top: 36px !important; padding: 28px 18px 20px !important; }
  body.site-has-header .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  body.site-has-header .footer-col:first-child { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
  body.site-has-header #exchange-modal, body.site-has-header #exchange-modal .modal-card { animation: none !important; transition: none !important; }
  body.site-has-header .page-beam, body.site-has-header .market-page::after, body.site-has-header .reserves-stage::after { display: none !important; }
}
