:root {
  --orange: #5b21b6;
  --orange-dark: #4c1d95;
  --ink: #171717;
  --muted: #747474;
  --line: #ececec;
  --soft: #f5f3ff;
  --soft-blue: #edf7ff;
  --soft-green: #ecfff3;
  --soft-red: #fff0f0;
  --nav: #111111;
  --card: #ffffff;
  --shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  --radius: 18px;
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #f6f6f6;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 56%, #fff4ec 100%);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.screen {
  padding: 18px 16px 92px;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 76px 0 auto;
  height: 260px;
  background: radial-gradient(circle at 86% 16%, rgba(255, 122, 0, 0.12), transparent 40%),
    radial-gradient(circle at 12% 40%, rgba(66, 133, 244, 0.08), transparent 45%);
  pointer-events: none;
}

.screen > * {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #ff7a00, #ffbd72);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
}

.avatar.large {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 28px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

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

h1 {
  margin-bottom: 2px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
}

.home-hero {
  padding: 4px 0 18px;
  background: #ffffff;
}

.home-hello {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.home-balance {
  padding: 22px 0 18px;
}

.home-balance-label {
  color: #9aa3b2;
  font-size: 19px;
  font-weight: 850;
}

.home-balance-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.coin-stack {
  width: 64px;
  height: 52px;
  position: relative;
}

.coin-stack::before,
.coin-stack::after {
  content: "";
  position: absolute;
  border: 3px solid #111111;
  border-radius: 50% / 24%;
  background: repeating-linear-gradient(180deg, transparent 0 10px, #111111 10px 13px, transparent 13px 17px);
}

.coin-stack::before {
  left: 0;
  bottom: 0;
  width: 31px;
  height: 38px;
}

.coin-stack::after {
  right: 5px;
  bottom: 8px;
  width: 33px;
  height: 48px;
}

.home-balance-amount {
  font-size: 48px;
  font-weight: 950;
  letter-spacing: 0;
}

.bill-outline {
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-stat {
  min-height: 112px;
  border: 0;
  border-radius: 20px;
  background: #effff5;
  box-shadow: none;
}

.home-stat h3 {
  color: #697386;
  font-size: 18px;
  margin-bottom: 22px;
}

.home-stat strong {
  font-size: 34px;
  font-weight: 950;
}

.home-stat .orange-mini {
  color: var(--orange);
  font-size: 28px;
  margin-right: 8px;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
}

.home-action {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.home-action-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  box-shadow: 0 14px 26px rgba(91, 33, 182, 0.24);
  font-size: 0;
  font-weight: 900;
}

.home-action-icon img {
  width: 27px;
  height: 27px;
  display: block;
}

.home-action-icon.buy-icon::before,
.home-action-icon.sell-icon::before,
.home-action-icon.upi-icon::before {
  content: none;
}


h2 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 12px;
}

h3 {
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 8px;
}

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

.icon-row {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.4);
  background: var(--soft);
  outline: none;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.i-bell::before {
  content: "";
  position: absolute;
  inset: 2px 5px 5px;
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 10px 10px 7px 7px;
}

.i-bell::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 1px;
  width: 5px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: currentColor;
}

.i-edit::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 4px;
  left: 3px;
  top: 9px;
  background: currentColor;
  border-radius: 3px;
  transform: rotate(-42deg);
}

.i-edit::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-42deg);
}

.i-plus::before,
.i-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 3px;
}

.i-plus::before {
  width: 16px;
  height: 3px;
  left: 2px;
  top: 8px;
}

.i-plus::after {
  width: 3px;
  height: 16px;
  left: 8px;
  top: 2px;
}

.i-trash::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.i-trash::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 4px -2px 0 -1px currentColor;
}

.wallet-card {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #ff7a00 0%, #f04900 100%);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 34px rgba(255, 122, 0, 0.26);
  margin-bottom: 18px;
  animation: rise 420ms ease both;
}

.wallet-card .label {
  opacity: 0.82;
  font-size: 13px;
}

.balance {
  margin: 6px 0 16px;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.wallet-stat {
  min-width: 0;
}

.wallet-stat strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.wallet-stat span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.78;
}

.btn {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  color: #ffffff;
  background: var(--orange);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: var(--orange-dark);
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.22);
  outline: none;
}

.btn.block {
  width: 100%;
}

.btn.light {
  background: #ffffff;
  color: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn.ghost {
  background: #f7f7f7;
  color: var(--ink);
  box-shadow: none;
}

.btn.danger {
  background: #f04438;
}

.btn.success-btn {
  background: #12b76a;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-tile {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.action-tile:hover,
.action-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.36);
  outline: none;
}

.tile-symbol {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8a16, #ff4e00);
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.1), 0 12px 20px rgba(255, 122, 0, 0.22);
  position: relative;
  animation: iconPulse 2200ms ease-in-out infinite;
}

.tile-symbol::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(91, 33, 182, 0.24);
  border-left-color: transparent;
  animation: orbit 2400ms linear infinite;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.045);
  animation: rise 360ms ease both;
}

.metric-card {
  min-height: 112px;
  border: 0;
  background: linear-gradient(145deg, #ffffff 0%, #fff8f1 100%);
  box-shadow: 0 15px 28px rgba(255, 122, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -24px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.11);
}

.metric-card .value {
  display: block;
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 850;
  position: relative;
  z-index: 1;
}

.metric-card .trend {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #087a3f;
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 750;
}

.corporate-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1b1b1b, #363636);
  color: #ffffff;
  border: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status-pill.success {
  color: #087a3f;
  background: var(--soft-green);
}

.status-pill.completed {
  color: #087a3f;
  background: var(--soft-green);
}

.status-pill.pending {
  color: #a55a00;
  background: #fff4df;
}

.status-pill.processing {
  color: #a55a00;
  background: #fff4df;
}

.status-pill.rejected {
  color: #b42318;
  background: var(--soft-red);
}

.proof-list {
  display: grid;
  gap: 10px;
}

.proof-item,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.history-row {
  align-items: flex-start;
}

.history-page {
  background: #f2f5f9;
}

.history-screen {
  background: linear-gradient(160deg, #f6faff 0%, #fff7f1 100%);
}

.history-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(46, 55, 80, 0.07);
}

.history-tabs .tab {
  min-width: 0;
  padding-inline: 5px;
  font-size: 10px;
}

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

.history-record {
  min-width: 0;
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(49, 60, 88, 0.08);
}

.history-record-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-record-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.history-record-head span,
.history-detail-grid span,
.history-summary-record > div > span {
  color: #8a91a0;
  font-size: 9px;
  font-weight: 800;
}

.history-record-head strong {
  overflow: hidden;
  color: #242a39;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.history-detail-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 11px;
  background: #f8fafc;
}

.history-detail-grid strong {
  overflow-wrap: anywhere;
  color: #333948;
  font-size: 11px;
}

.history-detail-grid .history-detail-wide {
  grid-column: 1 / -1;
}

.history-positive,
.history-record-amount {
  color: #14965e !important;
}

.history-record time {
  color: #9298a5;
  font-size: 9px;
}

.history-summary-record {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.history-record-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.history-record-icon.profit {
  color: #159366;
  background: #e9fbf3;
}

.history-record-icon.bonus {
  color: #e66a16;
  background: #fff0e4;
}

.history-record-icon svg {
  width: 21px;
  height: 21px;
}

.history-summary-record > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.history-summary-record > div strong {
  overflow: hidden;
  color: #2b3040;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-record-amount {
  font-size: 14px;
  white-space: nowrap;
}

body.home-service-open {
  overflow: hidden;
}

.floating-support svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}

.home-service-modal {
  width: min(100%, 480px);
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 90;
  display: grid;
  align-items: end;
  transform: translateX(-50%);
}

.home-service-modal.hidden {
  display: none;
}

.home-service-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(3px);
  animation: matchFadeIn 180ms ease both;
}

.home-service-sheet {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.28);
  animation: modalUp 220ms ease both;
}

.home-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-service-head h2 {
  margin: 2px 0 0;
  font-size: 19px;
}

.home-service-option {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid #eceef2;
  border-radius: 14px;
  color: #293041;
  background: #ffffff;
  font: inherit;
  text-align: left;
}

.home-service-option > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #FF7A00;
  background: #ffedd5;
}

.home-service-option > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-service-option strong {
  font-size: 13px;
}

.home-service-option small {
  color: #7b8290;
  font-size: 10px;
}

.home-service-option svg {
  width: 19px;
  height: 19px;
}

.utr-request-card {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(55, 71, 109, 0.08);
}

.utr-request-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
}

.utr-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.utr-request-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.utr-request-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.utr-request-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.utr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.proof-item {
  animation: slideIn 300ms ease both;
}

.amount {
  font-weight: 850;
  color: var(--orange);
  white-space: nowrap;
}

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

.bottom-nav {
  width: min(100%, 480px);
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 9px 10px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 26px rgba(17, 17, 17, 0.13);
}

.nav-link {
  min-height: 54px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 11px;
  font-weight: 750;
}

.nav-link.active {
  color: var(--orange);
  background: rgba(255, 122, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.16);
}

.nav-dot {
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 7px;
  display: block;
  position: relative;
  transition: transform 180ms ease, color 180ms ease;
}

.nav-dot.buy {
  border-radius: 50%;
}

.nav-link.active .nav-dot {
  color: var(--orange);
  transform: translateY(-1px);
  animation: navBounce 1600ms ease-in-out infinite;
}

.nav-link:nth-child(1) .nav-dot {
  border-radius: 4px 4px 7px 7px;
  border-top: 0;
}

.nav-link:nth-child(1) .nav-dot::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -8px;
  width: 13px;
  height: 13px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-link:nth-child(2) .nav-dot::before {
  content: "Rs ";
  position: absolute;
  inset: -2px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.nav-dot.team {
  border-radius: 50%;
  box-shadow: 8px 4px 0 -4px currentColor, -8px 4px 0 -4px currentColor;
}

.nav-dot.profile {
  border-radius: 50% 50% 45% 45%;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #4e4e4e;
  font-size: 13px;
  font-weight: 750;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 15px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.textarea {
  min-height: 104px;
  padding-top: 14px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 122, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.pin-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.pin-row .input {
  min-height: 54px;
  padding: 0;
  text-align: center;
  font-weight: 850;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fafafa;
  margin-bottom: 14px;
}

.tab {
  min-height: 39px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tab.active {
  background: var(--orange);
  color: #ffffff;
}

.order-card {
  display: grid;
  gap: 12px;
  border: 0;
  box-shadow: 0 12px 28px rgba(55, 71, 109, 0.1);
}

.order-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.amount-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 18px;
}

.currency-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8b1a, #ff4c00);
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.26);
}

.buy-pill {
  min-height: 33px;
  padding: 0 16px;
  border-radius: 999px;
}

.purchase-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 122, 0, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.purchase-segment button,
.chip-row button {
  border: 0;
  font-weight: 850;
}

.purchase-segment button {
  min-height: 38px;
  border-radius: 9px;
  color: var(--orange);
  background: transparent;
}

.purchase-segment .active {
  color: #ffffff;
  background: linear-gradient(135deg, #FF7A00, #2563EB);
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.18);
}

.chip-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.purchase-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.purchase-tools .chip-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.purchase-upi-panel {
  margin: 0 0 14px;
}

.purchase-upi-panel > .section-head {
  align-items: center;
  margin-bottom: 10px;
}

.purchase-upi-panel .section-head h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.purchase-add-upi {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  font-size: 11px;
}

.purchase-add-upi svg,
#purchaseSheetAddAccount svg {
  width: 16px;
  height: 16px;
}

.purchase-account-list,
.purchase-account-sheet-list {
  display: grid;
  gap: 10px;
}

.purchase-account-loading {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: #7b8190;
  font-size: 12px;
}

.purchase-no-account {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 20px 16px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #fff8f2);
  text-align: center;
  box-shadow: 0 9px 24px rgba(68, 77, 102, 0.07);
}

.purchase-no-account-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #FF7A00;
  background: #ffedd5;
}

.purchase-no-account-icon svg {
  width: 22px;
  height: 22px;
}

.purchase-no-account strong {
  color: #242a39;
  font-size: 15px;
}

.purchase-no-account p {
  margin: -3px 0 2px;
  color: #858b99;
  font-size: 11px;
}

.purchase-no-account .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
}

.purchase-account-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e9ebf0;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(58, 68, 94, 0.07);
}

.purchase-account-option.selected {
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.11);
}

.purchase-account-option > img {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 11px;
  object-fit: contain;
  background: #f5f6f8;
}

.purchase-account-option > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.purchase-account-option strong,
.purchase-account-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-account-option strong {
  color: #252b3b;
  font-size: 14px;
}

.purchase-account-option span {
  color: #6f7685;
  font-size: 11px;
}

.purchase-account-option small {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

.purchase-account-option small.online {
  color: #16a34a;
}

.purchase-account-option small.offline {
  color: #94a3b8;
}

.purchase-account-option > .btn {
  min-height: 34px;
  min-width: 66px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 10px;
}

.purchase-account-sheet {
  width: min(100%, 480px);
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 95;
  display: grid;
  align-items: end;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
  transform: translateX(-50%);
  animation: matchFadeIn 180ms ease both;
}

.purchase-account-sheet.hidden {
  display: none;
}

.purchase-account-sheet-panel {
  max-height: min(76dvh, 650px);
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #f7f8fb;
  box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.26);
  animation: modalUp 220ms ease both;
}

.purchase-account-sheet-panel > .section-head {
  margin: 0;
}

#purchaseSheetAddAccount {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
}

.purchase-account-continue {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #ffffff;
  font-weight: 800;
}

.purchase-account-continue:disabled {
  background: #fed7aa;
  color: #fff7ed;
  cursor: not-allowed;
  opacity: 1;
}

.payment-source-account {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #ffddc2;
  border-radius: 13px;
  background: #fff8f2;
}

.payment-source-account > img {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 9px;
  object-fit: contain;
  background: #ffffff;
}

.payment-source-account > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.payment-source-account span {
  color: #a85a22;
  font-size: 8px;
  font-weight: 900;
}

.payment-source-account strong,
.payment-source-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-source-account strong {
  color: #2a2f3d;
  font-size: 13px;
}

.payment-source-account small {
  color: #777d89;
  font-size: 10px;
}

.refresh-orders {
  min-height: 52px;
  min-width: 148px;
  border-radius: 16px;
  font-size: 15px;
}

.chip-row button {
  min-height: 31px;
  padding: 0 14px;
  border-radius: 999px;
  color: #6c7280;
  background: #eceff5;
  font-size: 12px;
}

.chip-row .active {
  color: #ffffff;
  background: var(--orange);
}

.order-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-title strong {
  font-size: 19px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-stat {
  padding: 11px;
  border-radius: 14px;
  background: #fafafa;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.mini-stat strong {
  font-size: 14px;
}

.profile-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 16px;
}

/* Premium mobile profile */
.profile-page {
  background: #f2f4ff;
}

.profile-shell {
  background: linear-gradient(155deg, #edfaff 0%, #f1efff 45%, #fff0f6 100%);
}

.profile-shell .bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-screen {
  min-height: 100vh;
  padding: 0 18px 110px;
}

.profile-safe-banner {
  min-height: 38px;
  margin: 0 -18px 16px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #ef6513;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}

.profile-safe-banner svg {
  width: 15px;
  height: 15px;
}

.profile-safe-banner strong {
  justify-self: center;
  color: #f05f42;
}

.profile-user-card {
  width: 100%;
  min-height: 104px;
  padding: 16px 18px;
  border: 0;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  color: #27273b;
  text-align: left;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(70, 68, 105, 0.1);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #5f6edb, #ff9b61);
  box-shadow: 0 5px 14px rgba(70, 68, 105, 0.22);
  font-size: 22px;
  font-weight: 850;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.profile-avatar .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

body.avatar-modal-open { overflow: hidden; }
.avatar-modal { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.64); }
.avatar-modal.hidden { display: none; }
.avatar-modal-sheet { width: min(100%,480px); max-height: min(92vh,760px); overflow-y: auto; border-radius: 8px; background: #f7f8fc; box-shadow: 0 24px 60px rgba(15,23,42,.28); }
.avatar-modal-sheet > header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 12px 14px; background: rgba(255,255,255,.96); border-bottom: 1px solid #e5e7eb; }
.avatar-modal-sheet header h2 { margin: 0; text-align: center; font-size: 21px; }
.avatar-modal-sheet header button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; color: #1f2937; }
.avatar-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px; }
.avatar-choice { position: relative; aspect-ratio: 1; min-width: 0; overflow: hidden; padding: 0; border: 3px solid transparent; border-radius: 12px; background: #e5e7eb; cursor: pointer; }
.avatar-choice img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-choice.selected { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.16); }
.avatar-check { position: absolute; right: 5px; bottom: 5px; display: none; place-items: center; width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; background: #2563eb; color: #fff; }
.avatar-check svg { width: 15px; height: 15px; stroke-width: 3; }
.avatar-choice.selected .avatar-check { display: grid; }
@media (max-width: 420px) {
  .avatar-modal { padding: 0; background: #f7f8fc; }
  .avatar-modal-sheet { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .avatar-grid { gap: 9px; padding: 12px; }
  .avatar-choice { border-radius: 10px; }
}

.profile-identity {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.profile-copy-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-copy-line strong {
  font-size: 17px;
}

.profile-id-line {
  color: #6f7180;
  font-size: 12px;
}

.profile-copy-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: #747887;
  background: transparent;
}

.profile-copy-btn svg,
.profile-chevron {
  width: 15px;
  height: 15px;
}

.profile-chevron {
  color: #858795;
}

.profile-edit-button {
  width: 34px;
  height: 42px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: #858795;
  background: transparent;
}

.profile-balance-card {
  margin: 18px 8px 0;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #FF7A00, #2563EB);
  box-shadow: 0 14px 28px rgba(241, 92, 18, 0.24);
}

.profile-balance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.profile-balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
}

.profile-balance-label svg {
  width: 19px;
  height: 19px;
}

.profile-detail-btn {
  padding: 7px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 800;
}

.profile-balance-amount {
  display: block;
  margin: 10px 0 16px;
  font-size: 30px;
  line-height: 1;
}

.profile-earnings-strip {
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.profile-bonus-card {
  margin-top: 20px;
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(70, 68, 105, 0.08);
}

.profile-bonus-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #de8a00;
  background: #fff3bd;
}

.profile-bonus-icon svg {
  width: 20px;
}

.profile-bonus-copy {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #727482;
}

.profile-bonus-copy strong {
  color: #27273b;
  font-size: 17px;
}

.profile-claim-btn {
  min-width: 72px;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  box-shadow: 0 6px 14px rgba(242, 99, 22, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.profile-quick-grid {
  margin: 18px 4px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-quick-item,
.profile-function {
  min-width: 0;
  padding: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #343547;
  background: transparent;
  font-size: 11px;
  text-align: center;
}

.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
}

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

.quick-orange { color: #ee721d; background: #fff3e6; }
.quick-green { color: #14a76c; background: #eafff2; }
.quick-amber { color: #d98b21; background: #fff6e7; }
.quick-red { color: #e24852; background: #fff0ef; }

.profile-functions-card {
  padding: 20px 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(70, 68, 105, 0.1);
}

.profile-functions-card h2 {
  margin-bottom: 18px;
  font-size: 16px;
}

.profile-functions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 8px;
}

.profile-function {
  min-height: 48px;
  align-content: start;
  line-height: 1.2;
}

.profile-function:disabled {
  cursor: default;
  opacity: 1;
}

.profile-function svg {
  width: 21px;
  height: 21px;
}

.icon-yellow { color: #e6a500; }
.icon-pink { color: #db3f84; }
.icon-blue { color: #2788c8; }
.icon-orange { color: #e77726; }

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-modal.hidden {
  display: none;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 22, 37, 0.48);
  animation: profileFade 180ms ease-out both;
}

.profile-modal-sheet {
  width: min(100%, 480px);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 20px 18px 28px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -18px 48px rgba(23, 22, 37, 0.18);
  animation: profileSheet 220ms ease-out both;
}

.profile-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.profile-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f4f7;
}

.profile-modal-close svg {
  width: 20px;
}

.profile-service-panel {
  display: grid;
  gap: 12px;
}

.profile-service-panel.hidden {
  display: none;
}

.profile-service-option {
  width: 100%;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #ececf3;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  color: #292a3b;
  text-align: left;
  background: #ffffff;
}

.profile-service-option > svg {
  width: 17px;
  color: #8a8c99;
}

.profile-service-option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-service-option strong {
  font-size: 14px;
}

.profile-service-option small {
  color: #777987;
  font-size: 11px;
  line-height: 1.35;
}

.profile-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #268bd2;
  background: #eaf7ff;
}

.profile-service-icon.support {
  color: #ec681f;
  background: #fff1e8;
}

.profile-service-icon svg {
  width: 21px;
  height: 21px;
}

.profile-code-input {
  text-transform: uppercase;
  font-weight: 800;
}

.profile-pin-input {
  text-align: center;
  font-size: 21px;
  font-weight: 850;
}

.profile-activity-list {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
}

.profile-activity-item {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #ececf3;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  background: #ffffff;
}

.profile-activity-item > span:last-child {
  display: grid;
  gap: 5px;
}

.profile-activity-item strong {
  font-size: 13px;
}

.profile-activity-item small {
  color: #777987;
  font-size: 11px;
}

.profile-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #149765;
  background: #eafaf2;
}

.profile-language-options {
  display: grid;
  gap: 12px;
}

.profile-language-option {
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #ececf3;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #292a3b;
  background: #ffffff;
  text-align: left;
}

.profile-language-option span {
  display: grid;
  gap: 4px;
}

.profile-language-option small {
  color: #777987;
}

.profile-language-option > svg {
  width: 21px;
  color: transparent;
}

.profile-language-option.selected {
  border-color: #ff7a00;
  background: #fff8f1;
}

.profile-language-option.selected > svg {
  color: #ff7a00;
}

.gift-code-card {
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  background: #ffffff;
}

.gift-code-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gift-code-card p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #747474;
  font-size: 12px;
}

.gift-code-card p strong {
  color: #252525;
  text-align: right;
}

.profile-modal-open {
  overflow: hidden;
}

@keyframes profileFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes profileSheet {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.action-item.action-item-disabled {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: default;
  opacity: 1;
}

.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 48%, #eff6ff 100%);
}

.admin-gate-card {
  width: min(100%, 420px);
  padding: 28px 22px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  text-align: center;
}

.admin-gate-card h1 {
  margin: 8px 0;
  font-size: 25px;
}

.admin-gate-card > p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
}

.admin-lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff7ed;
  color: #FF7A00;
}

.admin-lock-icon svg {
  width: 28px;
  height: 28px;
}

.admin-unlock-form {
  margin-top: 22px;
  text-align: left;
}

.admin-unlock-form .btn,
.admin-lock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-lock-button {
  width: auto;
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
}

.admin-lock-button svg,
.admin-unlock-form .btn svg {
  width: 17px;
  height: 17px;
}

.page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 1500;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 18px 100px;
  background: #f8fafc;
  opacity: 1;
  transition: opacity 180ms ease;
}

.page-skeleton.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.skeleton-line,
.skeleton-card,
.skeleton-grid span,
.history-skeleton span {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #e5e7eb 20%, #f8fafc 38%, #e5e7eb 56%);
  background-size: 220% 100%;
  animation: skeletonShimmer 1.1s linear infinite;
}

.skeleton-line {
  width: 45%;
  height: 22px;
  margin-bottom: 18px;
}

.skeleton-line.wide {
  width: 68%;
}

.skeleton-card {
  height: 150px;
  margin-bottom: 16px;
}

.skeleton-card.short {
  height: 96px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.skeleton-grid span {
  height: 86px;
}

.history-skeleton {
  display: grid;
  gap: 12px;
}

.history-skeleton span {
  height: 138px;
}

.history-load-more {
  display: block;
  width: min(100%, 240px);
  margin: 16px auto 4px;
}

@keyframes skeletonShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-card,
  .skeleton-grid span,
  .history-skeleton span {
    animation: none;
  }
}

/* Integrated admin workspace */
.admin-app { min-height: 100vh; background: #f4f6fa; color: #182230; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 238px; padding: 22px 14px; background: #fff; border-right: 1px solid #e5e7eb; overflow-y: auto; }
.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
.admin-sidebar-brand span, .admin-brand { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; font-size: 22px; font-weight: 900; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a, .admin-exit, #adminLock { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 6px; background: transparent; color: #475569; text-align: left; text-decoration: none; cursor: pointer; }
.admin-sidebar nav a.active { background: #fff1e8; color: #2563EB; font-weight: 800; }
#adminLock { margin-top: 18px; color: #b91c1c; }
.admin-exit { color: #64748b; }
.admin-main { min-height: 100vh; margin-left: 238px; padding: 24px; }
.admin-main > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-main header p { margin: 0; color: #FF7A00; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-main header h1 { margin: 3px 0 0; font-size: 28px; }
#adminMenu { display: none; border: 1px solid #e2e8f0; background: #fff; padding: 10px 14px; border-radius: 6px; }
.admin-panel { padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.admin-panel h2 { margin: 0 0 18px; font-size: 19px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.admin-metrics article { padding: 20px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; }
.admin-metrics span { display: block; color: #64748b; font-size: 12px; }
.admin-metrics strong { display: block; margin-top: 8px; font-size: clamp(20px, 2.3vw, 28px); overflow-wrap: anywhere; }
.admin-quick { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.admin-quick a { padding: 14px; border-radius: 6px; background: #f8fafc; color: #334155; text-decoration: none; font-weight: 700; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-section-head input { width: min(100%,300px); }
.admin-user-search { display: flex; align-items: center; gap: 8px; width: min(100%,430px); }
.admin-user-search input { flex: 1; width: auto; min-width: 0; }
.admin-user-search button { min-height: 42px; padding: 10px 20px; border: 0; border-radius: 6px; background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; font-weight: 700; cursor: pointer; }
.admin-search-result { margin: 0 0 12px; color: #64748b; font-size: 12px; font-weight: 700; }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(140px,.7fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 7px; }
.admin-row[hidden] { display: none !important; }
.admin-user-row.is-search-match { border-color: #FF7A00; box-shadow: 0 0 0 2px rgba(249,115,22,.14); }
.admin-row > div:first-child, .admin-row label { min-width: 0; display: grid; gap: 4px; }
.admin-order-row { grid-template-columns: minmax(0,1fr) auto; }
.admin-order-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 14px; }
.admin-order-details span { min-width: 0; padding: 7px 8px; border-radius: 5px; background: #f8fafc; overflow-wrap: anywhere; }
.admin-order-details b { color: #475569; }
.admin-payment-requests { margin-top: 18px; }
.admin-row span, .admin-row small { overflow-wrap: anywhere; color: #64748b; }
.admin-row label { color: #64748b; font-size: 11px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions button, .admin-form button, .admin-row > button { border: 0; border-radius: 6px; padding: 9px 12px; background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; cursor: pointer; font-weight: 700; }
.admin-actions button.danger, .admin-row > button.danger { background: #ef4444; }
.admin-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.admin-form.vertical { grid-template-columns: 1fr; max-width: 680px; }
.admin-form label { display: grid; gap: 6px; color: #475569; font-size: 12px; font-weight: 700; }
.admin-form input, .admin-form textarea, .admin-section-head input, .admin-row input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dbe1ea; border-radius: 6px; background: #fff; }
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.admin-check input { width: 18px; min-height: 18px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(145deg,#fff7ed,#fff,#eff6ff); }
.admin-login-card { width: min(100%,400px); padding: 28px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
.admin-login-card .admin-brand { margin-bottom: 16px; }
.admin-login-card p { color: #64748b; }
.admin-login-card label { display: grid; gap: 7px; margin: 20px 0 12px; font-size: 13px; font-weight: 700; }
.admin-login-card input { min-height: 46px; padding: 10px 12px; border: 1px solid #dbe1ea; border-radius: 6px; }
.admin-login-card button { width: 100%; min-height: 46px; border: 0; border-radius: 6px; background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; font-weight: 800; }
.admin-login-card a { display: block; margin-top: 15px; text-align: center; color: #64748b; }
.admin-toast { position: fixed; z-index: 5000; top: 18px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 6px; background: #16a34a; color: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.2); }
.admin-toast.error { background: #dc2626; }
.admin-loading { padding: 40px; color: #64748b; text-align: center; }
.admin-user-meta { display: grid; gap: 4px; }
.admin-user-meta .active { color: #16a34a; font-weight: 800; }
.admin-user-meta .blocked { color: #dc2626; font-weight: 800; }
.admin-user-modal { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.68); }
.admin-user-modal-card { width: min(100%,560px); max-height: 88vh; overflow-y: auto; padding: 22px; border-radius: 8px; background: #fff; }
.admin-user-modal-card .admin-section-head button { border: 0; border-radius: 6px; padding: 9px 12px; background: #f1f5f9; color: #334155; }
.admin-user-modal-card dl { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(0,1.3fr); gap: 0; margin: 0; border: 1px solid #e2e8f0; border-radius: 7px; overflow: hidden; }
.admin-user-modal-card dt, .admin-user-modal-card dd { min-width: 0; margin: 0; padding: 11px 12px; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.admin-user-modal-card dt { background: #f8fafc; color: #64748b; font-weight: 700; }
.admin-user-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.admin-user-settings label { display: grid; gap: 6px; color: #475569; font-size: 12px; font-weight: 700; }
.admin-user-settings input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #dbe1ea; border-radius: 6px; }
.admin-user-settings input[readonly] { background: #f8fafc; color: #64748b; }
.admin-user-static { grid-column: 1 / -1; display: grid; gap: 5px; padding: 12px; border-radius: 6px; background: #f8fafc; color: #64748b; font-size: 12px; }
.admin-user-settings > button { grid-column: 1 / -1; min-height: 44px; border: 0; border-radius: 6px; background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; font-weight: 800; }
.admin-search-empty { padding: 26px; color: #64748b; text-align: center; }
.managed-home-banner { display: block; margin-bottom: 18px; overflow: hidden; border-radius: 8px; background: #fff; }
.managed-home-banner img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.managed-tutorials { margin-top: 18px; }
.managed-tutorial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.managed-tutorial-grid a { display: grid; gap: 8px; padding: 10px; border-radius: 8px; background: #fff; color: #1e293b; text-decoration: none; }
.managed-tutorial-grid img { width: 100%; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; }
.managed-popup { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.66); }
.managed-popup-card { width: min(100%,380px); padding: 20px; border-radius: 8px; background: #fff; text-align: center; }
.managed-popup-card img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; }
.managed-popup-card p { color: #64748b; white-space: pre-wrap; }
.managed-popup-card button { min-width: 130px; padding: 11px 18px; border: 0; border-radius: 6px; background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; font-weight: 800; }

.YelePay-page-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 10px 16px 0;
  color: #1e293b;
  font-weight: 900;
  text-decoration: none;
}

.YelePay-page-mark img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.admin-gate-logo {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  object-fit: contain;
  border-radius: 10px;
}

.admin-sidebar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}

.minimum-deposit-text {
  margin: 10px 16px 0;
  color: #2563EB;
  font-size: 13px;
  font-weight: 900;
}
@media (max-width: 760px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(15,23,42,.15); }
  .admin-main { margin-left: 0; padding: 16px; }
  #adminMenu { display: block; }
  .admin-metrics, .admin-quick { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-order-details { grid-template-columns: 1fr; }
  .admin-section-head { align-items: stretch; flex-direction: column; }
  .admin-user-search { width: 100%; }
  .admin-user-search button { flex: 0 0 auto; }
  .managed-tutorial-grid { grid-template-columns: 1fr; }
  .admin-user-modal-card dl { grid-template-columns: 1fr; }
  .admin-user-modal-card dt { border-bottom: 0; }
  .admin-user-settings { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .profile-screen { padding-inline: 12px; }
  .profile-safe-banner { margin-inline: -12px; }
  .profile-user-card { grid-template-columns: 56px minmax(0, 1fr) 18px; padding-inline: 14px; }
  .profile-avatar { width: 56px; height: 56px; }
  .quick-icon { width: 46px; height: 46px; }
  .profile-functions-grid { gap-inline: 4px; }
  .profile-quick-item, .profile-function { font-size: 10px; }
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed rgba(255, 122, 0, 0.55);
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
}

.admin-switches {
  display: grid;
  gap: 10px;
}

.admin-hero {
  background: linear-gradient(135deg, #151515, #333333);
  color: #ffffff;
  border: 0;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.16);
}

.admin-stat {
  min-height: 118px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
}

.admin-stat .tile-symbol {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  font-size: 13px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dddddd;
  transition: background 180ms ease;
}

.slider::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 180ms ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.switch input:checked + .slider {
  background: var(--orange);
}

.switch input:checked + .slider::after {
  transform: translateX(20px);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 24px 16px 92px;
  background:
    linear-gradient(180deg, #fff5eb 0%, #ffffff 38%),
    #ffffff;
}

.mobile-auth {
  align-items: start;
  padding: 20px 16px 48px;
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #fb8b24 0%, #FF7A00 36%, #fff7ed 36%, #fffaf5 100%);
  position: relative;
  overflow: hidden;
}

.mobile-auth::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 250px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mobile-auth::after {
  display: none;
}

.mobile-auth > div {
  width: min(100%, 420px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mobile-auth .brand-logo {
  display: block;
  margin: 0 auto 4px;
  width: 110px;
  height: 110px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 8px 12px rgba(96, 39, 0, 0.18));
}

.mobile-auth h1,
.mobile-auth .auth-kicker {
  color: #ffffff;
  text-align: center;
}

.mobile-auth h1 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 700;
}

.auth-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.mobile-auth .auth-card {
  border: 0;
  border-radius: 24px;
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(126, 55, 0, 0.14);
}

.mobile-auth .input {
  min-height: 54px;
  border-color: #f1dfd0;
  border-radius: 16px;
  background: #fffaf6;
}

.mobile-auth .input:focus {
  border-color: #FF7A00;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.mobile-auth .btn {
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF9A3D, #2563EB);
  box-shadow: 0 14px 26px rgba(234, 88, 12, 0.26);
}

.mobile-auth .btn.ghost {
  background: #fff4e8;
  color: #2563EB;
  box-shadow: none;
}

.brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--orange);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(255, 122, 0, 0.28);
  margin-bottom: 16px;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(255, 122, 0, 0.28);
  margin-bottom: 16px;
}

.app-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(255, 122, 0, 0.18);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.auth-mode {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: #f5f5f5;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.auth-mode.active {
  background: var(--orange);
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(20px);
  width: min(calc(100% - 32px), 448px);
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 15px;
  color: #ffffff;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.24);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.toast.success {
  background: #12805c;
  box-shadow: 0 14px 30px rgba(18, 128, 92, 0.28);
}

.toast.error {
  background: #d92d20;
  box-shadow: 0 14px 30px rgba(217, 45, 32, 0.28);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.order-matching .screen,
body.order-matching .bottom-nav {
  filter: blur(4px);
  transform: scale(0.995);
  transition: filter 180ms ease, transform 180ms ease;
}

.match-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(2px);
  animation: matchFadeIn 180ms ease both;
}

.match-overlay.hidden {
  display: none;
}

.match-card {
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
  animation: matchZoomIn 260ms cubic-bezier(0.2, 0.85, 0.25, 1.2) both;
}

.match-card h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 22px;
}

.match-card p {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.match-overlay.matched .match-card p {
  color: #12a15f;
}

.match-loader {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6e8 0 42%, transparent 43%);
}

.match-loader::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 5px solid rgba(255, 172, 37, 0.24);
  border-top-color: var(--orange);
  border-right-color: #ffb020;
  animation: matchSpin 900ms linear infinite;
}

.match-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00, #2563EB);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.32);
}

.match-core::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin: 12px auto;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.92;
}

.match-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #ffb020;
  --angle: 0deg;
  transform: rotate(var(--angle)) translateX(39px);
  animation: matchDotSpin 1200ms linear infinite;
}

.match-dot.dot-one {
  --angle: 0deg;
}

.match-dot.dot-two {
  background: #ff7a00;
  animation-delay: -300ms;
  --angle: 90deg;
}

.match-dot.dot-three {
  animation-delay: -600ms;
  --angle: 180deg;
}

.match-dot.dot-four {
  background: #ffd166;
  animation-delay: -900ms;
  --angle: 270deg;
}

.match-details {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.match-details div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  border: 1px solid rgba(255, 122, 0, 0.16);
}

.match-details span {
  color: #9a5a12;
  font-size: 10px;
  font-weight: 900;
}

.match-details strong {
  color: var(--orange);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.42);
}

.modal-backdrop.hidden {
  display: none;
}

.payment-modal {
  width: min(100%, 448px);
  border-radius: 24px 24px 18px 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  padding: 18px;
  animation: modalUp 220ms ease both;
  position: relative;
  overflow: hidden;
}

.payment-modal::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.12);
  animation: payGlow 1700ms ease-in-out infinite;
}

.payment-modal > * {
  position: relative;
}

.barcode-wrap {
  display: grid;
  place-items: center;
  padding: 16px 0 10px;
}

.barcode {
  width: 224px;
  min-height: 224px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(17, 17, 17, 0.1);
}

.barcode canvas,
.barcode img {
  width: 208px;
  height: 208px;
  max-width: 100%;
}

.barcode::after {
  content: none;
}

.bar-line {
  min-width: 2px;
  background: #111111;
}

.bar-line.orange {
  background: var(--orange);
}

.bar-line.thin {
  width: 2px;
}

.bar-line.mid {
  width: 4px;
}

.bar-line.wide {
  width: 7px;
}

.upi-display {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff7ee, #ffffff);
  border: 1px dashed rgba(255, 122, 0, 0.5);
  margin: 12px 0;
}

.upi-display strong {
  font-size: 20px;
  color: var(--orange);
  overflow-wrap: anywhere;
}

.upi-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

#payWithApp {
  overflow: hidden;
  position: relative;
}

#payWithApp::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 52%;
  background: linear-gradient(90deg, transparent, rgba(91, 33, 182, 0.24), transparent);
  transform: skewX(-18deg);
  animation: shimmer 1700ms ease-in-out infinite;
}

.processing-box {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ee;
  margin-top: 12px;
  animation: processingIn 220ms ease both;
}

.processing-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 122, 0, 0.18);
  border-top-color: var(--orange);
  animation: spin 900ms linear infinite;
}

.processing-dots {
  display: flex;
  gap: 6px;
}

.processing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: dotJump 800ms ease-in-out infinite;
}

.processing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.processing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.upi-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.upi-app {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.04);
  transition: border-color 180ms ease, transform 180ms ease;
}

.upi-app img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.upi-app.active {
  border-color: var(--orange);
  background: var(--soft);
  transform: translateY(-1px);
}

.warning-strip {
  margin: -18px -16px 18px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #d8323a;
  background: #fff1f1;
  font-weight: 850;
  overflow: hidden;
}

.withdrawal-screen {
  background: linear-gradient(160deg, #edf7ff 0%, #f7f1ff 48%, #fff8f2 100%);
}

.withdraw-balance-card {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.16);
}

.withdraw-balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.withdraw-balance-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #3b82f6;
  font-weight: 900;
}

.withdraw-balance-row strong {
  color: #64748b;
  font-size: 16px;
}

.withdraw-balance-row strong span {
  color: var(--orange);
}

.withdraw-balance-card p {
  margin: 0;
  color: #ef4444;
  font-size: 13px;
  font-weight: 750;
}

.withdraw-add-tool {
  min-height: 54px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.tool-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  align-items: end;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  animation: matchFadeIn 180ms ease both;
}

.tool-sheet.hidden {
  display: none;
}

.tool-sheet-panel {
  max-height: min(78vh, 640px);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px 16px 28px;
  border-radius: 24px 24px 0 0;
  background: #f1f5f9;
  box-shadow: 0 -22px 60px rgba(15, 23, 42, 0.24);
  animation: modalUp 220ms ease both;
}

.tool-sheet-warning {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #d8323a;
  background: #fff1f1;
  font-size: 11px;
  font-weight: 800;
}

.tool-sheet-warning svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.tool-list {
  display: grid;
  gap: 14px;
}

.tool-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.withdrawal-tool-card {
  width: 100%;
  min-height: 96px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.withdrawal-tool-card:active {
  transform: scale(0.99);
}

.tool-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.tool-actions {
  display: flex;
  gap: 10px;
}

.tool-actions .mini-btn {
  min-height: 34px;
  min-width: 58px;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: #e9edf4;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
}

.tool-actions .mini-btn:not(.muted-chip) {
  color: #ffffff;
  background: var(--orange);
}

.muted-chip {
  background: #e2e8f0;
  color: #64748b;
}

.tool-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  background: #f6f7fb;
  padding: 8px;
}

.withdrawal-accounts-section {
  margin: 2px 0 16px;
}

.withdrawal-accounts-section .section-head {
  margin-bottom: 10px;
}

.withdrawal-accounts-section .section-head h2 {
  font-size: 17px;
}

.withdrawal-account-list {
  display: grid;
  gap: 12px;
}

.withdrawal-account-card {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(62, 74, 103, 0.11);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.withdrawal-account-card.selected {
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.13);
}

.withdraw-account-top,
.withdraw-account-warning {
  display: flex;
  align-items: center;
}

.withdraw-account-top {
  justify-content: space-between;
  gap: 12px;
}

.withdraw-account-top > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.withdraw-account-top strong {
  overflow: hidden;
  color: #23283a;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-account-top > div span {
  color: #7c8495;
  font-size: 12px;
}

.withdraw-account-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 8px;
  object-fit: contain;
  background: #f3f4f8;
}

.withdraw-account-warning {
  min-height: 36px;
  gap: 6px;
  padding-top: 11px;
  border-top: 1px solid #f0f1f4;
  color: #dd7a18;
  font-size: 9px;
  font-weight: 750;
}

.withdraw-account-warning > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.withdraw-account-warning span {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.withdraw-account-warning button {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  color: #354052;
  background: transparent;
}

.withdraw-account-warning button svg {
  width: 21px;
  height: 21px;
}

.withdraw-account-settings-sheet,
.delete-tool-modal {
  width: min(100%, 480px);
  position: fixed;
  inset: 0 auto 0 50%;
  display: grid;
  padding: 16px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
  transform: translateX(-50%);
  animation: matchFadeIn 180ms ease both;
}

.withdraw-account-settings-sheet {
  z-index: 98;
  align-items: end;
  padding: 0;
}

.withdraw-account-settings-sheet.hidden,
.delete-tool-modal.hidden {
  display: none;
}

.withdraw-account-settings-panel {
  display: grid;
  gap: 14px;
  padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.28);
  animation: modalUp 220ms ease both;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  justify-self: center;
  border-radius: 999px;
  background: #d9dce2;
}

.withdraw-account-settings-panel .section-head {
  margin: 0;
}

.remove-tool-action {
  min-height: 60px;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  color: #d9363e;
  background: #fff4f4;
  font: inherit;
  text-align: left;
}

.remove-tool-action > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffe4e5;
}

.remove-tool-action svg {
  width: 20px;
  height: 20px;
}

.remove-tool-action > strong {
  font-size: 14px;
}

.delete-tool-modal {
  z-index: 100;
  place-items: center;
}

.delete-tool-card {
  width: min(100%, 390px);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 30px 22px 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
  text-align: center;
  animation: matchZoomIn 220ms cubic-bezier(0.2, 0.85, 0.25, 1.12) both;
}

.delete-tool-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #f0444b;
  background: #fff0f1;
}

.delete-tool-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.3;
}

.delete-tool-card h2 {
  margin: 2px 0 0;
  color: #202738;
  font-size: 27px;
}

.delete-tool-card p {
  margin: 0;
  color: #737b8b;
  font-size: 14px;
  line-height: 1.65;
}

.delete-tool-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.delete-tool-actions .btn {
  min-height: 54px;
  border-radius: 13px;
  font-size: 16px;
}

.delete-tool-cancel {
  color: #596174;
  background: #eef1f6;
  box-shadow: none;
}

.delete-tool-confirm {
  color: #ffffff;
  background: #f0444b;
  box-shadow: 0 10px 24px rgba(240, 68, 75, 0.24);
}

body.withdraw-auth-open {
  overflow: hidden;
}

.withdraw-authorize-screen {
  width: min(100%, 480px);
  min-height: 100dvh;
  position: fixed;
  inset: 0 auto 0 50%;
  z-index: 96;
  overflow-y: auto;
  padding: 0 20px 34px;
  color: #1e293b;
  background: #ffffff;
  transform: translateX(-50%);
  animation: authScreenIn 220ms ease both;
}

.withdraw-authorize-screen.hidden {
  display: none;
}

.withdraw-authorize-header {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  text-align: center;
}

.withdraw-authorize-header .icon-btn {
  width: 40px;
  height: 40px;
}

.withdraw-authorize-header svg {
  width: 22px;
  height: 22px;
}

.authorize-warning {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 -20px 24px;
  padding: 11px 20px;
  color: #d8323a;
  background: #fff1f1;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.authorize-warning svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.authorize-warning span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.withdraw-authorize-screen .step-line {
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 16px;
  margin: 0 6px 38px;
  padding: 0;
  font-size: 13px;
}

.withdraw-authorize-screen .step-line > span:nth-child(2) {
  visibility: hidden;
}

.withdraw-authorize-screen .step-line::before {
  grid-column: 1 / 4;
  grid-row: 2;
  width: calc(100% - 14px);
  margin-inline: 7px;
}

.withdraw-authorize-screen .step-dot {
  z-index: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
}

.withdraw-authorize-screen .step-dot:first-of-type {
  grid-column: 1;
}

.withdraw-authorize-screen .step-dot:last-of-type {
  grid-column: 3;
}

.authorize-hero h1 {
  margin: 0 0 20px;
  color: #1e293b;
  font-size: 34px;
  line-height: 1.12;
}

.authorize-hero p {
  margin: 0 0 38px;
  font-size: 16px;
  line-height: 1.75;
}

.authorize-form {
  display: grid;
  gap: 24px;
}

.authorize-form .field {
  gap: 11px;
}

.authorize-form .field > span,
.auth-pin-field legend {
  color: #1e293b;
  font-size: 16px;
  font-weight: 850;
}

.authorize-form .input {
  min-height: 58px;
  border-color: #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
}

.auth-pin-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-pin-field legend {
  margin-bottom: 12px;
}

.authorize-form .auth-pin-row {
  gap: 9px;
}

.authorize-form .auth-pin-row .input {
  min-width: 0;
  min-height: 58px;
  border-color: #f1f5f9;
  background: #f8fafc;
}

.authorize-finish {
  min-height: 58px;
  margin-top: 22px;
  border-radius: 13px;
  font-size: 17px;
}

#accountAuthLoading {
  z-index: 102;
}

@keyframes authScreenIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 360px) {
  .purchase-add-upi {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .purchase-add-upi span {
    display: none;
  }
}

.withdraw-form-card {
  border: 0;
  margin-top: 4px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: #f1f5f9;
}

.method-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: #64748b;
  background: transparent;
  font-weight: 850;
}

.method-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #FF7A00, #2563EB);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.2);
}

.withdraw-process-overlay {
  position: fixed;
  inset: 0;
  z-index: 56;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  animation: matchFadeIn 180ms ease both;
}

.withdraw-process-overlay.hidden {
  display: none;
}

.withdraw-process-card {
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 20px;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  animation: matchZoomIn 240ms ease both;
}

.withdraw-process-card h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.withdraw-process-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.withdraw-loader {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 6px solid #ffedd5;
  border-top-color: var(--orange);
  animation: spin 900ms linear infinite;
}

.withdraw-loader span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7A00, #facc15);
}

.step-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 18px 22px 36px;
  color: #8a93a2;
}

.step-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ccd3df;
}

.step-dot.active {
  background: var(--orange);
}

.step-line::before {
  content: "";
  height: 2px;
  grid-column: 2;
  grid-row: 1;
  background: #edf0f4;
}

.auth-pin-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.auth-pin-row .input {
  min-height: 64px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 850;
  background: #fafbfe;
}

.auth-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 18px;
}

.success-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #18b26b, #0b8f52);
  font-size: 38px;
  box-shadow: 0 15px 30px rgba(24, 178, 107, 0.22);
}

.limit-popup {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}

.limit-popup.hidden {
  display: none;
}

.limit-box {
  width: min(100%, 420px);
  border-radius: 22px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.empty {
  padding: 22px;
  border-radius: 18px;
  background: #fafafa;
  color: var(--muted);
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes navBounce {
  0%, 100% {
    transform: translateY(-1px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.08);
  }
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qrScan {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(176px);
  }
}

@keyframes qrPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 18px 30px rgba(17, 17, 17, 0.1), 0 0 0 0 rgba(91, 33, 182, 0.24);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 22px 36px rgba(17, 17, 17, 0.14), 0 0 0 10px rgba(255, 122, 0, 0.08);
  }
}

@keyframes matchFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes matchZoomIn {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes matchSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes matchDotSpin {
  to {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(39px);
  }
}

@keyframes payGlow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    left: -70%;
  }
  65%, 100% {
    left: 120%;
  }
}

@keyframes processingIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dotJump {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Shared outline navigation */
body[data-page] .bottom-nav {
  width: min(100%, 480px);
  height: 76px;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
  padding: 7px 5px 8px;
  border: 0;
  border-top: 1px solid #ececec;
  border-radius: 16px 16px 0 0;
  color: #414141;
  background: #ffffff;
  box-shadow: 0 -8px 24px rgba(30, 32, 48, 0.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page] .bottom-nav .nav-link {
  min-width: 0;
  min-height: 60px;
  position: relative;
  flex: 1 1 0;
  width: 20%;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  border-radius: 0;
  color: #444444;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

body[data-page] .bottom-nav .nav-link svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.1;
}

body[data-page] .bottom-nav .nav-link.active {
  color: #FF7A00;
  background: transparent;
  box-shadow: none;
}

body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"],
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"],
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"],
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"],
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"] {
  color: #FF7A00;
}

body[data-page] .bottom-nav .nav-link.active::before {
  content: "";
  width: 48px;
  height: 3px;
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"]::before,
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"]::before,
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"]::before,
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"]::before,
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"]::before {
  content: "";
  width: 48px;
  height: 3px;
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

/* Secure role-based admin controls */
.admin-sidebar-brand > div { min-width: 0; display: grid; gap: 2px; }
.admin-sidebar-brand small { color: #64748b; font-size: 11px; text-transform: capitalize; }
.admin-login-note { margin: 14px 0 0; font-size: 12px; line-height: 1.55; }
.admin-panel + .admin-panel { margin-top: 18px; }
.admin-panel select,
.admin-form select,
.admin-team-row select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #dbe1ea; border-radius: 6px; background: #fff; color: #182230; }
.admin-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-feature-toggles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 7px; background: #f8fafc; }
.admin-settings-reason { grid-column: 1 / -1; }
.admin-settings-grid > button { grid-column: 1 / -1; min-height: 46px; }
.admin-role-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #5b21b6; font-size: 11px; font-weight: 800; }
.admin-log-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(200px, .75fr); gap: 18px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 7px; background: #fff; }
.admin-log-row > div { min-width: 0; display: grid; gap: 4px; }
.admin-log-row span { color: #64748b; font-size: 12px; overflow-wrap: anywhere; }
.admin-team-row { grid-template-columns: minmax(200px, 1fr) minmax(140px, .45fr) auto; }
.admin-user-reason { grid-column: 1 / -1; }
.admin-form :disabled,
.admin-user-settings :disabled { cursor: not-allowed; opacity: .66; }

@media (max-width: 900px) {
  .admin-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-feature-toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .admin-settings-grid,
  .admin-feature-toggles,
  .admin-log-row,
  .admin-team-row { grid-template-columns: 1fr; }
}

body[data-page="dashboard"] .stat-grid {
  grid-template-columns: 1fr;
}

body[data-page="dashboard"] .metric-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.home-download-card {
  margin: 14px 16px 98px;
  padding: 16px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #FF9A3D, #FF7A00 55%, #2563EB);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.26);
}

.home-download-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.home-download-icon svg {
  width: 21px;
  height: 21px;
}

.home-download-card h2 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.2;
}

.home-download-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1.35;
}

.home-download-card button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #e85b0b;
  background: #ffffff;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 360px) {
  body[data-page] .bottom-nav { padding-inline: 3px; }
  body[data-page] .bottom-nav .nav-link { font-size: 10px; }
  body[data-page] .bottom-nav .nav-link svg { width: 24px; height: 24px; }
  .home-download-card { grid-template-columns: 40px minmax(0, 1fr); }
  .home-download-card button { grid-column: 1 / -1; width: 100%; }
}

/* My Team */
.team-page {
  background: #fff7ed;
}

.team-shell {
  background: linear-gradient(160deg, #fff7ed 0%, #fff1e6 48%, #fffaf5 100%);
}

.team-screen {
  min-height: 100vh;
  padding: 18px 16px 110px;
}

.team-page-header {
  min-height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.team-page-header h1 {
  margin: 0;
  font-size: 22px;
  text-align: center;
}

.team-earnings-card {
  padding: 20px 18px 16px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #FF9A3D 0%, #FF7A00 55%, #2563EB 100%);
  box-shadow: 0 15px 32px rgba(234, 88, 12, 0.24);
  text-align: center;
}

.team-earnings-card > p {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.team-earnings-card > strong {
  display: block;
  margin-bottom: 18px;
  font-size: 32px;
  line-height: 1;
}

.team-earnings-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 13px;
}

.team-earnings-links > * {
  min-width: 0;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1.35;
}

.team-earnings-links > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.team-stats-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-stat-card {
  min-height: 112px;
  padding: 13px;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 22px rgba(124, 65, 21, 0.07);
}

.team-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
}

.team-stat-icon svg {
  width: 18px;
  height: 18px;
}

.team-stat-icon.blue { color: #3e78d8; background: #e9f2ff; }
.team-stat-icon.green { color: #159366; background: #e9fbf3; }
.team-stat-icon.violet { color: #2563EB; background: #ffedd5; }
.team-stat-icon.amber { color: #d58a18; background: #fff5dc; }
.team-stat-icon.cyan { color: #1089a4; background: #e7f9fc; }
.team-stat-icon.coral { color: #df654d; background: #fff0eb; }

.team-stat-card p {
  margin: 0;
  color: #717487;
  font-size: 10px;
  line-height: 1.35;
}

.team-stat-card strong {
  align-self: start;
  font-size: 18px;
}

.team-goal-card,
.team-invite-card,
.team-rewards-section {
  margin-top: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 11px 26px rgba(124, 65, 21, 0.08);
}

.team-goal-card {
  padding: 16px;
  border: 1px solid #ffe2cc;
}

.team-goal-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.team-goal-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ee641d;
  background: #fff0e5;
}

.team-goal-icon svg {
  width: 22px;
  height: 22px;
}

.team-goal-head p {
  margin: 0 0 4px;
  color: #ee641d;
  font-size: 11px;
  font-weight: 800;
}

.team-goal-head strong {
  font-size: 13px;
  line-height: 1.35;
}

.team-goal-progress {
  height: 7px;
  margin: 15px 0 11px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f2f6;
}

.team-goal-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a2b, #e75d5d);
  transition: width 280ms ease;
}

.team-goal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777a89;
  font-size: 11px;
}

.team-goal-meta strong {
  color: #2b2d3f;
}

.team-invite-card {
  padding: 17px 15px;
}

.team-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.team-section-heading > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #2563EB;
  background: #ffedd5;
}

.team-section-heading svg {
  width: 20px;
  height: 20px;
}

.team-section-heading p {
  margin: 0 0 2px;
  color: #838594;
  font-size: 10px;
}

.team-section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.team-referral-label {
  display: block;
  margin: 12px 2px 7px;
  color: #777a89;
  font-size: 11px;
  font-weight: 750;
}

.team-copy-row {
  min-height: 52px;
  padding: 7px 8px 7px 13px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: #fffaf5;
}

.team-copy-row > strong {
  color: #2563EB;
  font-size: 16px;
}

.team-copy-row > span {
  min-width: 0;
  overflow: hidden;
  color: #565969;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-copy-row button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  font-size: 10px;
  font-weight: 800;
}

.team-copy-row button svg {
  width: 14px;
  height: 14px;
}

.team-share-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-share-button {
  min-width: 0;
  min-height: 65px;
  padding: 8px 3px;
  border: 0;
  border-radius: 13px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 750;
}

.team-share-button svg {
  width: 20px;
  height: 20px;
}

.team-share-button.whatsapp { color: #15835b; background: #e9faf2; }
.team-share-button.facebook { color: #3767ba; background: #eaf1ff; }
.team-share-button.telegram { color: #1583ae; background: #e9f8ff; }
.team-share-button.qr { color: #87553a; background: #fff2e9; }

.team-rewards-section {
  padding: 17px 15px;
}

.team-rewards-section > h2 {
  margin-bottom: 13px;
  font-size: 17px;
}

.team-reward-card {
  padding: 14px;
  border: 1px solid #ececf2;
  border-radius: 15px;
  display: grid;
  gap: 13px;
}

.team-reward-card + .team-reward-card {
  margin-top: 10px;
}

.team-reward-card > div:first-child {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.team-reward-currency {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
}

.team-reward-card.inr .team-reward-currency { color: #df671d; background: #fff0e4; }
.team-reward-card.usdt .team-reward-currency { color: #188a73; background: #e8f9f4; }

.team-reward-card strong {
  display: block;
  font-size: 13px;
}

.team-reward-card small {
  display: block;
  margin-top: 3px;
  color: #7e8190;
  font-size: 10px;
}

.team-reward-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-reward-rates span {
  padding: 7px 9px;
  border-radius: 9px;
  color: #646776;
  background: #f5f6fa;
  font-size: 10px;
}

.team-reward-rates b {
  color: #2b2d3f;
}

.team-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-qr-modal.hidden {
  display: none;
}

.team-qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 27, 48, 0.48);
}

.team-qr-sheet {
  width: min(100%, 480px);
  position: relative;
  padding: 19px 18px 28px;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 -16px 40px rgba(31, 34, 66, 0.2);
  animation: profileSheet 220ms ease-out both;
}

.team-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.team-qr-head h2 {
  margin: 0;
  font-size: 19px;
}

.team-qr-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f4f8;
}

.team-qr-head svg {
  width: 19px;
}

.team-qr-code {
  width: 236px;
  min-height: 236px;
  margin: 0 auto 12px;
  padding: 8px;
  border: 1px solid #ececf2;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.team-qr-code img,
.team-qr-code canvas {
  max-width: 100%;
  height: auto !important;
}

.team-qr-sheet > p {
  margin: 0;
  color: #737687;
  font-size: 12px;
}

.team-qr-open {
  overflow: hidden;
}

@media (max-width: 360px) {
  .team-screen { padding-inline: 12px; }
  .team-earnings-links > * { padding-inline: 3px; font-size: 9px; }
  .team-stat-card { padding: 11px; grid-template-columns: 34px minmax(0, 1fr); }
  .team-stat-icon { width: 34px; height: 34px; }
  .team-copy-row button span { display: none; }
  .team-copy-row button { width: 38px; padding: 0; justify-content: center; }
}

@media (min-width: 481px) {
  body {
    background: #f2f2f2;
  }

  .app-shell {
    min-height: 100vh;
  }
}

@media (max-width: 360px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bottom-nav {
    padding-left: 6px;
    padding-right: 6px;
  }

  .bottom-nav .nav-link {
    min-width: 0;
    font-size: 10px;
    white-space: nowrap;
  }

  .grid.four {
    gap: 8px;
  }

  .action-tile {
    min-height: 78px;
    font-size: 11px;
  }

  .balance {
    font-size: 30px;
  }

  .home-balance-amount {
    font-size: 38px;
  }

  .home-action-icon {
    width: 64px;
    height: 64px;
  }

  .purchase-tools {
    grid-template-columns: 1fr;
  }

  .refresh-orders {
    width: 100%;
  }
}
.buy-limit-debug[hidden] { display: none !important; }

/* Premium auth screens */
body[data-page="login"],
body[data-page="register"] {
  background: #f4f6fb;
}

body[data-page="login"] .app-shell,
body[data-page="register"] .app-shell {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.48), transparent 28%),
    radial-gradient(circle at 94% 2%, rgba(37, 99, 235, 0.26), transparent 34%),
    linear-gradient(155deg, #ff8a16 0%, #ff6a00 38%, #2563eb 100%);
  overflow: hidden;
}

body[data-page="login"] .auth-wrap,
body[data-page="register"] .auth-wrap {
  min-height: 100vh;
  align-items: center;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  background: transparent;
}

body[data-page="login"] .mobile-auth::before,
body[data-page="register"] .mobile-auth::before {
  height: auto;
  inset: -120px -120px auto auto;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

body[data-page="login"] .mobile-auth::after,
body[data-page="register"] .mobile-auth::after {
  content: "";
  display: block;
  position: absolute;
  left: -90px;
  bottom: -90px;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.auth-panel {
  width: min(100%, 420px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: grid;
  justify-items: center;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
}

.mobile-auth .auth-brand .brand-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 4px;
  object-fit: contain;
  padding: 8px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 62%, transparent 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 26px rgba(126, 55, 0, 0.12);
  filter: drop-shadow(0 7px 11px rgba(88, 38, 0, 0.12));
  mix-blend-mode: normal;
}

.mobile-auth .auth-brand h1 {
  margin: 0 0 5px;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.05;
}

.mobile-auth .auth-brand .auth-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signup-bonus-badge {
  margin: 10px 0 0;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(126, 55, 0, 0.14);
  font-size: 12px;
  font-weight: 900;
}

/* Premium registration experience */
body[data-page="register"] {
  min-height: 100%;
  background: #07111f;
}

body[data-page="register"] .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  background: transparent;
}

body[data-page="register"] .premium-register {
  position: relative;
  min-height: 100dvh;
  padding: 22px 16px 34px;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(circle at 88% 4%, rgba(37, 99, 235, 0.33), transparent 34%),
    radial-gradient(circle at 3% 34%, rgba(245, 158, 11, 0.22), transparent 31%),
    linear-gradient(155deg, #07111f 0%, #0c1b31 48%, #10284b 100%);
}

body[data-page="register"] .premium-register::before,
body[data-page="register"] .premium-register::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

body[data-page="register"] .premium-register::before {
  top: -165px;
  right: -145px;
  width: 360px;
  height: 360px;
  box-shadow: 0 0 90px rgba(37, 99, 235, 0.14);
}

body[data-page="register"] .premium-register::after {
  top: 184px;
  left: -130px;
  width: 250px;
  height: 250px;
  box-shadow: 0 0 80px rgba(245, 158, 11, 0.1);
}

body[data-page="register"] .auth-panel {
  width: min(100%, 460px);
}

.premium-register-header {
  position: relative;
  z-index: 1;
  padding: 0 4px 18px;
}

.premium-brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}

.premium-logo-shell {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.premium-logo-shell img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.premium-brand-copy {
  display: grid;
  line-height: 1.15;
}

.premium-brand-copy strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.premium-brand-copy small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premium-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.premium-secure-pill b {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #07111f;
  background: #fbbf24;
  font-size: 10px;
}

.premium-eyebrow {
  margin: 0 0 9px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.premium-register-subtitle {
  max-width: 370px;
  margin: 6px 0 17px;
  color: #a9b8cc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.premium-bonus-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.15), rgba(37, 99, 235, 0.11));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-bonus-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #172033;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
  font-size: 20px;
}

.premium-bonus-card > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.premium-bonus-card small {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-bonus-card strong {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.premium-bonus-status {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.13);
  font-size: 10px;
  font-weight: 800;
}

body[data-page="register"] .premium-register-card {
  position: relative;
  z-index: 1;
  padding: 20px 17px 17px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(250, 252, 255, 0.97);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3), inset 0 1px 0 #fff;
}

.premium-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  padding: 0 2px;
}

.premium-card-heading > span {
  display: grid;
  gap: 3px;
}

.premium-card-heading small {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.premium-card-heading strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.premium-card-heading > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #0f1e36;
  box-shadow: 0 8px 18px rgba(15, 30, 54, 0.22);
  font-size: 11px;
}

body[data-page="register"] .premium-register-card .form {
  gap: 12px;
}

body[data-page="register"] .auth-field {
  gap: 6px;
}

body[data-page="register"] .auth-field > span:first-child {
  padding-left: 2px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}

body[data-page="register"] .auth-input-wrap {
  border-radius: 16px;
}

body[data-page="register"] .auth-input-wrap .input {
  min-height: 54px;
  padding: 0 48px 0 46px;
  border: 1px solid #dce3ed;
  border-radius: 16px;
  color: #0f172a;
  background: #f7f9fc;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  font-size: 14px;
  font-weight: 750;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body[data-page="register"] .auth-input-wrap .input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

body[data-page="register"] .auth-input-wrap .input:focus {
  border-color: #f59e0b;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 8px 22px rgba(15, 23, 42, 0.07);
}

body[data-page="register"] .auth-input-icon {
  left: 15px;
  color: #f59e0b;
}

body[data-page="register"] .password-toggle {
  right: 13px;
  color: #64748b;
}

body[data-page="register"] .premium-submit {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 5px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(115deg, #0f1e36 0%, #1d4ed8 58%, #f59e0b 130%);
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

body[data-page="register"] .premium-submit b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 17px;
  transition: transform 160ms ease;
}

body[data-page="register"] .premium-submit:hover b {
  transform: translateX(2px);
}

.premium-auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 13px 0 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
}

.premium-auth-note span {
  color: #15803d;
  font-weight: 900;
}

body[data-page="register"] .auth-link-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8edf4;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body[data-page="register"] .auth-link-row .ghost {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #dbe3ef;
  border-radius: 13px;
  color: #1d4ed8;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

body.account-creating {
  overflow: hidden;
}

.account-creation-loader[hidden] {
  display: none;
}

.account-creation-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: visible;
  opacity: 0;
  background: transparent;
  transition: opacity 220ms ease;
}

.account-creation-loader.is-visible {
  opacity: 1;
}

.account-loader-card {
  width: min(100%, 286px);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: #f8fafc;
  text-align: center;
  background: linear-gradient(155deg, rgba(15, 30, 54, 0.97), rgba(12, 27, 49, 0.95));
  box-shadow: 0 18px 48px rgba(4, 20, 45, 0.34), 0 0 0 1px rgba(24, 79, 145, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(10px) scale(0.96);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.account-creation-loader.is-visible .account-loader-card {
  transform: translateY(0) scale(1);
}

.account-loader-orbit {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 11px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 50%;
  animation: accountOrbitSpin 3.6s linear infinite;
}

.account-loader-orbit::before,
.account-loader-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.account-loader-orbit::before {
  inset: 5px;
  border: 1px dashed rgba(251, 191, 36, 0.42);
}

.account-loader-orbit::after {
  inset: 10px;
  border: 2px solid transparent;
  border-top-color: #60a5fa;
  border-right-color: #fbbf24;
}

.account-loader-logo {
  position: absolute;
  z-index: 2;
  inset: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.32);
  animation: accountLogoHold 3.6s linear infinite;
}

.account-loader-logo img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.account-loader-orbit > i {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.8);
}

.account-loader-orbit > i:nth-of-type(1) { top: -3px; left: 28px; }
.account-loader-orbit > i:nth-of-type(2) { right: 2px; bottom: 10px; background: #60a5fa; box-shadow: 0 0 18px rgba(96, 165, 250, 0.8); }
.account-loader-orbit > i:nth-of-type(3) { bottom: 6px; left: 5px; width: 5px; height: 5px; }

.account-loader-card > p {
  margin: 0 0 5px;
  color: #fbbf24;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-loader-card h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.account-loader-copy {
  display: block;
  max-width: 270px;
  margin: 6px auto 12px;
  color: #a9b8cc;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.55;
}

.account-loader-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.account-loader-progress i {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #fb923c, #60a5fa);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.42);
  animation: accountProgress 1.35s ease-in-out infinite;
}

.account-loader-steps {
  display: none;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #8fa2bb;
  font-size: 8px;
  font-weight: 800;
}

.account-loader-steps span {
  animation: accountStep 1.8s ease-in-out infinite;
}

.account-loader-steps span:nth-child(2) { animation-delay: 0.3s; }
.account-loader-steps span:nth-child(3) { animation-delay: 0.6s; }

@keyframes accountOrbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes accountLogoHold {
  to { transform: rotate(-360deg); }
}

@keyframes accountProgress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(105%); }
  100% { transform: translateX(225%); }
}

@keyframes accountStep {
  0%, 100% { color: #71839a; }
  45% { color: #f8fafc; }
}

@media (min-width: 720px) {
  body[data-page="register"] .premium-register {
    padding-top: 38px;
    padding-bottom: 46px;
  }
}

@media (max-width: 370px) {
  body[data-page="register"] .premium-register {
    padding-inline: 11px;
  }

  .premium-brand-row {
    margin-bottom: 22px;
  }

  body[data-page="register"] .premium-register-card {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-loader-orbit,
  .account-loader-logo,
  .account-loader-progress i,
  .account-loader-steps span {
    animation-duration: 8s;
  }
}

.mobile-auth .auth-card {
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 60px rgba(31, 41, 55, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-auth .form {
  gap: 11px;
}

.auth-field {
  gap: 7px;
}

.auth-field > span:first-child {
  padding-left: 3px;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.auth-input-wrap {
  position: relative;
  display: block;
}

.mobile-auth .auth-input-wrap .input {
  min-height: 54px;
  padding: 0 48px 0 48px;
  border: 1px solid #e8edf6;
  border-radius: 18px;
  color: #172033;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mobile-auth .auth-input-wrap .input::placeholder {
  color: #9aa3b2;
}

.mobile-auth .auth-input-wrap .input:focus {
  border-color: rgba(255, 122, 0, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.13), 0 10px 22px rgba(37, 99, 235, 0.08);
}

.auth-input-icon,
.password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.auth-input-icon {
  left: 17px;
  width: 20px;
  height: 20px;
  color: #ff7a00;
}

.auth-input-icon::before,
.auth-input-icon::after,
[data-eye-icon]::before,
[data-eye-icon]::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.auth-input-icon[data-icon="phone"]::before {
  inset: 2px 5px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.auth-input-icon[data-icon="phone"]::after {
  left: 8px;
  bottom: 4px;
  width: 4px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.auth-input-icon[data-icon="lock"]::before,
.auth-input-icon[data-icon="shield"]::before {
  left: 4px;
  bottom: 3px;
  width: 13px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.auth-input-icon[data-icon="lock"]::after,
.auth-input-icon[data-icon="shield"]::after {
  left: 6px;
  top: 1px;
  width: 9px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.auth-input-icon[data-icon="user"]::before {
  left: 6px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.auth-input-icon[data-icon="user"]::after {
  left: 3px;
  bottom: 2px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
}

.auth-input-icon[data-icon="gift"]::before {
  left: 3px;
  top: 7px;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.auth-input-icon[data-icon="gift"]::after {
  left: 9px;
  top: 4px;
  width: 2px;
  height: 14px;
  background: currentColor;
  box-shadow: -6px 4px 0 -1px currentColor, 6px 4px 0 -1px currentColor;
}

.password-toggle {
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: transparent;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.94);
}

[data-eye-icon] {
  width: 20px;
  height: 20px;
  position: relative;
  display: block;
}

[data-eye-icon]::before {
  inset: 5px 2px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 48% 48%;
  transform: rotate(45deg);
}

[data-eye-icon]::after {
  left: 8px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.password-toggle.is-visible [data-eye-icon]::after {
  left: 3px;
  top: 9px;
  width: 15px;
  height: 2px;
  border-radius: 3px;
  transform: rotate(-35deg);
}

.auth-field-note {
  min-height: 14px;
  padding-left: 3px;
  color: #8a93a2;
  font-size: 11px;
  font-weight: 800;
}

.auth-field-note.is-success {
  color: #14965e;
}

.auth-field-note.is-error {
  color: #d92d20;
}

.mobile-auth .auth-submit {
  min-height: 55px;
  margin-top: 5px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff9a3d 0%, #ff7a00 46%, #2563eb 100%);
  box-shadow: 0 15px 28px rgba(249, 115, 22, 0.29);
  font-size: 15px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

.mobile-auth .auth-submit:hover,
.mobile-auth .auth-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.34);
}

.mobile-auth .auth-submit:active {
  transform: translateY(0) scale(0.98);
}

.auth-submit.is-loading {
  pointer-events: none;
}

.auth-submit.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.mobile-auth .btn.ghost {
  min-height: 42px;
  border-radius: 14px;
  color: #ff7a00;
  background: #fff3e8;
  box-shadow: none;
}

.auth-link-row {
  margin-top: 14px;
}

body[data-page="login"] .toast,
body[data-page="register"] .toast {
  top: 18px;
  bottom: auto;
  width: min(calc(100% - 32px), 388px);
  border-radius: 18px;
  background: rgba(23, 32, 51, 0.96);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-page="login"] .toast.success,
body[data-page="register"] .toast.success {
  background: linear-gradient(135deg, #12b76a, #087a3f);
}

body[data-page="login"] .toast.error,
body[data-page="register"] .toast.error {
  background: linear-gradient(135deg, #f04438, #b42318);
}

/* Modern floating bottom navigation */
body[data-page] .bottom-nav {
  width: calc(100% - 24px) !important;
  max-width: 456px !important;
  height: 74px !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 122, 0, 0.16) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 16px 38px rgba(25, 32, 55, 0.16), 0 4px 12px rgba(255, 122, 0, 0.12) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
}

body[data-page] .bottom-nav .nav-link {
  height: 58px !important;
  min-height: 58px !important;
  gap: 3px !important;
  border-radius: 18px !important;
  color: #6b7280 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

body[data-page] .bottom-nav .nav-link svg {
  width: 22px !important;
  height: 22px !important;
  padding: 7px !important;
  box-sizing: content-box !important;
  border-radius: 15px !important;
  color: #4b5563 !important;
  background: #f4f6fb !important;
  stroke-width: 2.25 !important;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
}

body[data-page] .bottom-nav .nav-link:hover {
  color: #f97316 !important;
  transform: translateY(-1px) !important;
}

body[data-page] .bottom-nav .nav-link.active,
body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"],
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"],
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"],
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"],
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"] {
  color: #ea580c !important;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.96), rgba(255, 247, 237, 0.76)) !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.16) !important;
}

body[data-page] .bottom-nav .nav-link.active svg,
body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"] svg,
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"] svg,
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"] svg,
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"] svg,
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"] svg {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff9a3d, #ff6a00) !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28) !important;
}

body[data-page] .bottom-nav .nav-link::before,
body[data-page] .bottom-nav .nav-link.active::before,
body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"]::before,
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"]::before,
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"]::before,
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"]::before,
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"]::before {
  display: none !important;
}

@media (max-width: 360px) {
  body[data-page] .bottom-nav {
    width: calc(100% - 16px) !important;
    height: 70px !important;
    padding: 7px 5px !important;
  }

  body[data-page] .bottom-nav .nav-link {
    height: 56px !important;
    min-height: 56px !important;
    font-size: 9px !important;
  }

  body[data-page] .bottom-nav .nav-link svg {
    width: 20px !important;
    height: 20px !important;
    padding: 6px !important;
  }

  body[data-page="login"] .auth-wrap,
  body[data-page="register"] .auth-wrap {
    padding-inline: 12px;
  }

  .mobile-auth .auth-brand .brand-logo {
    width: 98px;
    height: 98px;
  }

  .mobile-auth .auth-brand h1 {
    font-size: 27px;
  }

  .mobile-auth .auth-card {
    padding: 18px 14px 15px;
  }

  .mobile-auth .auth-input-wrap .input {
    min-height: 51px;
  }
}





/* YelePay branded navigation icons */
.yelepay-nav-icon {
  width: 24px; height: 24px; object-fit: contain; display: block;
  padding: 3px; border-radius: 8px; background: linear-gradient(135deg, #5b21b6, #7c3aed);
  box-sizing: border-box;
}

/* Final YelePay icon/brand polish */
:root{--yele-purple:#4c1d95;--yele-purple-2:#6d28d9;--yele-gold:#facc15;--yele-ink:#172033;}
.yelepay-brandbar{display:flex;align-items:center;gap:10px;padding:12px 18px 4px;background:#fff}
.yelepay-brandbar img{display:block}.yelepay-brandbar .yelepay-full-logo{width:185px;height:auto;max-height:62px;object-fit:contain;object-position:left center}
.yelepay-brandbar strong{font-size:20px;line-height:1;font-weight:950;color:var(--yele-purple)}
.yelepay-brandbar strong span{color:#eab308}
.yelepay-brandbar small{display:block;color:#64748b;font-size:9px;font-weight:800;margin-top:3px;letter-spacing:.3px}
.action-icon-circle{background:linear-gradient(135deg,var(--yele-purple),var(--yele-purple-2)) !important;box-shadow:0 8px 18px rgba(76,29,149,.22)!important}
.action-icon-circle img{width:29px!important;height:29px!important}
.yelepay-nav-icon{width:30px!important;height:30px!important;padding:5px!important;border-radius:10px!important;background:linear-gradient(135deg,var(--yele-purple),var(--yele-purple-2))!important;box-shadow:0 5px 12px rgba(76,29,149,.16)}
.nav-link.active .yelepay-nav-icon{outline:2px solid rgba(250,204,21,.75);outline-offset:1px}
.coin-logo.brand-logo{width:42px!important;height:42px!important;border-radius:12px;box-shadow:0 5px 14px rgba(76,29,149,.16)}

/* Registration layout inspired by the supplied mobile reference */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-page="register"] {
  background: #dce7f3;
}

body[data-page="register"] .app-shell {
  width: min(100%, 480px);
  max-width: 480px;
  margin: 0 auto;
  overflow: visible;
  background: #f8fbff;
  box-shadow: 0 0 44px rgba(15, 54, 102, 0.18);
}

body[data-page="register"] .premium-register {
  display: block;
  min-height: 100dvh;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  overflow: visible;
  color: #152135;
  background: #f8fbff;
}

body[data-page="register"] .premium-register::before,
body[data-page="register"] .premium-register::after {
  display: none;
}

body[data-page="register"] .auth-panel {
  width: 100%;
  max-width: none;
}

.register-showcase {
  position: relative;
  height: 350px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 36px 36px,
    radial-gradient(circle at 18% 12%, rgba(96, 165, 250, 0.78), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(76, 29, 149, 0.72), transparent 38%),
    linear-gradient(145deg, #0b68c7 0%, #0c4d9d 47%, #122b68 100%);
}

.register-showcase::before {
  content: "";
  position: absolute;
  inset: auto -70px -120px -70px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 -42px 100px rgba(31, 95, 180, 0.28);
}

.showcase-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(5, 36, 82, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.showcase-brand > img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
}

.showcase-brand > span {
  display: grid;
}

.showcase-brand strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.showcase-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: #133d76;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 13px 30px rgba(4, 34, 80, 0.24);
  font-size: 13px;
  font-weight: 900;
}

.showcase-language b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2f73bf, #153f79);
  font-size: 8px;
}

.showcase-scene {
  position: absolute;
  inset: 76px 0 0;
}

.showcase-card {
  position: absolute;
  display: grid;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.09));
  box-shadow: 0 25px 50px rgba(3, 28, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.showcase-card small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.showcase-card strong {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.showcase-card i {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffcf20;
  background: #351185;
  font-style: normal;
  font-weight: 900;
}

.showcase-wallet-card {
  top: 35px;
  left: 50%;
  width: 244px;
  height: 142px;
  padding: 25px 22px;
  border-radius: 28px;
  transform: translateX(-50%) rotate(-3deg);
}

.showcase-wallet-card i {
  right: 20px;
  bottom: 19px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 27px;
}

.showcase-bonus-card {
  right: 18px;
  bottom: 20px;
  width: 160px;
  height: 82px;
  padding: 16px 14px;
  border-radius: 22px;
  transform: rotate(4deg);
}

.showcase-bonus-card strong {
  font-size: 18px;
}

.showcase-bonus-card i {
  right: 11px;
  top: 12px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  font-size: 15px;
}

.showcase-orb,
.showcase-coin {
  position: absolute;
  border-radius: 50%;
}

.showcase-orb-one {
  top: 36px;
  left: 14px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 36px rgba(96, 165, 250, 0.34);
}

.showcase-orb-two {
  right: -28px;
  top: 2px;
  width: 125px;
  height: 125px;
  border: 24px solid rgba(255, 255, 255, 0.055);
}

.showcase-coin {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #2d126f;
  background: linear-gradient(145deg, #fff39a, #f3b717);
  box-shadow: 0 12px 24px rgba(3, 28, 68, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.65);
  font-size: 18px;
  font-weight: 900;
}

.showcase-coin-one { left: 29px; bottom: 37px; transform: rotate(-12deg); }
.showcase-coin-two { right: 49px; top: 19px; width: 31px; height: 31px; font-size: 13px; transform: rotate(14deg); }

body[data-page="register"] .premium-register-card.register-sheet {
  position: relative;
  z-index: 8;
  margin-top: -34px;
  padding: 34px 25px 22px;
  border: 0;
  border-radius: 38px 38px 0 0;
  background: #fbfdff;
  box-shadow: 0 -14px 36px rgba(13, 48, 91, 0.12);
}

.register-sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
  padding: 0 5px;
}

body[data-page="register"] .register-sheet-heading h1 {
  margin: 0;
  color: #101722;
  text-align: left;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.register-sheet-heading p {
  margin: 8px 0 0;
  color: #8a94a4;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.register-sheet-badge {
  display: grid;
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid #f0d775;
  border-radius: 15px;
  color: #253653;
  text-align: center;
  background: linear-gradient(145deg, #fffbe7, #fff4b8);
  box-shadow: 0 8px 18px rgba(207, 157, 15, 0.12);
}

.register-sheet-badge b {
  font-size: 12px;
  font-weight: 900;
}

.register-sheet-badge small {
  margin-top: 2px;
  color: #8a6a05;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="register"] .premium-register-card .form {
  gap: 15px;
}

body[data-page="register"] .auth-input-wrap {
  position: relative;
  display: block;
  border-radius: 23px;
}

body[data-page="register"] .auth-input-wrap .input {
  width: 100%;
  min-height: 68px;
  padding: 0 50px 0 76px;
  border: 1px solid #cedaea;
  border-radius: 23px;
  color: #101722;
  background: linear-gradient(145deg, #f5f8fc, #edf3fa);
  box-shadow: inset 0 1px 0 #fff, 0 7px 15px rgba(39, 76, 122, 0.08);
  font-size: 15px;
  font-weight: 750;
}

body[data-page="register"] .auth-input-wrap .input::placeholder {
  color: #9aa4b2;
  font-weight: 500;
}

body[data-page="register"] .auth-input-wrap .input:focus {
  border-color: #2970bd;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 104, 180, 0.12), 0 10px 22px rgba(39, 76, 122, 0.1);
}

body[data-page="register"] .auth-input-icon {
  z-index: 3;
  left: 11px;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  color: #2867ae;
  background: linear-gradient(145deg, #fff, #e5edf8);
  box-shadow: 0 7px 14px rgba(38, 88, 145, 0.14);
}

body[data-page="register"] .auth-input-icon::before,
body[data-page="register"] .auth-input-icon::after {
  transform-origin: center;
  transform: translate(13px, 13px);
}

.phone-prefix {
  position: absolute;
  z-index: 3;
  left: 72px;
  top: 50%;
  padding-right: 10px;
  border-right: 1px solid #c5d1e0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  transform: translateY(-50%);
}

body[data-page="register"] .auth-input-wrap .phone-input {
  padding-left: 116px;
}

body[data-page="register"] .password-toggle {
  right: 13px;
  color: #3977bb;
}

body[data-page="register"] .auth-field-note {
  min-height: 0;
  margin: -7px 0 -6px;
  padding-left: 8px;
  font-size: 10px;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 5px;
  color: #26364f;
  font-size: 12px;
}

.terms-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.terms-check > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #8ba5c2;
  border-radius: 8px;
  color: transparent;
  background: #edf3fa;
  font-size: 15px;
  font-weight: 900;
  transition: 160ms ease;
}

.terms-check input:checked + span {
  border-color: #175aa6;
  color: #fff;
  background: linear-gradient(145deg, #2d73bd, #0d4389);
  box-shadow: 0 6px 14px rgba(23, 90, 166, 0.24);
}

.terms-check input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.terms-check b {
  font-weight: 700;
}

.terms-check a {
  color: #14549a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body[data-page="register"] .premium-submit {
  min-height: 65px;
  margin-top: 2px;
  border: 1px solid #3f7abe;
  border-radius: 22px;
  background: linear-gradient(180deg, #2368b4 0%, #0f4b97 46%, #092f6d 100%);
  box-shadow: 0 16px 28px rgba(11, 61, 125, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.24);
  font-size: 17px;
  letter-spacing: 0.01em;
}

body[data-page="register"] .premium-submit b {
  display: none;
}

body[data-page="register"] .premium-submit:hover,
body[data-page="register"] .premium-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(11, 61, 125, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

body[data-page="register"] .auth-link-row {
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2eaf3;
  color: #7b8798;
  font-size: 11px;
}

body[data-page="register"] .auth-link-row .ghost {
  min-height: auto;
  padding: 6px 8px;
  border: 0;
  color: #14549a;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  box-shadow: none;
}

.register-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 7px 0 0;
  color: #9aa4b2;
  font-size: 9px;
  font-weight: 600;
}

.register-security-note span {
  color: #15803d;
  font-weight: 900;
}

@media (max-width: 370px) {
  .register-showcase { height: 328px; }
  .showcase-topbar { padding-inline: 12px; }
  .showcase-language { min-height: 44px; padding-inline: 13px; }
  .showcase-wallet-card { width: 224px; }
  body[data-page="register"] .premium-register-card.register-sheet { padding: 29px 14px 19px; border-radius: 32px 32px 0 0; }
  body[data-page="register"] .register-sheet-heading h1 { font-size: 27px; }
  .register-sheet-heading { padding-inline: 3px; }
  .register-sheet-badge { padding-inline: 8px; }
  body[data-page="register"] .auth-input-wrap .input { min-height: 62px; border-radius: 20px; }
  body[data-page="register"] .auth-input-icon { width: 43px; height: 43px; left: 10px; border-radius: 14px; }
  body[data-page="register"] .auth-input-icon::before,
  body[data-page="register"] .auth-input-icon::after { transform: translate(11px, 11px); }
  body[data-page="register"] .auth-input-wrap .input { padding-left: 67px; }
  .phone-prefix { left: 65px; }
  body[data-page="register"] .auth-input-wrap .phone-input { padding-left: 108px; }
}

/* Keep every registration field symbol centered inside its icon tile. */
body[data-page="register"] .auth-input-icon::before,
body[data-page="register"] .auth-input-icon::after {
  transform: none;
}

body[data-page="register"] .auth-input-icon[data-icon="user"]::before {
  left: 50%;
  top: 10px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="user"]::after {
  left: 50%;
  bottom: 9px;
  width: 18px;
  height: 11px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="phone"]::before {
  inset: auto;
  left: 50%;
  top: 9px;
  width: 15px;
  height: 28px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="phone"]::after {
  left: 50%;
  bottom: 12px;
  width: 5px;
  height: 2px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="lock"]::before,
body[data-page="register"] .auth-input-icon[data-icon="shield"]::before {
  left: 50%;
  bottom: 9px;
  width: 16px;
  height: 13px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="lock"]::after,
body[data-page="register"] .auth-input-icon[data-icon="shield"]::after {
  left: 50%;
  top: 8px;
  width: 11px;
  height: 15px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="gift"]::before {
  left: 50%;
  top: 17px;
  width: 19px;
  height: 14px;
  transform: translateX(-50%);
}

body[data-page="register"] .auth-input-icon[data-icon="gift"]::after {
  left: 50%;
  top: 12px;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
}

/* Login uses the same premium visual system as registration. */
body[data-page="login"] {
  background: #dce7f3;
}

body[data-page="login"] .app-shell {
  width: min(100%, 480px);
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: visible;
  background: #f8fbff;
  box-shadow: 0 0 44px rgba(15, 54, 102, 0.18);
}

body[data-page="login"] .premium-login {
  display: block;
  min-height: 100dvh;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  overflow: visible;
  color: #152135;
  background: #f8fbff;
}

body[data-page="login"] .premium-login::before,
body[data-page="login"] .premium-login::after {
  display: none;
}

body[data-page="login"] .auth-panel {
  width: 100%;
  max-width: none;
}

body[data-page="login"] .premium-register-card.register-sheet {
  position: relative;
  z-index: 8;
  margin-top: -34px;
  padding: 34px 25px 22px;
  border: 0;
  border-radius: 38px 38px 0 0;
  background: #fbfdff;
  box-shadow: 0 -14px 36px rgba(13, 48, 91, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="login"] .register-sheet-heading h1 {
  margin: 0;
  color: #101722;
  text-align: left;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body[data-page="login"] .premium-register-card .form {
  gap: 15px;
}

body[data-page="login"] .auth-input-wrap {
  position: relative;
  display: block;
  border-radius: 23px;
}

body[data-page="login"] .auth-input-wrap .input {
  width: 100%;
  min-height: 68px;
  padding: 0 50px 0 76px;
  border: 1px solid #cedaea;
  border-radius: 23px;
  color: #101722;
  background: linear-gradient(145deg, #f5f8fc, #edf3fa);
  box-shadow: inset 0 1px 0 #fff, 0 7px 15px rgba(39, 76, 122, 0.08);
  font-size: 15px;
  font-weight: 750;
}

body[data-page="login"] .auth-input-wrap .input::placeholder {
  color: #9aa4b2;
  font-weight: 500;
}

body[data-page="login"] .auth-input-wrap .input:focus {
  border-color: #2970bd;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 104, 180, 0.12), 0 10px 22px rgba(39, 76, 122, 0.1);
}

body[data-page="login"] .auth-input-icon {
  z-index: 3;
  left: 11px;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  color: #2867ae;
  background: linear-gradient(145deg, #fff, #e5edf8);
  box-shadow: 0 7px 14px rgba(38, 88, 145, 0.14);
}

body[data-page="login"] .auth-input-wrap .phone-input {
  padding-left: 116px;
}

body[data-page="login"] .password-toggle {
  right: 13px;
  color: #3977bb;
}

body[data-page="login"] .premium-submit {
  min-height: 65px;
  margin-top: 2px;
  border: 1px solid #3f7abe;
  border-radius: 22px;
  background: linear-gradient(180deg, #2368b4 0%, #0f4b97 46%, #092f6d 100%);
  box-shadow: 0 16px 28px rgba(11, 61, 125, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.24);
  font-size: 17px;
  letter-spacing: 0.01em;
}

body[data-page="login"] .premium-submit b {
  display: none;
}

body[data-page="login"] .premium-submit:hover,
body[data-page="login"] .premium-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(11, 61, 125, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

body[data-page="login"] .auth-link-row {
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e2eaf3;
  color: #7b8798;
  font-size: 11px;
}

body[data-page="login"] .auth-link-row .ghost {
  min-height: auto;
  padding: 6px 8px;
  border: 0;
  color: #14549a;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  box-shadow: none;
}

body[data-page="login"] .login-sheet-badge {
  border-color: #b8d2ef;
  background: linear-gradient(145deg, #f4f9ff, #dcecff);
}

body[data-page="login"] .login-sheet-badge small {
  color: #2462a8;
}

body[data-page="login"] .login-secure-card strong {
  font-size: 16px;
}

/* Keep login field symbols centered inside their icon tiles. */
body[data-page="login"] .auth-input-icon::before,
body[data-page="login"] .auth-input-icon::after {
  transform: none;
}

body[data-page="login"] .auth-input-icon[data-icon="phone"]::before {
  inset: auto;
  left: 50%;
  top: 9px;
  width: 15px;
  height: 28px;
  transform: translateX(-50%);
}

body[data-page="login"] .auth-input-icon[data-icon="phone"]::after {
  left: 50%;
  bottom: 12px;
  width: 5px;
  height: 2px;
  transform: translateX(-50%);
}

body[data-page="login"] .auth-input-icon[data-icon="lock"]::before {
  left: 50%;
  bottom: 9px;
  width: 16px;
  height: 13px;
  transform: translateX(-50%);
}

body[data-page="login"] .auth-input-icon[data-icon="lock"]::after {
  left: 50%;
  top: 8px;
  width: 11px;
  height: 15px;
  transform: translateX(-50%);
}

@media (max-width: 370px) {
  body[data-page="login"] .premium-register-card.register-sheet {
    padding: 29px 14px 19px;
    border-radius: 32px 32px 0 0;
  }

  body[data-page="login"] .register-sheet-heading h1 {
    font-size: 27px;
  }

  body[data-page="login"] .auth-input-wrap .input {
    min-height: 62px;
    padding-left: 67px;
    border-radius: 20px;
  }

  body[data-page="login"] .auth-input-icon {
    left: 10px;
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  body[data-page="login"] .auth-input-wrap .phone-input {
    padding-left: 108px;
  }
}
