/* AscendEx UI polish — wallet, staking, rating, nav, profiles */

/* ── Section screens (non-trade) ── */
.section-screen .page-head {
  padding: 20px 20px 14px;
}
.section-screen .page-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 6px;
}
.section-screen .page-head p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  opacity: 0.85;
}
.section-screen.screen {
  animation: screenFadeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ── Bottom navigation v2 ── */
.navbar-v2 {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 4px;
  z-index: 60;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 15, 0.96) !important;
  backdrop-filter: blur(24px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.nav-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 14px - env(safe-area-inset-bottom));
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 109, 240, 0.2), rgba(99, 85, 216, 0.1));
  border: 1px solid rgba(124, 109, 240, 0.22);
  box-shadow: 0 4px 18px rgba(124, 109, 240, 0.14);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width;
}
.navbar-v2 .nav {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border: none;
  background: transparent;
  color: #8b8b98;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.navbar-v2 .nav-ico {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.navbar-v2 .nav-ico svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}
.navbar-v2 .nav.active {
  color: #c4b5fd;
}
.navbar-v2 .nav.active .nav-ico {
  transform: translateY(-1px) scale(1.04);
  background: transparent;
}
.navbar-v2 .nav:active .nav-ico {
  transform: scale(0.94);
}
.navbar-v2 .nav.active:active .nav-ico {
  transform: scale(0.98);
}

/* ── Modal overlays & close ── */
.trade-detail-overlay {
  transition: background 0.3s ease, opacity 0.3s ease;
}
.trade-detail-overlay.overlay-open {
  animation: overlayIn 0.32s ease both;
}
.trade-detail-overlay.overlay-closing {
  animation: overlayOut 0.26s ease both;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes overlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.trade-detail-card.sheet-in {
  animation: sheetUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.trade-detail-card.sheet-out {
  animation: sheetDown 0.28s cubic-bezier(0.4, 0, 0.6, 1) both;
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes sheetDown {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(20px); }
}
.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1b5;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.modal-close-btn:active {
  transform: scale(0.94);
  background: rgba(124, 109, 240, 0.18);
  color: #e4e4e7;
  border-color: rgba(124, 109, 240, 0.35);
}

/* ── Rating ── */
.rating-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124, 109, 240, 0.08);
  border: 1px solid rgba(124, 109, 240, 0.18);
}
.rating-hero-meta strong {
  font-size: 15px;
  font-weight: 800;
  color: #ececf1;
}
.rating-hero-meta span {
  font-size: 12px;
  color: #9d93f5;
  font-weight: 600;
}
.rating-tabs-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 20px 14px;
  padding: 6px;
  border-radius: 18px;
}
.rating-tabs-v2 .rating-tab {
  padding: 12px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.22s ease;
}
.rating-tabs-v2 .rating-tab.active {
  background: rgba(124, 109, 240, 0.16) !important;
  box-shadow: 0 4px 14px rgba(124, 109, 240, 0.12);
}
.rating-lb-scroll {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 100px;
  scroll-behavior: smooth;
}
.rating-lb-scroll::-webkit-scrollbar { width: 4px; }
.rating-lb-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 109, 240, 0.35);
  border-radius: 4px;
}
.rating-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rating-lb-row-v2 {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(18, 18, 26, 0.92);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rating-lb-row-v2:active {
  transform: scale(0.985);
}
.rating-lb-row-v2.whale {
  border-color: rgba(157, 147, 245, 0.4);
  box-shadow: 0 0 20px rgba(124, 109, 240, 0.1);
}
.rating-lb-row-v2 .lb-rank {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1b5;
}
.rating-lb-row-v2.lb-top-1 .lb-rank {
  background: linear-gradient(135deg, #f5d76e, #d4a017);
  color: #1a1400;
  box-shadow: 0 4px 12px rgba(245, 215, 110, 0.3);
}
.rating-lb-row-v2.lb-top-2 .lb-rank {
  background: linear-gradient(135deg, #e8ecf0, #9aa5b1);
  color: #1a1f24;
}
.rating-lb-row-v2.lb-top-3 .lb-rank {
  background: linear-gradient(135deg, #e8a87c, #b87333);
  color: #1f1208;
}
.rating-lb-row-v2 .lb-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 3px;
}
.rating-lb-row-v2 .lb-body small {
  font-size: 11px;
  color: #8b8b98;
}
.rating-lb-row-v2 .lb-score {
  font-size: 15px;
  font-weight: 800;
  color: #9d93f5;
  text-align: right;
}
.rating-lb-row-v2 .lb-score small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #6b6b78;
  margin-top: 2px;
}
.rating-load-more {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #8b8b98;
}

/* ── Wallet cabinet PRO ── */
.wallet-pro {
  padding: 12px 18px calc(100px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-hero {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  overflow: hidden;
}
.wallet-hero-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 109, 240, 0.28), transparent 68%);
  pointer-events: none;
}
.wallet-hero-user {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.wallet-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(124, 109, 240, 0.14);
  border: 1.5px solid rgba(157, 147, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(124, 109, 240, 0.2);
}
.wallet-hero-avatar .ax-tri-logo {
  width: 34px !important;
  height: 34px !important;
}
.wallet-hero-id { min-width: 0; }
.wallet-pro .wallet-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8b98;
}
.wallet-pro .wallet-cabinet-user {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f4f4f5;
  word-break: break-word;
}
.wallet-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}
.wallet-hero-chips .wallet-status-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.wallet-hero-balance {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wallet-pro .wallet-balance-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b8b98;
  margin-bottom: 6px;
}
.wallet-balance-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.wallet-balance-amount #w-bal {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fafafa;
}
.wallet-balance-sym {
  font-size: 20px;
  font-weight: 700;
  color: #9d93f5;
}
.wallet-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #8b8b98;
}
.wallet-pending-row strong {
  font-size: 15px;
  font-weight: 800;
  color: #c4b5fd;
}

.wallet-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wallet-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  min-height: 118px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.wallet-cta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.wallet-cta:active .wallet-cta-shine {
  transform: translateX(120%);
}
.wallet-cta:active {
  transform: scale(0.96);
}
.wallet-cta-dep {
  background: linear-gradient(145deg, #1fa87a 0%, #2dd4a8 50%, #1a8f68 100%);
  box-shadow: 0 10px 28px rgba(45, 212, 168, 0.28);
}
.wallet-cta-wd {
  background: linear-gradient(145deg, #5344c4 0%, #7c6df0 55%, #6355d8 100%);
  box-shadow: 0 10px 28px rgba(124, 109, 240, 0.32);
}
.wallet-cta-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-cta-ico svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wallet-cta-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.wallet-cta-text small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.wallet-block { display: flex; flex-direction: column; gap: 10px; }
.wallet-block-last { margin-bottom: 4px; }
.wallet-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
}
.wallet-block-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ececf1;
  letter-spacing: -0.01em;
}
.wallet-block-head span {
  font-size: 11px;
  font-weight: 600;
  color: #8b8b98;
}
.wallet-chart-card {
  padding: 14px;
  border-radius: 18px;
}
.wallet-chart-card .balance-chart-mount {
  height: 130px;
}

.wallet-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}
.wallet-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(18, 18, 26, 0.92);
  border: none;
  text-align: left;
  cursor: default;
}
.wallet-metric-copy {
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}
.wallet-metric-copy:active {
  background: rgba(124, 109, 240, 0.1);
}
.wallet-metric-key {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b8b98;
}
.wallet-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.wallet-metric-action {
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  color: #9d93f5;
  margin-top: 2px;
}

.wallet-settings-list {
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}
.wallet-setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 26, 0.92);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.wallet-setting-row:last-child { border-bottom: none; }
.wallet-setting-row:active { background: rgba(124, 109, 240, 0.1); }
.wallet-setting-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 109, 240, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wallet-setting-ico svg {
  width: 20px;
  height: 20px;
  stroke: #9d93f5;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wallet-setting-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wallet-setting-body small {
  font-size: 11px;
  font-weight: 600;
  color: #8b8b98;
}
.wallet-setting-body strong {
  font-size: 15px;
  font-weight: 700;
  color: #f4f4f5;
}
.wallet-setting-chevron {
  font-size: 20px;
  color: #6b6b78;
  line-height: 1;
}

.wallet-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wallet-service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 26, 0.92);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.wallet-service-tile:active {
  transform: scale(0.97);
  border-color: rgba(124, 109, 240, 0.35);
  box-shadow: 0 6px 20px rgba(124, 109, 240, 0.12);
}
.wallet-service-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-service-ico svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#wallet-open-hist .wallet-service-ico {
  background: linear-gradient(135deg, #45b8f0, #2a7ab8);
}
#wallet-open-trades .wallet-service-ico {
  background: linear-gradient(135deg, #7c6df0, #4c3d9e);
}
.wallet-service-label {
  font-size: 15px;
  font-weight: 800;
  color: #f4f4f5;
}
.wallet-service-hint {
  font-size: 11px;
  font-weight: 600;
  color: #8b8b98;
  margin-top: -4px;
}

/* ── Staking v2 ── */
.staking-page .staking-balance-card {
  margin: 0 20px 16px;
  padding: 20px;
  border-radius: 20px;
  font-size: 14px;
}
.staking-page .staking-balance-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.staking-page .staking-warning {
  margin: 0 20px 16px;
  padding: 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.staking-page .staking-section {
  margin: 0 20px 16px;
}
.staking-page .staking-section-head {
  font-size: 15px;
  margin-bottom: 12px;
}
.staking-page .staking-coin-card {
  padding: 16px !important;
  border-radius: 16px !important;
}
.staking-page .staking-time-btn {
  padding: 14px !important;
  font-size: 14px !important;
  border-radius: 14px !important;
}

/* ── Trader profile v2 ── */
.trader-profile-card-v2 {
  max-height: 90vh;
  border-radius: 24px 24px 20px 20px !important;
  overflow: hidden;
}
.tp-hero-v2 {
  position: relative;
  padding: 24px 20px 20px;
  background: linear-gradient(165deg, rgba(124, 109, 240, 0.28) 0%, rgba(99, 85, 216, 0.08) 45%, transparent 100%);
  overflow: hidden;
}
.tp-hero-v2::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 147, 245, 0.2), transparent 70%);
  pointer-events: none;
}
.tp-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.tp-avatar-v2 {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(124, 109, 240, 0.15);
  border: 2px solid rgba(157, 147, 245, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 109, 240, 0.25);
  flex-shrink: 0;
}
.tp-avatar-v2 .ax-tri-logo {
  width: 44px !important;
  height: 44px !important;
}
.tp-name-v2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafafa;
  line-height: 1.2;
}
.tp-vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(124, 109, 240, 0.2);
  border: 1px solid rgba(157, 147, 245, 0.35);
  color: #d4cffc;
  margin-bottom: 8px;
}
.tp-badges-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-badge-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1b5;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.tp-badge-chip.ok { color: #2dd4a8; border-color: rgba(45, 212, 168, 0.25); background: rgba(45, 212, 168, 0.08); }
.tp-metric-hero {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(9, 9, 15, 0.45);
  border: 1px solid rgba(157, 147, 245, 0.2);
  position: relative;
  z-index: 1;
}
.tp-metric-hero span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b8b98;
}
.tp-metric-hero b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  color: #c4b5fd;
  letter-spacing: -0.02em;
}
.trader-stats-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px;
}
.trader-stat-v2 {
  padding: 14px;
  border-radius: 14px;
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.trader-stat-v2 span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b8b98;
  margin-bottom: 6px;
}
.trader-stat-v2 b {
  font-size: 16px;
  font-weight: 800;
  color: #f0f0f5;
  line-height: 1.2;
  word-break: break-word;
}
.trader-profile-actions-v2 {
  padding: 8px 20px 24px;
}
.trader-profile-actions-v2 .btn-main {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 16px;
}

.section-screen#screen-rating .rating-panel { margin: 0 0 88px; }
.wallet-hero-avatar .ax-tri-logo {
  width: 34px !important;
  height: 34px !important;
}
:root[data-theme="ascendex"] .modal-close-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #a1a1b5 !important;
}
:root[data-theme="ascendex"] .modal-close-btn:active {
  background: rgba(124, 109, 240, 0.2) !important;
  color: #ececf1 !important;
}

:root[data-theme="ascendex"] .wallet-hero {
  background: rgba(18, 18, 26, 0.94) !important;
  border: 1px solid rgba(124, 109, 240, 0.2);
}
:root[data-theme="ascendex"] .wallet-metrics.glass,
:root[data-theme="ascendex"] .wallet-settings-list.glass,
:root[data-theme="ascendex"] .wallet-chart-card.glass {
  background: rgba(18, 18, 26, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
:root[data-theme="ascendex"] .wallet-service-tile {
  background: rgba(18, 18, 26, 0.94) !important;
}

/* ── 5-tab navbar ── */
.navbar-5 .nav { font-size: 9px; padding: 8px 2px; }
.navbar-5 .nav-ico { width: 24px; height: 24px; }
.navbar-5 .nav-ico svg { width: 20px; height: 20px; }

.navbar-6 .nav { font-size: 8px; padding: 7px 1px; letter-spacing: -.01em; }
.navbar-6 .nav-ico { width: 22px; height: 22px; }
.navbar-6 .nav-ico svg { width: 18px; height: 18px; }
.navbar-6 .nav span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-nav-lg .nav {
  gap: 4px;
  padding: 8px 2px 6px;
  font-size: 10px;
  font-weight: 700;
}
.navbar-nav-lg .nav-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar-nav-lg .nav-ico svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.1;
}
.navbar-nav-lg .nav.active .nav-ico {
  transform: translateY(-2px) scale(1.06);
  background: linear-gradient(145deg, rgba(124, 109, 240, 0.28), rgba(99, 85, 216, 0.14));
  border-color: rgba(124, 109, 240, 0.38);
  box-shadow: 0 6px 18px rgba(124, 109, 240, 0.22);
}
.navbar-nav-lg .nav.active {
  color: #ddd6fe;
}

/* ── Profile tab PRO ── */
.profile-shell {
  padding: 10px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Profile cabinet v2 — distributed blocks */
.profile-cabinet-v2 {
  gap: 12px;
  padding: 12px 16px 16px;
}
.cabinet-block {
  border-radius: 18px;
  padding: 16px 18px;
}
.cabinet-identity {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cabinet-identity-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cabinet-identity-main {
  min-width: 0;
  flex: 1;
}
.cabinet-id-chip {
  width: 100%;
  margin: 0;
}
.cabinet-balance-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cabinet-balance-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}
.cabinet-balance-row.primary {
  padding-bottom: 14px;
}
.cabinet-balance-row.pending {
  padding-top: 14px;
}
.cabinet-balance-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.cabinet-bal-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124, 109, 240, 0.12);
  border: 1px solid rgba(124, 109, 240, 0.22);
  color: #c4b5fd;
}
.cabinet-bal-ico.pending {
  background: rgba(47, 124, 246, 0.1);
  border-color: rgba(47, 124, 246, 0.2);
  color: #7eb8f0;
}
.cabinet-bal-ico svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cabinet-bal-col {
  min-width: 0;
  flex: 1;
}
.cabinet-bal-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b8b98;
  margin-bottom: 4px;
}
.cabinet-bal-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.cabinet-bal-value span {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fafafa;
  font-variant-numeric: tabular-nums;
}
.cabinet-bal-value em,
.cabinet-bal-pending-val em {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  color: #8b8b98;
}
.cabinet-bal-pending-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.cabinet-bal-pending-val b {
  font-size: 22px;
  font-weight: 800;
  color: #eaecef;
  font-variant-numeric: tabular-nums;
}
.cabinet-status {
  padding: 10px;
}
.cabinet-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cabinet-status-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.cabinet-status-tile.active {
  border-color: rgba(45, 212, 168, 0.28);
  background: rgba(45, 212, 168, 0.06);
}
.cabinet-status-tile.inactive {
  opacity: 0.72;
}
.cabinet-status-tile.vip-bronze .cabinet-status-ico { color: #cd7f32; border-color: rgba(205, 127, 50, 0.35); background: rgba(205, 127, 50, 0.1); }
.cabinet-status-tile.vip-silver .cabinet-status-ico { color: #b8c0cc; border-color: rgba(184, 192, 204, 0.35); background: rgba(184, 192, 204, 0.1); }
.cabinet-status-tile.vip-gold .cabinet-status-ico { color: #d4a017; border-color: rgba(212, 160, 23, 0.35); background: rgba(212, 160, 23, 0.1); }
.cabinet-status-tile.vip-vip .cabinet-status-ico { color: #9d93f5; border-color: rgba(157, 147, 245, 0.35); background: rgba(157, 147, 245, 0.1); }
.cabinet-status-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 109, 240, 0.1);
  border: 1px solid rgba(124, 109, 240, 0.2);
  color: #c4b5fd;
}
.cabinet-status-ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cabinet-status-copy {
  min-width: 0;
  width: 100%;
}
.cabinet-status-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b8b98;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cabinet-status-copy b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1.25;
  word-break: break-word;
}
.cabinet-actions {
  padding: 0;
  background: transparent;
  border: none;
}
.cabinet-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cabinet-actions-row .ex3d-btn {
  min-height: 52px;
}
.profile-cabinet-v2 .profile-section {
  margin-top: 4px;
}
.profile-cabinet-v2 .ex-profile-block {
  padding-left: 0;
  padding-right: 0;
}
#screen-profile .deposit-card,
#screen-profile .withdraw-card {
  margin-top: 4px;
}
.profile-card {
  position: relative;
  padding: 20px;
  border-radius: 22px;
  overflow: hidden;
}
.profile-card-v2 { padding: 22px 20px 20px; }
.profile-card-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.profile-card-top .profile-avatar { margin-bottom: 12px; }
.profile-card-top .profile-name { margin-bottom: 10px; }
.profile-card-glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,109,240,.28), transparent 72%);
  pointer-events: none;
}
.profile-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(124,109,240,.15);
  border: 2px solid rgba(157,147,245,.38);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(124,109,240,.22);
  flex-shrink: 0;
}
.profile-avatar .ax-tri-logo { width: 38px !important; height: 38px !important; }
.profile-identity { min-width: 0; flex: 1; }
.profile-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b8b98;
}
.profile-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fafafa;
  line-height: 1.15;
  word-break: break-word;
}
.profile-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #a1a1b5;
  font-size: 11px;
  cursor: pointer;
}
.profile-id-chip code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #e4e4e7;
}
.profile-id-chip em {
  font-style: normal;
  font-size: 10px;
  color: #9d93f5;
  font-weight: 700;
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.profile-status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.12);
}
.profile-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.profile-status-row:last-child { border-bottom: none; }
.profile-status-label {
  font-size: 12px;
  font-weight: 600;
  color: #8b8b98;
  flex-shrink: 0;
}
.profile-status-row .wallet-status-chip {
  margin: 0;
  max-width: 62%;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-balance-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.profile-balance-main { text-align: center; }
.profile-balance-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(124,109,240,.08);
  font-size: 12px;
  color: #8b8b98;
}
.profile-balance-sub strong { color: #c4b5fd; font-size: 14px; font-weight: 800; }
.profile-balance-zone {
  position: relative;
  z-index: 1;
  padding: 16px 0 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}
.profile-balance-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b8b98;
  margin-bottom: 6px;
}
.profile-balance-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}
.profile-balance-value #w-bal {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.profile-balance-sym { font-size: 18px; font-weight: 700; color: #9d93f5; }
.profile-pending {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: #8b8b98;
}
.profile-pending strong { color: #c4b5fd; font-size: 14px; }
.profile-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.profile-cta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.profile-cta:active { transform: scale(.96); }
.profile-cta-dep {
  background: linear-gradient(135deg, #1fa87a, #2dd4a8);
  box-shadow: 0 8px 20px rgba(45,212,168,.25);
}
.profile-cta-wd {
  background: linear-gradient(135deg, #6355d8, #7c6df0);
  box-shadow: 0 8px 20px rgba(124,109,240,.28);
}
.profile-cta-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-cta-ico svg {
  width: 16px; height: 16px;
  stroke: #fff; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.profile-section { display: flex; flex-direction: column; gap: 10px; }
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.section-title-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ececf1;
}
.section-title-row span { font-size: 11px; color: #8b8b98; font-weight: 600; }
.section-link-btn {
  border: none;
  background: rgba(124,109,240,.14);
  color: #9d93f5;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
}
.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 8px 4px;
}
.profile-stat span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8b8b98;
}
.profile-stat b {
  font-size: 18px;
  font-weight: 800;
  color: #f4f4f5;
}
.profile-stat.win b { color: #7eb8a0; }
.profile-stat.open b { color: #a89fd4; }
.profile-chart {
  padding: 12px;
  border-radius: 18px;
}
.profile-recent-ops {
  border-radius: 18px;
  padding: 4px;
  overflow: hidden;
}
.profile-op-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
}
.profile-op-row:last-child { border-bottom: none; }
.profile-op-type { font-weight: 700; color: #ececf1; }
.profile-op-amt { font-weight: 800; text-align: right; }
.profile-op-row.dep .profile-op-amt { color: #7eb8a0; }
.profile-op-row.wd .profile-op-amt { color: #a89fd4; }
.profile-op-date {
  grid-column: 1 / -1;
  font-size: 10px;
  color: #6b6b78;
}
.profile-ops-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #8b8b98;
}

/* ── Explore ── */
.staking-shell {
  margin: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.explore-segments {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 18px 14px;
  padding: 5px;
  border-radius: 16px;
}
.explore-seg {
  position: relative;
  z-index: 1;
  padding: 13px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8b8b98;
  cursor: pointer;
  transition: color .22s ease, transform .18s ease;
  text-align: center;
  width: 100%;
}
.explore-seg-indicator {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,109,240,.22), rgba(99,85,216,.12));
  border: 1px solid rgba(124,109,240,.24);
  box-shadow: 0 4px 16px rgba(124,109,240,.14);
  transition: transform .34s cubic-bezier(.22,1,.36,1), width .34s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 0;
}
.explore-seg.active {
  color: #c4b5fd;
}
.explore-seg:active { transform: scale(.97); }
.explore-panel { margin: 0 18px; }
.explore-panel.hidden { display: none !important; }

/* Live feed */
.live-feed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.live-feed-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.live-feed-head-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #fafafa;
}
.live-feed-head-text span {
  font-size: 11px;
  color: #8b8b98;
}
.live-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}
.live-feed-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #8b8b98;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.1);
}
.live-feed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(18,18,26,.96);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
.live-feed-card:active { transform: scale(.985); }
.live-feed-card.win { border-color: rgba(45,212,168,.22); }
.live-feed-card.lose { border-color: rgba(240,112,112,.18); }
.live-feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.live-feed-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ddd6fe;
  background: rgba(124,109,240,.16);
  border: 1px solid rgba(124,109,240,.28);
}
.live-feed-body { min-width: 0; flex: 1; }
.live-feed-name {
  font-size: 14px;
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,.06);
  color: #a1a1b5;
  border: 1px solid rgba(255,255,255,.06);
}
.live-tag.dir-up { color: #2dd4a8; border-color: rgba(45,212,168,.22); background: rgba(45,212,168,.08); }
.live-tag.dir-down { color: #f07070; border-color: rgba(240,112,112,.22); background: rgba(240,112,112,.08); }
.live-tag.pair { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-feed-right {
  text-align: right;
  flex-shrink: 0;
}
.live-feed-pnl {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.live-feed-pnl.win { color: #2dd4a8; }
.live-feed-pnl.lose { color: #f07070; }
.live-feed-ago {
  margin-top: 4px;
  font-size: 10px;
  color: #8b8b98;
}

/* Feed trade detail */
.feed-trade-head {
  padding: 20px 20px 12px;
}
.feed-trade-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feed-trade-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ddd6fe;
  background: rgba(124,109,240,.16);
  border: 1px solid rgba(124,109,240,.28);
  flex-shrink: 0;
}
.feed-trade-intro { min-width: 0; flex: 1; }
.feed-trade-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8b8b98;
  margin-bottom: 4px;
}
.feed-trade-pair {
  font-size: 18px;
  font-weight: 800;
  color: #fafafa;
  margin-bottom: 8px;
}
.feed-trade-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-trade-status {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.feed-trade-status.win { color: #2dd4a8; background: rgba(45,212,168,.1); border: 1px solid rgba(45,212,168,.22); }
.feed-trade-status.lose { color: #f07070; background: rgba(240,112,112,.1); border: 1px solid rgba(240,112,112,.22); }
.feed-trade-pnl {
  margin-top: 16px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.feed-trade-pnl.win { color: #2dd4a8; }
.feed-trade-pnl.lose { color: #f07070; }
.feed-trade-grid {
  display: grid;
  gap: 0;
  padding: 0 20px 8px;
}
.feed-trade-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.feed-trade-row span { color: #8b8b98; }
.feed-trade-row b { color: #f4f4f5; text-align: right; word-break: break-word; }

/* Trader profile sheet */
.tp-sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px 16px;
}
.tp-sheet-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ddd6fe;
  background: rgba(124,109,240,.14);
  border: 1px solid rgba(124,109,240,.28);
  flex-shrink: 0;
}
.tp-sheet-meta { min-width: 0; flex: 1; }
.tp-sheet-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8b98;
  margin-bottom: 4px;
}
.tp-sheet-name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fafafa;
  line-height: 1.15;
  word-break: break-word;
}
.tp-sheet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  color: #a1a1b5;
}
.tp-status-badge.active {
  color: #eaecef;
  border-color: rgba(45,212,168,.22);
  background: rgba(45,212,168,.07);
}
.tp-status-ico {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-status-ico svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}
.tp-highlight {
  margin: 0 20px 12px;
  padding: 14px 16px;
  border-radius: 14px;
}
.tp-highlight-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b8b98;
  margin-bottom: 4px;
}
.tp-highlight-value {
  font-size: 24px;
  font-weight: 800;
  color: #c4b5fd;
  letter-spacing: -0.02em;
}
.tp-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 20px 16px;
}
.tp-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  min-width: 0;
}
.tp-stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124,109,240,.1);
  color: #c4b5fd;
}
.tp-stat-ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
}
.tp-stat-card em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #8b8b98;
  margin-bottom: 3px;
}
.tp-stat-card b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #f4f4f5;
  line-height: 1.2;
  word-break: break-word;
}

#screen-explore .rating-lb-scroll { max-height: calc(100vh - 320px); }

.rating-trade-row-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px !important;
  border-radius: 16px !important;
  background: rgba(18,18,26,.94) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  transition: transform .18s ease;
}
.rating-trade-row-v2:active { transform: scale(.985); }
.rating-trade-row-v2.win { border-left: 3px solid #2dd4a8 !important; }
.rating-trade-row-v2.lose { border-left: 3px solid #f07070 !important; }
.rating-trade-main { min-width: 0; flex: 1; }
.rating-trade-side { text-align: right; flex-shrink: 0; }
.rating-trade-row-v2 .rating-trade-user { font-size: 14px; margin-bottom: 4px; }
.rating-trade-row-v2 .rating-trade-pair { font-size: 11px; line-height: 1.35; }
.rating-trade-row-v2 .rating-trade-pnl { font-size: 15px; margin-top: 0; }
.feed-trade-card .trade-detail-body {
  padding: 0 16px 8px;
}
.feed-trade-card .live-trade-grid {
  margin-top: 4px;
}
.rating-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
}
.loader-ring.sm {
  width: 22px;
  height: 22px;
  border-width: 2px;
}
.rating-retry-btn { margin-top: 12px; width: 100%; }

.explore-news-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: .02em;
}
.explore-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.5);
  animation: explorePulse 2s ease infinite;
}
@keyframes explorePulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.explore-news-hero {
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(124,109,240,.2);
  background: linear-gradient(145deg, rgba(124,109,240,.14), rgba(18,18,26,.95)) !important;
  animation: exploreHeroIn .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes exploreHeroIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.explore-news-hero-btn {
  display: block;
  width: 100%;
  padding: 20px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.explore-news-hero-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #a78bfa;
  margin-bottom: 10px;
}
.explore-news-hero h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.explore-news-hero p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}
.explore-news-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}
.explore-news-card {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(18,18,26,.94);
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: exploreCardIn .42s cubic-bezier(.22,1,.36,1) both;
}
@keyframes exploreCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.explore-news-card:active {
  transform: scale(.985);
  border-color: rgba(124,109,240,.28);
  box-shadow: 0 6px 20px rgba(124,109,240,.12);
}
.explore-news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.explore-news-src {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7c6df0;
}
.explore-news-time {
  font-size: 10px;
  color: #6b7280;
}
.explore-news-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.explore-news-excerpt {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #9ca3af;
}
.explore-news-read {
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
}
.explore-news-empty {
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/* ── History tab ── */
.history-trades-wrap { padding: 0 18px; }
.history-trades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-trades-list .trade-row {
  border-radius: 16px;
  padding: 16px;
  transition: transform .18s ease;
}
.history-trades-list .trade-row:active { transform: scale(.985); }
.history-trade-card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(18,18,26,.94) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.history-trade-card.win { border-left: 3px solid #2dd4a8; }
.history-trade-card.lose { border-left: 3px solid #f07070; }

/* ── Settings tab ── */
.settings-shell {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-group { border-radius: 18px; overflow: hidden; }
.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(18,18,26,.92);
  cursor: pointer;
  text-align: left;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: rgba(124,109,240,.1); }
.settings-row-ico {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(124,109,240,.14);
  display: flex; align-items: center; justify-content: center;
}
.settings-row-ico svg {
  width: 20px; height: 20px;
  stroke: #9d93f5; fill: none; stroke-width: 1.9;
}
.settings-row-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.settings-row-body small { font-size: 11px; color: #8b8b98; font-weight: 600; }
.settings-row-body strong { font-size: 15px; font-weight: 700; color: #f4f4f5; }
.settings-chevron { font-size: 20px; color: #6b6b78; }
.settings-support-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease;
}
.settings-support-btn:active { transform: scale(.98); }
.settings-support-ico {
  width: 48px; height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, #45b8f0, #2a7ab8);
  display: flex; align-items: center; justify-content: center;
}
.settings-support-ico svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none; stroke-width: 1.9;
}
.settings-support-text strong { display: block; font-size: 15px; color: #f4f4f5; }
.settings-support-text small { font-size: 11px; color: #8b8b98; }
.news-ico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.news-ico svg {
  width: 18px; height: 18px;
  stroke: #9d93f5; fill: none; stroke-width: 1.9;
}
