﻿:root {
  --bg: #081a24;
  --bg-strong: #091c2b;
  --panel: rgba(20, 33, 46, 0.88);
  --panel-alt: rgba(35, 49, 66, 0.9);
  --panel-soft: rgba(53, 69, 84, 0.9);
  --line: rgba(145, 165, 189, 0.2);
  --line-strong: rgba(136, 186, 233, 0.8);
  --primary: #68baf6;
  --primary-strong: #4aa3eb;
  --text: #eef7ff;
  --text-soft: #9fb4c7;
  --text-muted: #72859a;
  --green: #2ae1a0;
  --red: #ff6b6b;
  --warning: #ffcb52;
  --shadow: rgba(0, 0, 0, 0.32);
  --radius: 18px;
  --scrollbar-track: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: linear-gradient(180deg, rgba(116, 196, 255, 0.95), rgba(61, 122, 234, 0.95));
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 196, 255, 0.95) rgba(255, 255, 255, 0.06);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle at top, #152b39 0%, #091b29 35%, #050d15 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px;
}

input[type='number'] {
  -moz-appearance: textfield;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.telegram-app {
  background: #050b12;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.telegram-app .app-shell {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

button, input, select {
  font: inherit;
}

button { cursor: pointer; }

.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;
}

.app-shell {
  position: relative;
  width: min(100%, 620px);
  min-height: 760px;
  background: rgba(7, 22, 31, 0.72);
  border: 1px solid rgba(173, 193, 213, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.36);
}

.bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.blur-a {
  width: 180px;
  height: 180px;
  left: 10%;
  top: 30%;
  background: rgba(136, 195, 248, 0.16);
}

.blur-b {
  width: 220px;
  height: 220px;
  right: 5%;
  top: 12%;
  background: rgba(80, 175, 247, 0.08);
}

.topbar,
.main-panel,
.bot-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 18px 8px;
}

.user-avatar-trigger {
  border: none;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61, 169, 211, 0.8), rgba(166, 255, 229, 0.45));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #38b8f0, #8ae7df, #ffb992);
  border: 2px solid rgba(7, 22, 31, 0.9);
}

.avatar.has-photo {
  background: #122130;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar.has-photo .avatar-image {
  display: block;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.username {
  font-size: 1.02rem;
  font-weight: 700;
}

.user-handle {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.lang-select {
    border: 1px solid rgba(205, 217, 233, 0.16);
    background: rgba(11, 19, 27, 0.9);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    outline: none;
    min-width: 60px;
    height: 34px;
    padding: 0 21px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--text-soft);
  font-size: 0.66rem;
  pointer-events: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  top: 33px !important;
}

.support-icon-btn {
  font-size: 0.92rem;
}

.main-panel {
  padding: 18px 18px 0;
}

.balance-wrap {
  text-align: center;
  margin-top: 12px;
}

.balance-amount {
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.balance-label {
  font-size: 1rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.action-btn {
  border: none;
  background: transparent;
  border-radius: 18px;
  padding: 10px 8px 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  box-shadow: none;
}

.action-btn .action-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(107, 176, 235, 0.26), rgba(95, 147, 196, 0.4));
  border: 1px solid rgba(133, 182, 232, 0.5);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.action-btn span {
  font-size: 0.8rem;
  font-weight: 600;
}

.assets-panel {
  margin-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.assets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.assets-header h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-link {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.assets-list {
  display: flex;
  flex-direction: column;
}

.asset-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.asset-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.asset-name {
  font-size: 1.12rem;
  font-weight: 700;
}

.asset-change {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--green);
}

.asset-balance {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.asset-balance .amount {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.asset-balance .usd {
  font-size: 0.8rem;
  color: var(--text-soft);
}

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

.bot-footer {
  padding: 12px 18px 18px;
  text-align: center;
}

.bot-footer a {
  color: rgba(191, 205, 220, 0.8);
  text-decoration: none;
  font-size: 0.84rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 30;
}

.modal-box {
  width: min(100%, 590px);
  max-height: calc(100vh - 22px);
  background: linear-gradient(180deg, rgba(15, 28, 39, 0.98), rgba(12, 24, 34, 0.96));
  border: 1px solid rgba(146, 176, 210, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-box::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 160px;
  background: radial-gradient(circle at top left, rgba(81, 172, 246, 0.2), transparent 55%);
  pointer-events: none;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.modal-title {
  font-size: clamp(1.18rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.close-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 18px 18px 20px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

.field-label {
  display: block;
  margin: 18px 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(189, 204, 220, 0.72);
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  text-align: center;
}

.step-node span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  color: var(--text);
}

.step-node small {
  font-size: 0.66rem;
  line-height: 1.2;
}

.step-node.active {
  border-color: rgba(97, 195, 255, 0.45);
  background: rgba(48, 118, 190, 0.14);
  color: var(--text);
}

.step-node.active span {
  background: linear-gradient(180deg, #6ce2ff, #2b79eb);
  color: white;
}

.step-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
    margin-top: 1.9em;
    margin-bottom: 0;
  border-radius: 12px;
  background: rgba(16, 26, 34, 0.9);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-panel {
  display: flex;
  flex-direction: column;
}

.step-actions {
  display: flex;
  justify-content: stretch;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.step-inline {
  margin-top: 0 !important;
  width: 100%;
  flex: 1;
}

.step-actions .submit-btn,
.step-actions .step-back-btn {
  /* height: 56px; */
  /* min-height: 56px; */
  margin-top: 0 !important;
  padding: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 1;
}

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

.token-card,
.network-card {
  position: relative;
  border: 1px solid rgba(124, 157, 200, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 36, 48, 0.92), rgba(19, 31, 42, 0.9));
  color: var(--text);
  padding: 14px 12px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.token-card:hover,
.network-card:hover,
.staking-plan:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 174, 229, 0.4);
}

.token-card.active,
.network-card.selected {
  border-color: rgba(100, 194, 255, 0.9);
  background: linear-gradient(180deg, rgba(20, 40, 54, 1), rgba(13, 28, 38, 0.95));
  box-shadow: inset 0 0 0 1px rgba(122, 197, 255, 0.35), 0 8px 20px rgba(17, 117, 186, 0.18);
}

.token-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.token-name {
  font-size: 0.98rem;
  font-weight: 700;
}

.token-balance {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.network-card {
  min-height: 56px;
  padding: 16px 14px;
}

.network-card .network-name {
  font-size: 0.94rem;
  font-weight: 700;
}

.network-dot {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.3);
}

.network-card.selected .network-dot {
  background: linear-gradient(180deg, #7dd6ff, #4aa3eb);
  border-color: rgba(255,255,255,0.9);
}

.amount-box {
  margin-top: 18px;
}

.amount-box > .field-label {
  margin: 0 0 10px;
}

.amount-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 10px;
}

.amount-meta-title {
  margin: 0;
}

.amount-meta-available {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.3;
}

.recipient-input {
  font-size: 1rem;
  text-align: left;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(205, 217, 233, 0.16);
  background: rgba(11, 19, 27, 0.9);
}

.wallet-address-text {
  flex: 1;
  color: var(--text);
  min-width: 0;
  font-size: 1rem;
  word-break: break-all;
}

.wallet-copy-btn {
  flex-shrink: 0;
}

.amount-input,
.inline-input,
.input-select {
  width: 100%;
  border: 1px solid rgba(205, 217, 233, 0.16);
  border-radius: 14px;
  background: rgba(11, 19, 27, 0.9);
  color: var(--text);
  padding: 16px 14px;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.amount-input {
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.amount-input-compact {
  font-size: 1rem;
  font-weight: 600;
}

.amount-input:focus,
.inline-input:focus,
.input-select:focus {
  outline: 2px solid rgba(118, 174, 229, 0.7);
  border-color: rgba(118, 174, 229, 0.4);
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #59d4ff, #2d75eb);
  color: white;
  padding: 14px;
  font-size: 1.04rem;
  font-weight: 800;
  margin-top: 16px;
  box-shadow: 0 12px 20px rgba(56, 121, 215, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(56, 121, 215, 0.42);
}

.swap-grid,
.staking-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.swap-quote {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(12, 24, 35, 0.9);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.conversion-preview {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(12, 24, 35, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.conversion-preview strong {
  color: var(--text);
  font-size: 0.95rem;
}

.history-panel,
.admin-panel {
  padding: 18px;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-body,
.history-panel,
.admin-panel,
.ts-dropdown-content {
  -ms-overflow-style: auto;
  scrollbar-width: thin;
}

.modal-body::-webkit-scrollbar,
.history-panel::-webkit-scrollbar,
.admin-panel::-webkit-scrollbar,
.ts-dropdown-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-body::-webkit-scrollbar-track,
.history-panel::-webkit-scrollbar-track,
.admin-panel::-webkit-scrollbar-track,
.ts-dropdown-content::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

.modal-body::-webkit-scrollbar-thumb,
.history-panel::-webkit-scrollbar-thumb,
.admin-panel::-webkit-scrollbar-thumb,
.ts-dropdown-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.market-panel {
  padding-top: 10px;
}

.js-market-box {
  display: flex;
  flex-direction: column;
}

.js-market-box .market-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.market-subtitle {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.analytics-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(10, 20, 29, 0.9);
  overflow: hidden;
}

.analytics-card h4 {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  font-size: 0.82rem;
}

.analytics-list li > * {
  min-width: 0;
}

.analytics-list li span {
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.analytics-list li strong,
.analytics-list li small {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-list li strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.analytics-list small {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.analytics-empty {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.market-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(9, 18, 25, 0.9);
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 196, 255, 0.95) rgba(255, 255, 255, 0.06);
}

.market-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.market-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.market-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(116, 196, 255, 0.95), rgba(61, 122, 234, 0.95));
  border-radius: 999px;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  /* table-layout: fixed; */
  table-layout: auto;
}

.market-table th {
  padding: 12px 14px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.market-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
}

.market-table tbody tr:last-child td {
  border-bottom: none;
}

.market-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.market-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.market-asset div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.market-asset strong {
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-asset small {
  color: var(--text-soft);
  font-size: 0.62rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-asset .asset-icon {
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.market-price,
.market-hold,
.market-convert {
  font-weight: 700;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-change {
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}

.market-change.up {
  color: var(--green);
}

.market-change.down {
  color: var(--red);
}

.market-table th:nth-child(1),
.market-table td:nth-child(1) { width: 33%; }
.market-table th:nth-child(2),
.market-table td:nth-child(2) { width: 14%; }
.market-table th:nth-child(3),
.market-table td:nth-child(3) { width: 12%; }
.market-table th:nth-child(4),
.market-table td:nth-child(4) { width: 11%; }
.market-table th:nth-child(5),
.market-table td:nth-child(5) { width: 30%; }

.history-list,
.admin-list,
.request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item,
.admin-row,
.request-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7.5px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 29, 38, 0.9), rgba(12, 22, 31, 0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.admin-row,
.request-row {
  align-items: flex-start;
}

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

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.pending { background: rgba(255,203,82,0.18); color: #ffd978; }
.status-pill.approved { background: rgba(42,225,160,0.2); color: #83f2bf; }
.status-pill.rejected { background: rgba(255,107,107,0.18); color: #ff9d9d; }

.small-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.small-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.small-btn.approve {
  background: rgba(42,225,160,0.15);
  color: #96f0ca;
}

.small-btn.reject {
  background: rgba(255,107,107,0.12);
  color: #ffb0b0;
}

.wallet-manager {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet-editor {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 8px;
  align-items: center;
}

.wallet-field {
  width: 100%;
  border: 1px solid rgba(205, 217, 233, 0.16);
  border-radius: 12px;
  background: rgba(11, 19, 27, 0.9);
  color: var(--text);
  padding: 10px 12px;
  font-size: 1rem;
}

.wallet-address-field {
  min-width: 0;
}

.new-wallet {
  margin-top: 8px;
}

.small-btn.dark {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.step-back-btn {
  width: 100%;
  /* min-height: 56px; */
  padding:  14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1;
  flex: 1;
  margin-top: 0;
}

.ts-wrapper {
  position: relative;
}

.ts-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(205, 217, 233, 0.16) !important;
  border-radius: 12px;
  background: rgba(11, 19, 27, 0.9) !important;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.input-select {
    padding: 0 14px;
}

.input-select > .ts-control {
    border: 0 !important;
    box-shadow: none !important;
}


.ts-control input {
  color: var(--text) !important;
  background: transparent !important;
  border: none !important;
  font-size: 1rem;
  box-shadow: none !important;
  min-width: 0;
}

.ts-placeholder {
  color: var(--text-soft);
}

.ts-dropdown {
  background: rgba(11, 19, 27, 0.98) !important;
  border: 1px solid rgba(205, 217, 233, 0.18) !important;
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 18px 28px rgba(2, 8, 13, 0.4);
  overflow: hidden;
}

.ts-dropdown-content .option {
  padding: 10px 12px;
  color: var(--text) !important;
  background: rgba(11, 19, 27, 0.98) !important;
  cursor: pointer;
}

.ts-dropdown-content .option:hover,
.ts-dropdown-content .option.active {
  background: rgba(92, 169, 245, 0.16);
}

.ts-wrapper .ts-dropdown .item {
  color: var(--text);
}

.lang-wrap .ts-wrapper,
.lang-wrap .ts-control {
  border-radius: 999px;
}

.ts-wrapper.single .ts-control .item,
.ts-wrapper.single .ts-control .item[data-value] {
  color: var(--text) !important;
}

.ts-wrapper.plugin-dropdown_input.focus .ts-control,
.ts-wrapper.focus .ts-control {
  border-color: rgba(104, 186, 246, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(104, 186, 246, 0.2), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.user-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-search-input {
  width: 100%;
  border: 1px solid rgba(205, 217, 233, 0.18);
  border-radius: 12px;
  background: rgba(11, 19, 27, 0.9);
  color: var(--text);
  padding: 14px 12px;
  margin-bottom: 14px;
}

.user-profile-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(12, 24, 34, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.empty-state {
  text-align: center;
  padding: 36px 18px 18px;
  color: var(--text-soft);
}

.empty-state.compact {
  padding: 18px 12px;
}

.empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
}

.staking-plan {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 30, 41, 0.94), rgba(10, 22, 30, 0.92));
  padding: 14px 14px 16px;
  min-height: 110px;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.staking-plan h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.staking-plan div,
.staking-plan strong {
  color: var(--text-soft);
}

.staking-plan strong {
  color: #9fe7ff;
  font-size: 1.1rem;
}

.staking-plan.selected {
  border-color: rgba(104, 186, 246, 0.9);
  box-shadow: inset 0 0 0 1px rgba(96, 178, 245, 0.35), 0 10px 22px rgba(66, 121, 182, 0.2);
}

@media (max-width: 620px) {
  .app-shell {
    min-height: 680px;
  }

  .action-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-top: 22px;
  }

  .action-btn {
    min-height: 70px;
    border-radius: 12px;
    padding: 6px 4px 8px;
    gap: 6px;
  }

  .action-btn .action-icon {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .action-btn span {
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
  }

  .lang-select {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .swap-grid,
  .staking-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .network-grid {
    grid-template-columns: 2;
  }

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

  .js-market-box .market-table-wrap {
    overflow-x: hidden;
  }

  .js-market-box .market-table th,
  .js-market-box .market-table td {
    padding: 8px 6px;
  }

  .js-market-box .market-table th {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .js-market-box .market-table td {
    font-size: 0.68rem;
  }

  .js-market-box .market-price,
  .js-market-box .market-hold,
  .js-market-box .market-convert,
  .js-market-box .market-change {
    font-size: 0.66rem;
  }

  .js-market-box .market-asset {
    gap: 6px;
  }

  .js-market-box .market-asset .asset-icon {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }

  .js-market-box .market-asset strong {
    font-size: 0.66rem;
  }

  .js-market-box .market-asset small {
    font-size: 0.56rem;
  }

  .modal-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .modal-box {
    width: 100%;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
  }
}

button#yield-max {
    position: absolute;
    right: 30px;
    margin-top: 10px;
}
