:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-elevated: #0b0e13;
  --surface: #11151b;
  --surface-2: #171c23;
  --surface-3: #20262f;
  --surface-blue: #0d1b2b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f7f9fc;
  --text-soft: #d4d9e1;
  --muted: #8a919c;
  --muted-2: #656c77;
  --blue: #168cff;
  --blue-2: #4eb2ff;
  --blue-soft: rgba(22, 140, 255, 0.14);
  --green: #25d6a2;
  --green-soft: rgba(37, 214, 162, 0.13);
  --orange: #ff9c45;
  --orange-soft: rgba(255, 156, 69, 0.13);
  --red: #ff6878;
  --red-soft: rgba(255, 104, 120, 0.13);
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.62);
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-right, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-left, 0px));
  --content-safe-top: var(--tg-content-safe-top, 0px);
  --content-safe-bottom: var(--tg-content-safe-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background:
    radial-gradient(480px 300px at 50% -120px, rgba(22, 140, 255, 0.14), transparent 70%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

.app-shell {
  width: min(100%, 680px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(12, 17, 24, 0.76), transparent 180px),
    transparent;
}

.app-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px max(16px, var(--safe-right)) 10px max(16px, var(--safe-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 13, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(150deg, #2fa8ff 0%, #0879ea 70%);
  box-shadow: 0 10px 26px rgba(11, 126, 235, 0.28), inset 0 1px rgba(255, 255, 255, 0.2);
}

.brand-mark span {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-copy strong {
  font-size: 21px;
  font-weight: 820;
  letter-spacing: 0.2px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 430;
}

.icon-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 15px;
  color: var(--text);
  background: transparent;
}

.icon-button:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button.subtle {
  color: var(--blue-2);
  background: var(--blue-soft);
}

main {
  padding: 18px max(16px, var(--safe-right)) calc(106px + var(--safe-bottom) + var(--content-safe-bottom)) max(16px, var(--safe-left));
}

.tab {
  display: none;
  animation: tab-in 0.18s ease-out;
}

.tab.active {
  display: block;
}

@keyframes tab-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wallet */
.balance-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px 20px 21px;
  border: 1px solid rgba(86, 177, 255, 0.15);
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(260px 170px at 50% -60px, rgba(60, 164, 255, 0.2), transparent 72%),
    linear-gradient(145deg, #101925 0%, #0d1219 58%, #0a0d12 100%);
  box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, 0.04);
}

.balance-panel::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(59, 168, 255, 0.09);
  border-radius: 50%;
}

.balance-topline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
}

.balance-caption {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a0a7b2;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.balance-caption span {
  color: var(--blue-2);
}

.balance-eye {
  position: static;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #aab1bc;
  background: transparent;
}

.balance-eye:active {
  background: rgba(255, 255, 255, 0.07);
}

.balance-eye svg {
  width: 20px;
  height: 20px;
}

.balance-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin: 6px 0 8px;
  font-size: clamp(52px, 13vw, 72px);
  font-weight: 840;
  line-height: 0.98;
  letter-spacing: -4px;
}

.currency-sign {
  font-size: 0.58em;
  font-weight: 760;
  letter-spacing: -2px;
}

.balance-subtitle {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
}

.balance-hidden .balance-value span:last-child,
.balance-hidden .asset-value {
  filter: blur(10px);
  user-select: none;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.quick-action {
  min-width: 0;
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 7px 3px;
  border: 0;
  border-radius: 18px;
  color: var(--text-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 640;
}

.quick-action:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.035);
}

.quick-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: white;
  background: linear-gradient(180deg, #249fff 0%, #087de8 100%);
  box-shadow: 0 12px 28px rgba(12, 125, 232, 0.23), inset 0 1px rgba(255, 255, 255, 0.22);
}

.quick-icon svg {
  width: 26px;
  height: 26px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border: 1px solid rgba(75, 178, 255, 0.25);
  border-radius: 27px;
  background:
    radial-gradient(180px 130px at 100% 0%, rgba(61, 167, 255, 0.24), transparent 70%),
    linear-gradient(122deg, #075447 0%, #0b3656 58%, #143e70 100%);
  box-shadow: 0 18px 45px rgba(0, 40, 78, 0.24), inset 0 1px rgba(255, 255, 255, 0.09);
}

.promo-copy {
  position: relative;
  z-index: 2;
  max-width: 66%;
  display: grid;
  gap: 9px;
}

.promo-kicker {
  color: #c3fff0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 3.2px;
}

.promo-copy strong {
  max-width: 310px;
  font-size: clamp(25px, 6.5vw, 32px);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.8px;
}

.promo-copy > span:last-child {
  max-width: 300px;
  color: #c4d0d9;
  font-size: 13px;
  line-height: 1.45;
}

.promo-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 43%;
}

.phone-card {
  position: absolute;
  top: 25px;
  right: 24px;
  width: 78px;
  height: 122px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 23px;
  transform: rotate(8deg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.phone-card::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 25px;
  height: 4px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}

.phone-card span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #20c8bc;
  font-size: 27px;
  font-weight: 850;
}

.orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
}

.orb-one {
  top: 17px;
  right: -18px;
  width: 118px;
  height: 118px;
}

.orb-two {
  right: 66px;
  bottom: -38px;
  width: 86px;
  height: 86px;
}

.section-block {
  margin-top: 26px;
}

.section-heading,
.page-title-row,
.row-between,
.market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2,
.market-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.section-heading.compact h2 {
  font-size: 21px;
}

.text-button,
.filter-button {
  min-height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.text-button:active {
  color: var(--text-soft);
}

.asset-card,
.form-card,
.notice-card,
.ad-card,
.order-card,
.security-block,
.admin-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent), var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.asset-card {
  overflow: hidden;
}

.asset-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
}

.coin-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #28c7bf, #15a9a2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
  font-size: 30px;
  font-weight: 860;
}

.asset-name,
.asset-value {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.asset-name strong {
  font-size: 21px;
  font-weight: 790;
}

.asset-name span,
.asset-value span {
  color: var(--muted);
  font-size: 13px;
}

.asset-value {
  text-align: right;
}

.asset-value strong {
  color: var(--text-soft);
  font-size: 15px;
  white-space: nowrap;
}

.asset-meta {
  display: none;
}

/* Shared page components */
.page-title-row {
  min-height: 58px;
  margin-bottom: 18px;
}

.page-title-row h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 830;
  line-height: 1;
  letter-spacing: -1.4px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.title-icon,
.menu-icon,
.modal-icon,
.wizard-icon {
  display: grid;
  place-items: center;
  color: var(--blue-2);
  background: var(--blue-soft);
}

.title-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
}

.notice-card {
  margin-bottom: 14px;
  padding: 16px;
  color: #b5bbc5;
  font-size: 13px;
  line-height: 1.5;
}

.notice-card.warning {
  border-color: rgba(255, 156, 69, 0.27);
  color: #ffd7ad;
  background: var(--orange-soft);
}

/* P2P */
.p2p-page {
  padding-bottom: 10px;
}

.page-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0d1015;
}

.page-tabs button,
.segmented button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 730;
}

.page-tabs button.active,
.segmented button.active {
  color: #fff;
  background: linear-gradient(180deg, #2099ff, #087ddd);
  box-shadow: 0 8px 20px rgba(11, 126, 229, 0.22), inset 0 1px rgba(255, 255, 255, 0.15);
}

.p2p-view {
  display: none;
}

.p2p-view.active {
  display: block;
  animation: tab-in 0.16s ease-out;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #101318;
}

.market-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.market-selectors button {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: #fff;
  text-align: left;
  background: var(--surface);
}

.market-selectors button:active {
  border-color: rgba(78, 178, 255, 0.35);
  background: var(--surface-2);
}

.market-selectors span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.market-selectors small {
  color: var(--muted);
  font-size: 11px;
}

.market-selectors strong {
  font-size: 17px;
}

.mini-coin,
.mini-fiat {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 850;
}

.mini-coin {
  background: #1ebdb5;
}

.mini-fiat {
  background: #23b88e;
}

.market-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin: 0 0 16px;
}

.market-filter-field {
  position: relative;
}

.market-filter-field input,
.market-filter-field select {
  min-height: 48px;
  padding: 0 13px;
  border-radius: 14px;
  font-size: 14px;
}

.market-heading {
  margin: 17px 0 12px;
}

.market-heading h2 {
  font-size: 24px;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.filter-button svg {
  width: 16px;
  height: 16px;
}

.stack {
  display: grid;
  gap: 11px;
}

.ad-card,
.order-card {
  padding: 16px;
}

.ad-card {
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ad-card:active {
  transform: scale(0.992);
  border-color: rgba(78, 178, 255, 0.22);
}

.ad-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.merchant-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.merchant-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #dff2ff;
  background: linear-gradient(145deg, #183653, #102238);
  font-size: 15px;
  font-weight: 850;
}

.merchant-name {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ad-price-wrap {
  text-align: right;
}

.ad-price {
  color: #fff;
  font-size: 21px;
  font-weight: 840;
  line-height: 1.05;
  white-space: nowrap;
}

.ad-price-unit {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.ad-limits {
  display: grid;
  gap: 6px;
  margin: 15px 0 13px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.ad-limits strong {
  color: var(--text-soft);
  font-weight: 680;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.chip {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  color: #aeb5bf;
  background: #1b2027;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade,
.order-actions button,
.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.outline-action {
  min-height: 52px;
  border-radius: 15px;
  font-weight: 780;
}

.trade {
  width: 100%;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #2099ff, #087ddd);
}

.trade:active,
.primary-button:active,
.secondary-button:active,
.danger-button:active,
.outline-action:active {
  transform: scale(0.988);
}

.order-card p {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  padding: 6px 9px;
  border-radius: 999px;
  color: #a8d9ff;
  background: rgba(22, 140, 255, 0.12);
  font-size: 10px;
  font-weight: 780;
}

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

.order-actions button {
  border: 0;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}

.order-actions button.secondary {
  background: var(--surface-3);
}

.order-actions button.danger {
  color: #ff9ba5;
  background: var(--red-soft);
}

.order-filter-tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.order-filter-tabs::-webkit-scrollbar {
  display: none;
}

.order-filter-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.order-filter-tabs button.active {
  border-color: rgba(22, 140, 255, 0.3);
  color: #fff;
  background: var(--blue-soft);
}

.outline-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  color: #fff;
  background: var(--surface);
}

.p2p-manage-block {
  margin-top: 18px;
}

.p2p-manage-block h3 {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 17px;
}

.manage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.manage-row + .manage-row {
  margin-top: 8px;
}

.manage-row strong,
.manage-row span {
  display: block;
}

.manage-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.manage-row button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 760;
}

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

.stat {
  min-width: 0;
  padding: 14px 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  background: var(--surface);
}

.stat strong {
  display: block;
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.012);
}

.empty-state-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--blue-2);
  background: var(--blue-soft);
  font-size: 28px;
}

.empty-state strong {
  font-size: 17px;
}

.empty-state span {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Checks / referrals */
.feature-hero,
.referral-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, #0a345e, #101925 65%);
}

.feature-hero {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}

.feature-hero > div:first-child {
  max-width: 72%;
  display: grid;
  gap: 8px;
}

.feature-hero strong {
  font-size: 23px;
  line-height: 1.14;
}

.feature-hero span {
  color: #a6b4c5;
  font-size: 13px;
}

.gift-visual {
  font-size: 52px;
}

.referral-hero {
  padding: 27px 20px;
  text-align: center;
  background:
    radial-gradient(280px 150px at 50% 0%, rgba(22, 140, 255, 0.31), transparent 78%),
    var(--surface);
}

.referral-hero strong {
  display: block;
  margin: 8px 0;
  color: var(--blue-2);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -2px;
}

.referral-hero p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

/* Forms */
.form-card,
.security-block {
  margin-bottom: 14px;
  padding: 18px;
}

.form-card h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.field-group {
  margin: 0 0 18px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-group label,
label {
  display: block;
  margin: 0 0 8px;
  color: #a0a6b0;
  font-size: 13px;
  font-weight: 540;
}

input,
select,
textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  outline: none;
  color: #fff;
  background: var(--surface-2);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 112px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: #6f7681;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(78, 178, 255, 0.72);
  background: #1c222a;
  box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.11);
}

.amount-field {
  position: relative;
}

.amount-field input {
  padding-right: 78px;
}

.amount-field span {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  width: 100%;
  padding: 0 16px;
  border: 0;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #209cff, #087ee5);
  box-shadow: 0 11px 24px rgba(10, 126, 229, 0.18), inset 0 1px rgba(255, 255, 255, 0.14);
}

.secondary-button {
  color: #fff;
  background: var(--surface-3);
}

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

.ghost-button {
  color: var(--muted);
  background: transparent;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 9px;
  margin-bottom: 12px;
}

.copy-field button {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  color: #fff;
  background: var(--surface-2);
}

.address,
.address-box {
  overflow-wrap: anywhere;
}

.address {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  color: var(--text-soft);
  background: var(--surface-2);
}

.address-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(22, 140, 255, 0.24);
  border-radius: 17px;
  color: #d8e8f8;
  background: rgba(22, 140, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.address-box svg {
  flex: 0 0 auto;
  color: var(--blue-2);
}

.result-card {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(37, 214, 162, 0.22);
  border-radius: 17px;
  background: var(--green-soft);
}

.info-card,
.fee-quote,
.trade-summary,
.trade-total,
.security-summary {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0d1015;
}

.info-card {
  margin-top: 17px;
  padding: 0 15px;
}

.info-row,
.fee-quote > div {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.info-row:last-child,
.fee-quote > div:last-child {
  border-bottom: 0;
}

.info-row strong,
.fee-quote strong {
  color: var(--text-soft);
  text-align: right;
  font-size: 13px;
}

.success {
  color: var(--green) !important;
}

.fee-quote {
  margin: 18px 0;
  padding: 0 15px;
}

.fee-quote .total {
  min-height: 60px;
}

.fee-quote .total strong {
  color: var(--blue-2);
  font-size: 16px;
}

.sheet-note {
  margin: 18px 2px 0;
  color: #747b86;
  font-size: 12px;
  line-height: 1.55;
}

/* Menu */
.menu-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.menu-list > button {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: #fff;
  text-align: left;
  background: transparent;
}

.menu-list > button:last-child {
  border-bottom: 0;
}

.menu-list > button:active {
  background: rgba(255, 255, 255, 0.035);
}

.menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.menu-list > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.menu-list strong {
  font-size: 16px;
}

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

.menu-list b {
  color: #707782;
  font-size: 24px;
  font-weight: 400;
}

.app-version {
  margin-top: 24px;
  color: #4f5560;
  text-align: center;
  font-size: 11px;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 680px);
  min-height: calc(78px + var(--safe-bottom));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 7px max(7px, var(--safe-right)) var(--safe-bottom) max(7px, var(--safe-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 20, 0.94);
  box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.bottom-nav button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  color: #717781;
  background: transparent;
}

.bottom-nav button.active {
  color: var(--blue-2);
  background: rgba(22, 140, 255, 0.08);
}

.bottom-nav button:active {
  transform: scale(0.96);
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
}

.bottom-nav span {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sheets */
.sheet-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.bottom-sheet {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 680px);
  max-height: calc(100dvh - 24px - var(--content-safe-top));
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px 18px calc(24px + var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: #12151a;
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.035);
  animation: sheet-in 0.22s cubic-bezier(0.2, 0.82, 0.35, 1);
  scrollbar-width: thin;
  scrollbar-color: #535a65 transparent;
}

@keyframes sheet-in {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  position: sticky;
  z-index: 2;
  top: 0;
  width: 48px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #4c515b;
}

.sheet-head {
  position: sticky;
  z-index: 1;
  top: -1px;
  min-height: 67px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -2px 20px;
  padding: 3px 2px 10px;
  background: linear-gradient(#12151a 80%, rgba(18, 21, 26, 0));
}

.sheet-head h2 {
  margin: 0;
  font-size: clamp(29px, 8vw, 38px);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -1.2px;
}

.sheet-close {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #a5abb5;
  background: #242830;
}

.sheet-close:active {
  transform: scale(0.96);
}

.bottom-sheet > .field-group {
  margin-bottom: 18px;
}

.bottom-sheet > .primary-button,
.bottom-sheet > .secondary-button,
.bottom-sheet > .danger-button {
  margin-top: 4px;
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.smart-select {
  position: relative;
}

.smart-select-trigger {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: var(--surface-2);
  font-size: 16px;
}

.smart-select-trigger svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #9ba1ab;
  transition: transform 0.18s ease;
}

.smart-select.open .smart-select-trigger {
  border-color: rgba(78, 178, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.11);
}

.smart-select.open .smart-select-trigger svg {
  transform: rotate(180deg);
}

.smart-select-menu {
  position: absolute;
  z-index: 95;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(22, 26, 32, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.smart-select-option {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: #dfe3e9;
  text-align: left;
  background: transparent;
  font-size: 15px;
}

.smart-select-option.selected {
  color: #fff;
  background: var(--blue-soft);
}

.smart-select-option b {
  color: var(--blue-2);
  font-size: 18px;
}

/* Security */
.security-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px 17px;
}

.security-summary strong {
  font-size: 16px;
}

.security-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.security-wizard {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--surface);
}

.wizard-progress {
  height: 4px;
  margin-bottom: 23px;
  overflow: hidden;
  border-radius: 999px;
  background: #282e37;
}

.wizard-progress span {
  display: block;
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087ce4, #49b5ff);
  transition: width 0.24s ease;
}

.wizard-step {
  text-align: center;
}

.wizard-step h3 {
  margin: 10px 0 7px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.wizard-step p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wizard-step .field-group {
  text-align: left;
}

.wizard-step .ghost-button {
  margin-top: 7px;
}

.wizard-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 20px;
}

.wizard-icon svg {
  width: 30px;
  height: 30px;
}

.wizard-success {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #31d6a0, #168cff);
  box-shadow: 0 14px 34px rgba(29, 188, 167, 0.2);
  font-size: 36px;
  font-weight: 900;
}

.security-manage {
  display: grid;
  gap: 11px;
}

.security-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.security-title {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.security-title > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.security-title strong {
  font-size: 16px;
}

.security-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.status-pill {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 780;
}

/* Auth modal */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px max(18px, var(--safe-right)) calc(18px + var(--safe-bottom)) max(18px, var(--safe-left));
  background: rgba(0, 0, 0, 0.79);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.modal-body {
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 27px;
  text-align: center;
  background: #15191f;
  box-shadow: var(--shadow-lg);
}

.modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 19px;
}

.modal-body h3 {
  margin: 15px 0 8px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.modal-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-body .biometric-primary {
  min-height: 58px;
  margin-top: 18px;
}

.auth-body .ghost-button {
  margin-top: 7px;
}

.auth-body #authPinPanel .field-group {
  margin: 18px 0 11px;
}

.auth-body #authCancel {
  margin-top: 8px;
  color: #7f8691;
}

/* Misc */
.trade-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 16px;
}

.trade-summary strong {
  font-size: 19px;
}

.trade-summary span {
  color: var(--text-soft);
}

.trade-summary small {
  color: var(--muted);
}

.trade-total {
  margin: 17px 0;
  padding: 17px;
  color: var(--blue-2);
  text-align: center;
  background: rgba(22, 140, 255, 0.08);
  font-size: 24px;
  font-weight: 830;
}

.language-list {
  display: grid;
  gap: 9px;
}

.language-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: var(--surface-2);
  font-size: 16px;
  font-weight: 700;
}

.language-list button span {
  font-size: 23px;
}

.legal-copy {
  color: #b3b9c2;
  font-size: 14px;
  line-height: 1.65;
}

.legal-copy h3 {
  margin: 22px 0 8px;
  color: #fff;
}

.history-list {
  display: grid;
  gap: 1px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
}

.history-item .delta {
  font-weight: 790;
}

.delta.positive {
  color: var(--green);
}

.delta.negative {
  color: var(--red);
}

.muted {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 130;
  right: 16px;
  bottom: calc(88px + var(--safe-bottom));
  left: 16px;
  width: min(calc(100% - 32px), 500px);
  margin: auto;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background: rgba(31, 36, 44, 0.97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
  font-size: 13px;
}

.chat-sheet {
  min-height: min(74dvh, 660px);
}

.chat-messages {
  min-height: 250px;
  max-height: 48dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 4px 0 15px;
}

.chat-message {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 5px;
  color: #f4f7fa;
  background: #242a32;
  font-size: 13px;
  line-height: 1.45;
}

.chat-message.mine {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  background: #0b7bdc;
}

.chat-message.system {
  align-self: center;
  max-width: 96%;
  border: 1px solid rgba(78, 178, 255, 0.18);
  border-radius: 13px;
  color: #9cb7cf;
  text-align: center;
  background: #0d1721;
  font-size: 11px;
}

.chat-author {
  display: block;
  margin-bottom: 4px;
  color: #8dc5f4;
  font-size: 10px;
  font-weight: 800;
}

.chat-message.mine .chat-author {
  color: #d9f0ff;
}

.chat-message small {
  display: block;
  margin-top: 5px;
  opacity: 0.58;
  font-size: 9px;
}

.chat-compose {
  display: grid;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.chat-compose textarea {
  min-height: 78px;
}

.rating-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 8px 0 18px;
}

.rating-picker button {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: #aeb4bd;
  background: var(--surface-2);
  font-size: 17px;
  font-weight: 820;
}

.rating-picker button.active {
  border-color: rgba(78, 178, 255, 0.55);
  color: #fff;
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px rgba(22, 140, 255, 0.08);
}

/* Admin */
.admin-role-card {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 16px 17px;
  border: 1px solid rgba(22, 140, 255, 0.23);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(22, 140, 255, 0.12), rgba(22, 140, 255, 0.025));
}

.admin-role-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.role-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px rgba(37, 214, 162, 0.65);
}

.admin-section {
  margin-top: 14px;
  padding: 17px;
}

.count-badge {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-2);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.admin-form-row .field-group {
  margin-bottom: 11px;
}

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

.moderator-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.moderator-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-2);
}

.moderator-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #209cff, #0879e3);
  font-weight: 900;
}

.moderator-row > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.moderator-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.moderator-row span {
  color: var(--muted);
  font-size: 11px;
}

.moderator-row b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #b8dcff;
  background: var(--blue-soft);
  font-size: 10px;
}

.admin-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-2);
}

.admin-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.admin-card p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--blue);
  font-weight: 780;
}

/* Loading */
.app-loading {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-loading.ready {
  visibility: hidden;
  opacity: 0;
}

.loading-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #2aa5ff, #0878e6);
  box-shadow: 0 18px 45px rgba(13, 126, 234, 0.28);
  font-size: 34px;
  font-weight: 900;
  animation: loading-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes loading-pulse {
  from { transform: scale(0.96); opacity: 0.78; }
  to { transform: scale(1); opacity: 1; }
}

@media (min-width: 560px) {
  main {
    padding-right: 22px;
    padding-left: 22px;
  }

  .quick-actions {
    gap: 14px;
  }

  .promo-card {
    min-height: 184px;
  }

  .bottom-sheet {
    bottom: 10px;
    max-height: calc(100dvh - 32px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    padding-bottom: 24px;
  }
}

@media (max-width: 390px) {
  .app-topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  main {
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .brand-copy span {
    font-size: 17px;
  }

  .balance-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .balance-caption {
    font-size: 14px;
  }

  .quick-icon {
    width: 52px;
    height: 52px;
  }

  .quick-action {
    font-size: 11px;
  }

  .promo-card {
    min-height: 165px;
    padding: 21px;
  }

  .promo-copy strong {
    font-size: 24px;
  }

  .phone-card {
    right: 17px;
    width: 72px;
    height: 116px;
  }

  .asset-main {
    grid-template-columns: 49px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 15px;
  }

  .coin-icon {
    width: 49px;
    height: 49px;
  }

  .asset-name strong {
    font-size: 19px;
  }

  .asset-value strong {
    font-size: 14px;
  }

  .page-tabs button,
  .segmented button {
    font-size: 12px;
  }

  .bottom-sheet {
    padding-right: 15px;
    padding-left: 15px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat strong {
    font-size: 17px;
  }

  .admin-action-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .moderator-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .moderator-row b {
    grid-column: 2;
    width: max-content;
  }
}

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