:root {
  --primary: #5B4DFF;
  --primary-2: #6C5CFF;
  --bg: #F3F4F8;
  --card: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --danger: #FF4D6D;
  --purple: #6C5CFF;
  --success: #22C55E;
  --warning: #F59E0B;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --radius: 18px;
}

body.dark {
  --bg: #0B1220;
  --card: #0F1A30;
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --line: #22304B;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 88px;
}

.auth-container {
  padding: 22px 18px 30px;
}

.brand {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 26px;
}

.brand h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: .2px;
  color: var(--primary);
  font-weight: 800;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tab {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.tab button {
  width: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  box-shadow: none;
}

.tab button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  margin: 10px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

input::placeholder {
  color: #9CA3AF;
}

body.dark input::placeholder {
  color: #94A3B8;
}

button {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}

button:hover {
  transform: translateY(-1px);
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
}

#authMessage {
  margin-top: 10px;
  text-align: center;
  color: var(--danger);
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 58px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
  box-shadow: 0 10px 20px rgba(91, 77, 255, .18);
}

.topbar .left, .topbar .right {
  width: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .left {
  justify-content: flex-start;
}

.topbar .right {
  justify-content: flex-end;
}

.topbar .title {
  flex: 1;
  text-align: center;
  font-weight: 900;
  letter-spacing: .2px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
  position: relative;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FF3B30;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid var(--primary);
}

.profile-mini {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .7);
  cursor: pointer;
  background: #fff;
}

.page {
  padding: 14px 14px 0;
}

.balance-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}

.balance-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-top .meta {
  flex: 1;
}

.balance-top .meta .label {
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.balance-top .meta .amount {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .3px;
  color: var(--text);
}

.balance-top .meta .amount .taka {
  font-size: 22px;
  opacity: .9;
  margin-right: 4px;
}

.add-balance-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

body.dark .add-balance-btn {
  background: rgba(255, 255, 255, .06);
}

.add-balance-btn i {
  color: var(--primary);
  font-size: 22px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.q-item {
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.q-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .08);
}

.q-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.tile-withdraw { background: var(--danger); }
.tile-gateway { background: var(--purple); }
.tile-user-withdraw { background: var(--success); }
.tile-user-deposit { background: var(--warning); }

.stats-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.stat-card .label {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-card .val {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .2px;
}

.val-green { color: #22C55E; }
.val-red { color: #FF4D6D; }
.val-dark { color: var(--text); }

.section-head {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.section-head .view-all {
  font-weight: 900;
  color: rgba(91, 77, 255, .9);
  cursor: pointer;
}

.transactions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-item {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.tx-ava {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FFF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.tx-ava img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.tx-mid {
  flex: 1;
  min-width: 0;
}

.tx-mid .t1 {
  font-weight: 900;
  font-size: 15px;
  margin: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-mid .t2 {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-amt {
  font-weight: 900;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.amt-deposit { background: rgba(34, 197, 94, .12); color: #22C55E; }
.amt-withdraw { background: rgba(255, 77, 109, .12); color: #FF4D6D; }

.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(229, 231, 235, .7);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 12px;
}

body.dark .nav-bar {
  background: rgba(15, 26, 48, .85);
  border-top: 1px solid rgba(34, 48, 75, .8);
}

.nav-item {
  text-align: center;
  cursor: pointer;
  width: 25%;
  user-select: none;
}

.nav-item i {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.nav-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.nav-item.active i, .nav-item.active p {
  color: var(--primary);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  z-index: 80;
}

.drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 360px;
  height: 100%;
  background: var(--card);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  transform: translateX(-105%);
  transition: transform .25s ease;
  padding: 14px;
  overflow-y: auto;
}

.drawer-overlay.open {
  display: block;
}

.drawer-overlay.open .drawer {
  transform: translateX(0);
}

.drawer-top {
  background: var(--primary);
  border-radius: 18px;
  padding: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.drawer-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
}

.drawer-top .bal-label {
  font-weight: 800;
  opacity: .9;
  font-size: 13px;
  margin-bottom: 6px;
}

.drawer-top .bal-amount {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .2px;
}

.drawer-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dact {
  text-align: center;
  cursor: pointer;
}

.dact .ic {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.dact p {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  opacity: .92;
}

.drawer-section-title {
  margin: 14px 6px 8px;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: background .15s ease;
}

.drawer-item:hover {
  background: rgba(91, 77, 255, .08);
}

body.dark .drawer-item:hover {
  background: rgba(255, 255, 255, .06);
}

.drawer-item .di-ic {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 77, 255, .10);
  color: var(--primary);
}

body.dark .drawer-item .di-ic {
  background: rgba(255, 255, 255, .06);
  color: #B7B1FF;
}

.drawer-item .di-txt {
  flex: 1;
  font-weight: 900;
  color: var(--text);
}

.drawer-item .arrow {
  color: var(--muted);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 14px;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
  padding: 16px;
  position: relative;
  max-height: 80vh;
  overflow: auto;
  color: var(--text);
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .06);
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

body.dark .close {
  background: rgba(255, 255, 255, .06);
}

.modal.fullscreen {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.modal-content.fullscreen {
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

.sheet-header {
  height: 56px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.sheet-header .back {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
}

.sheet-header .h-title {
  font-weight: 900;
  flex: 1;
  text-align: center;
  margin-right: 38px;
}

.sheet-body {
  padding: 14px;
  height: calc(100% - 56px);
  overflow: auto;
}

.seg {
  display: flex;
  gap: 10px;
  margin: 8px 0 10px;
}

.seg button {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 900;
  box-shadow: none;
}

.seg button.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.vip-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.vip-top img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
}

.vip-top .name {
  font-weight: 900;
  font-size: 16px;
  margin: 0;
}

.vip-top .bal {
  margin: 4px 0 0;
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
}

.vip-scroll {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.vip-card {
  min-width: 280px;
  border-radius: 20px;
  padding: 14px;
  color: #111827;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

body.dark .vip-card {
  color: #0B1220;
}

.vip-card .watermark {
  position: absolute;
  inset: auto 14px 12px auto;
  font-weight: 900;
  font-size: 46px;
  opacity: .18;
  transform: rotate(-8deg);
}

.vip-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vip-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.vip-card .lvl {
  margin-top: 6px;
  font-weight: 900;
  opacity: .9;
}

.vip-card .desc {
  margin-top: 10px;
  font-weight: 800;
  opacity: .85;
  line-height: 1.35;
  font-size: 13px;
}

.vip-card .need {
  margin-top: 12px;
  display: inline-block;
  background: rgba(255, 255, 255, .55);
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
}

.vip-card .lock {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  font-size: 18px;
}

.vip-silver { background: linear-gradient(135deg, #E5E7EB, #FFFFFF); }
.vip-pink { background: linear-gradient(135deg, #FFB6C1, #FFD1DC); }
.vip-gold { background: linear-gradient(135deg, #FDE68A, #F59E0B); }

.progress-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prog {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  text-align: center;
}

.prog .pt {
  font-weight: 900;
  font-size: 18px;
  color: var(--primary);
}

.prog .lb {
  margin-top: 4px;
  font-weight: 900;
  font-size: 11px;
  color: var(--muted);
}

.wallet-hero {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(91, 77, 255, .25);
}

.wallet-hero .wtitle {
  margin: 0;
  font-weight: 900;
  opacity: .95;
}

.wallet-hero .wbal {
  margin: 8px 0 0;
  font-weight: 900;
  font-size: 26px;
}

.wallet-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wstat {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.wstat .lb {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.wstat .va {
  margin-top: 8px;
  font-weight: 900;
  font-size: 20px;
}

.wallet-actions {
  margin-top: 12px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.wa .ic {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.wa p {
  margin: 0;
  font-weight: 900;
  font-size: 11px;
  color: var(--muted);
}

.hist-head {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  flex: 1;
  min-width: 90px;
  text-align: center;
}

.pill.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.hist-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(229, 231, 235, .55);
}

body.dark .hist-card {
  border: 1px solid rgba(34, 48, 75, .9);
}

.hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hist-row .tag {
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
}

.tag-dep { background: #F59E0B; }
.tag-wdr { background: #EF4444; }

.st {
  font-weight: 900;
  font-size: 12px;
}

.st-success { color: #22C55E; }
.st-pending { color: #F59E0B; }
.st-cancel { color: #EF4444; }

.hist-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 12px;
}

.hist-kv div {
  color: var(--muted);
  font-weight: 800;
}

.hist-kv b {
  color: var(--text);
  font-weight: 900;
}

.txdetail-type {
  margin: 10px 0 14px;
  text-align: center;
  font-weight: 900;
  color: var(--primary);
}

.kv-table {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-row .k {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  width: 45%;
}

.kv-row .v {
  text-align: right;
  font-weight: 900;
  font-size: 12px;
  width: 55%;
  color: var(--text);
  word-break: break-word;
}

.action-bar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-soft {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
  font-weight: 900;
}

.btn-success { background: #22C55E; }
.btn-danger { background: #EF4444; }

.list-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.list-item:last-child {
  border-bottom: none;
}

.li-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.li-ic {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 77, 255, .10);
  color: var(--primary);
}

body.dark .li-ic {
  background: rgba(255, 255, 255, .06);
  color: #B7B1FF;
}

.li-title {
  font-weight: 900;
  font-size: 14px;
  margin: 0;
}

.li-sub {
  margin: 3px 0 0;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.li-right {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.toggle {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(107, 114, 128, .25);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: left .18s ease;
}

.toggle.on {
  background: rgba(91, 77, 255, .55);
}

.toggle.on::after {
  left: 22px;
}

.muted {
  color: var(--muted);
  font-weight: 800;
}

.mt8 {
  margin-top: 8px;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(1200px 600px at 50% -120px, rgba(91, 77, 255, .55), transparent 60%),
              linear-gradient(180deg, rgba(11, 18, 32, .92), rgba(11, 18, 32, .92));
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

body.dark .welcome-overlay {
  background: radial-gradient(1200px 600px at 50% -120px, rgba(91, 77, 255, .55), transparent 60%),
              linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .78));
}

.welcome-card {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  padding: 22px 18px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-logo {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .25);
  animation: popIn .5s ease both;
}

.welcome-logo i {
  font-size: 30px;
  color: #fff;
}

.welcome-title {
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 6px;
  animation: fadeUp .55s ease both;
  animation-delay: .05s;
}

.welcome-sub {
  margin: 0;
  opacity: .9;
  font-weight: 800;
  animation: fadeUp .55s ease both;
  animation-delay: .12s;
}

.welcome-loader {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, .10);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  animation: popIn .55s ease both;
  animation-delay: .18s;
}

.welcome-loader::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .55), rgba(255, 255, 255, .0));
  animation: spin 1.2s linear infinite;
}

.welcome-loader::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .92);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes popIn {
  from { transform: translateY(10px) scale(.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  padding: 14px;
}

.success-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
  padding: 18px 16px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.success-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .06);
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

body.dark .success-close {
  background: rgba(255, 255, 255, .06);
}

.check-wrap {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  margin: 10px auto 12px;
  background: rgba(34, 197, 94, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: popIn .45s ease both;
}

.check-ring {
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  border: 2px solid rgba(34, 197, 94, .18);
  animation: ringPulse 1.1s ease-out infinite;
}

@keyframes ringPulse {
  0% { transform: scale(.85); opacity: 0; }
  40% { opacity: .85; }
  100% { transform: scale(1.05); opacity: 0; }
}

.check-icon {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(34, 197, 94, .28);
  transform: scale(.9);
  animation: checkPop .45s ease both;
  animation-delay: .05s;
}

@keyframes checkPop {
  from { transform: scale(.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.check-icon i {
  color: #fff;
  font-size: 34px;
}

.success-text {
  font-weight: 900;
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  animation: fadeUp .45s ease both;
  animation-delay: .1s;
}

.success-subtext {
  margin: 8px 0 0;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.kyc-upload {
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px dashed rgba(91, 77, 255, .35);
  background: rgba(91, 77, 255, .04);
}

body.dark .kyc-upload {
  background: rgba(255, 255, 255, .04);
  border: 1px dashed rgba(183, 177, 255, .35);
}

.kyc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(91, 77, 255, .08);
  border-bottom: 1px dashed rgba(91, 77, 255, .25);
  font-weight: 900;
  color: var(--text);
}

body.dark .kyc-head {
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}

.kyc-head i {
  color: var(--primary);
}

.kyc-box {
  padding: 12px;
}

.kyc-instruction {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
}

.kyc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.kyc-drop {
  border: 2px dashed rgba(91, 77, 255, .25);
  border-radius: 18px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.dark .kyc-drop {
  background: rgba(15, 26, 48, .6);
  border: 2px dashed rgba(183, 177, 255, .25);
}

.kyc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.kyc-ic {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(91, 77, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex: 0 0 auto;
}

.kyc-ic i {
  font-size: 20px;
}

.kyc-txt {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.kyc-txt .t1 {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.kyc-txt .t2 {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.kyc-btn {
  width: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.support-floating {
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
}

.support-floating .q-tile {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.support-floating img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.support-floating p {
  display: none !important;
}

#addBalanceSelectModal .tx-item {
  padding: 16px;
  border-radius: 20px;
  font-size: 18px;
}

#addBalanceSelectModal .tx-ava img {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

#addBalanceSelectModal .tx-mid .t1 {
  font-size: 20px;
}

#addBalanceSelectModal .tx-mid .t2 {
  font-size: 14px;
}

#addBalanceSelectModal .tx-amt {
  font-size: 16px;
  padding: 8px 14px;
}