:root {
  --orange: #ff7a00;
  --orange-dark: #df6500;
  --ink: #171717;
  --muted: #747474;
  --line: #ececec;
  --soft: #fff5eb;
  --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: var(--orange);
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.24);
  font-size: 23px;
  font-weight: 900;
}

.home-action-icon.buy-icon::before {
  content: "₹";
}

.home-action-icon.sell-icon::before {
  content: "⇧";
}

.home-action-icon.upi-icon::before {
  content: "UPI";
  font-size: 15px;
  letter-spacing: 0;
}

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(255, 122, 0, 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: #f97316;
  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: "₹";
  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, #ff8c1a, #ff5a00);
  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: #f97316;
  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: #f97316;
  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, #ff8a00, #f45112);
  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: #f26316;
  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: #f97316;
}

.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 {
  display: none !important;
}

.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: #f97316; 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: #ea580c; 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: #f97316; 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: #f97316; 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: #f97316; 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: #f97316; 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: #f97316; 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: #f97316; 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: #f97316; color: #fff; font-weight: 800; }
@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%, #f97316 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: #f97316;
  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, #fb923c, #ea580c);
  box-shadow: 0 14px 26px rgba(234, 88, 12, 0.26);
}

.mobile-auth .btn.ghost {
  background: #fff4e8;
  color: #c2410c;
  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:
    radial-gradient(circle at 50% 10%, rgba(255, 122, 0, 0.18), transparent 34%),
    radial-gradient(circle at 12% 86%, rgba(255, 180, 90, 0.13), transparent 30%),
    rgba(255, 247, 239, 0.72);
  backdrop-filter: blur(8px) saturate(1.08);
  animation: matchFadeIn 220ms ease both;
}

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

.match-card {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px 18px;
  border-radius: 28px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 244, 232, 0.98) 0 176px, #ffffff 176px 100%),
    #ffffff;
  box-shadow: 0 24px 58px rgba(182, 74, 0, 0.18), 0 8px 22px rgba(17, 17, 17, 0.08), inset 0 1px rgba(255, 255, 255, 0.9);
  text-align: center;
  overflow: hidden;
  position: relative;
  animation: matchZoomIn 260ms cubic-bezier(0.2, 0.85, 0.25, 1.08) both;
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 184px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.55), transparent 31%),
    radial-gradient(circle at 13% 76%, rgba(255, 186, 112, 0.34), transparent 29%),
    linear-gradient(145deg, #fff2e4 0%, #ffd7ad 46%, #ff8a1f 100%);
  transform: none;
  animation: none;
  pointer-events: none;
}

.match-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.16);
  pointer-events: none;
}

.match-card h2 {
  margin: 8px 0 0;
  color: #1f160f;
  font-size: 22px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.match-card p {
  min-height: 22px;
  margin: 0;
  color: #5f4736;
  font-size: 14px;
  font-weight: 850;
  position: relative;
  z-index: 1;
}

.match-overlay.matched .match-card p {
  color: #087a3f;
}

.match-overlay.matched .match-loader::before {
  border-color: rgba(18, 161, 95, 0.2);
  border-top-color: #12a15f;
  border-right-color: #5cdb96;
}

.match-overlay.matched .match-loader::after {
  background: linear-gradient(90deg, transparent, rgba(18, 161, 95, 0.72), transparent);
  box-shadow: 0 0 16px rgba(18, 161, 95, 0.24);
}

.match-overlay.matched .match-core {
  background: linear-gradient(135deg, #18c274, #079455);
  box-shadow: 0 16px 30px rgba(18, 161, 95, 0.3), 0 0 0 12px rgba(18, 161, 95, 0.1);
}

.match-overlay.matched .match-core::after {
  content: "\2713";
  font-size: 34px;
}

.match-overlay.matched .match-merchant {
  background: linear-gradient(145deg, #18c274, #079455);
  animation: merchantSuccess 420ms ease both;
}

.match-loader {
  position: relative;
  width: 168px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.98) 0 29%, transparent 30%),
    linear-gradient(145deg, rgba(255, 206, 150, 0.38), rgba(255, 255, 255, 0.32));
  isolation: isolate;
  filter: drop-shadow(0 18px 30px rgba(249, 115, 22, 0.18));
  z-index: 1;
}

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

.match-loader::after {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.7), transparent);
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.28);
  animation: moneyScan 1400ms ease-in-out infinite;
  z-index: 3;
}

.match-orbit {
  position: absolute;
  inset: 6px 20px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 199, 117, 0.32);
  animation: matchSpin 3800ms linear infinite;
}

.match-core {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c1a, #ff5a00);
  box-shadow: 0 16px 30px rgba(255, 122, 0, 0.38), 0 0 0 10px rgba(255, 122, 0, 0.1);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  animation: moneyCoinPulse 1200ms ease-in-out infinite;
}

.match-core::after {
  content: "\20B9";
  color: #ffffff;
  font-size: 39px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 7px rgba(110, 43, 0, 0.28);
}

.match-money-note {
  position: absolute;
  width: 46px;
  height: 27px;
  border: 1px solid rgba(18, 161, 95, 0.18);
  border-radius: 9px;
  background: linear-gradient(135deg, #ecfff4, #bff2d5);
  box-shadow: 0 9px 18px rgba(18, 161, 95, 0.14);
  opacity: 0.95;
  z-index: 1;
  animation: moneyFloat 1500ms ease-in-out infinite;
}

.match-money-note::before {
  content: "\20B9";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0a8f53;
  font-size: 13px;
  font-weight: 900;
}

.match-money-note::after {
  content: "";
  position: absolute;
  inset: 5px 7px;
  border: 1px solid rgba(10, 143, 83, 0.18);
  border-radius: 4px;
}

.match-money-note.note-one {
  left: 3px;
  top: 17px;
  transform: rotate(-13deg);
}

.match-money-note.note-two {
  right: 2px;
  top: 18px;
  transform: rotate(12deg);
  animation-delay: 180ms;
}

.match-money-note.note-three {
  left: 61px;
  bottom: 3px;
  transform: rotate(4deg);
  animation-delay: 320ms;
}

.match-money-note.note-four {
  right: 38px;
  bottom: 21px;
  transform: rotate(-8deg) scale(0.9);
  animation-delay: 460ms;
}

.match-merchant {
  position: absolute;
  top: 52px;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #12a15f, #087a3f);
  box-shadow: 0 12px 24px rgba(18, 161, 95, 0.22);
  z-index: 2;
  animation: merchantPulse 1300ms ease-in-out infinite;
}

.match-merchant::before {
  content: "";
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.match-merchant::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 17px;
  height: 5px;
  border-radius: 4px 4px 2px 2px;
  background: currentColor;
}

.match-merchant.merchant-one {
  left: 13px;
}

.match-merchant.merchant-two {
  right: 13px;
  animation-delay: 220ms;
}

.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(56px);
  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, #ffffff, #fffaf5);
  border: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 10px 22px rgba(151, 68, 9, 0.07);
}

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

.match-details strong {
  color: #e85f00;
  font-size: 17px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.24), transparent 34%),
    rgba(8, 7, 6, 0.64);
  backdrop-filter: blur(7px);
}

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

.payment-modal {
  width: min(100%, 460px);
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 28px 28px 20px 20px;
  background: linear-gradient(180deg, #fff7ef 0%, #ffffff 48%, #fffaf5 100%);
  box-shadow: 0 24px 58px rgba(182, 74, 0, 0.16), 0 8px 22px rgba(17, 17, 17, 0.08), inset 0 1px rgba(255, 255, 255, 0.9);
  padding: 0 16px 18px;
  animation: modalUp 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
  overflow: hidden;
}

.payment-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.55), transparent 31%),
    radial-gradient(circle at 12% 76%, rgba(255, 186, 112, 0.34), transparent 29%),
    linear-gradient(145deg, #fff2e4 0%, #ffd7ad 46%, #ff8a1f 100%);
  animation: none;
}

.payment-modal::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.16);
}

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

.payment-page-hero {
  position: relative;
  z-index: 1;
  margin: 0 -16px 14px;
  padding: 18px 16px 16px;
  color: #1f160f;
}

.payment-modal .section-head {
  color: #1f160f;
  align-items: flex-start;
  margin-bottom: 14px;
}

.payment-modal .section-head h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.payment-modal .section-head .eyebrow {
  color: #9a4d13;
  margin: 0 0 4px;
}

.payment-modal .section-head .icon-btn {
  color: #2d190d;
  background: rgba(255, 255, 255, 0.62);
}

.payment-amount-card {
  min-height: 108px;
  padding: 15px 16px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 22px;
  display: grid;
  gap: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 239, 0.68));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.85), 0 16px 30px rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(10px);
}

.payment-amount-card span,
.payment-amount-card small {
  color: #81522f;
  font-size: 11px;
  font-weight: 800;
}

.payment-amount-card strong {
  color: #1f160f;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.payment-order-chip {
  min-height: 48px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(151, 68, 9, 0.07);
}

.payment-order-chip span {
  color: #6e4427;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-order-chip strong {
  color: #111111;
  font-size: 15px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.payment-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.payment-reference-grid div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 15px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(151, 68, 9, 0.06);
}

.payment-reference-grid span {
  color: #6e4427;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-reference-grid strong {
  min-width: 0;
  color: #111111;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.barcode-wrap {
  display: grid;
  place-items: center;
  padding: 4px 0 8px;
  animation: qrCardUp 260ms ease both;
}

.barcode {
  width: 238px;
  min-height: 238px;
  display: grid;
  place-items: center;
  padding: 15px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(255, 122, 0, 0.52), rgba(18, 161, 95, 0.34)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 34px rgba(151, 68, 9, 0.15);
}

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

.barcode::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.65), transparent);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.22);
  animation: qrScan 1800ms ease-in-out infinite;
  pointer-events: 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: 20px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: 0 12px 24px rgba(151, 68, 9, 0.08);
  margin: 10px 0 12px;
}

.upi-display strong {
  font-size: 20px;
  color: var(--orange);
  font-weight: 950;
  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;
}

.payment-actions .btn {
  min-height: 48px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

#payWithApp {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8c1a, #ff5a00);
  border: 0;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.payment-reference-field span {
  color: #3f2a1b;
  font-size: 12px;
  font-weight: 900;
}

.payment-reference-field .input {
  color: #21140c;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  background: #ffffff;
}

.payment-btn-ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.36);
  transform: scale(0);
  animation: paymentRipple 280ms ease-out;
}

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

#payWithApp::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 52%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 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: 18px 16px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 0, 0.14), transparent 46%),
    linear-gradient(145deg, #ffffff, #fff7ee);
  box-shadow: 0 14px 28px rgba(151, 68, 9, 0.12);
  margin-top: 12px;
  overflow: hidden;
  position: relative;
  animation: processingIn 220ms ease both;
}

.processing-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -65%;
  width: 54%;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 26, 0.15), transparent);
  transform: skewX(-18deg);
  animation: shimmer 1800ms ease-in-out infinite;
}

.processing-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(255, 122, 0, 0.14);
  border-top-color: var(--orange);
  border-right-color: #ffb020;
  display: grid;
  place-items: center;
  color: #f97316;
  background: #fffaf4;
  box-shadow: inset 0 0 0 8px rgba(249, 115, 22, 0.08), 0 10px 22px rgba(249, 115, 22, 0.18);
  animation: spin 900ms linear infinite;
}

.processing-ring span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8c1a, #ff5a00);
  font-size: 22px;
  font-weight: 950;
  animation: reverseSpin 900ms linear infinite;
}

.processing-box strong,
.processing-box p,
.processing-dots {
  position: relative;
  z-index: 1;
}

.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, #f97316, #ea580c);
  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, #f97316, #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 qrCardUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qrPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 18px 30px rgba(17, 17, 17, 0.1), 0 0 0 0 rgba(255, 122, 0, 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(56px);
  }
}

@keyframes moneySweep {
  0% {
    transform: translateX(-120%);
  }
  55%, 100% {
    transform: translateX(120%);
  }
}

@keyframes moneyScan {
  0%, 100% {
    transform: translateY(-22px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(22px);
    opacity: 1;
  }
}

@keyframes moneyCoinPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes moneyFloat {
  0%, 100% {
    translate: 0 0;
    filter: brightness(1);
  }
  50% {
    translate: 0 -8px;
    filter: brightness(1.05);
  }
}

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

@keyframes merchantSuccess {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1.04);
  }
}

@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 qrScan {
  0%, 100% {
    transform: translateY(-94px);
    opacity: 0.15;
  }
  50% {
    transform: translateY(94px);
    opacity: 0.92;
  }
}

@keyframes paymentRipple {
  to {
    opacity: 0;
    transform: scale(2.25);
  }
}

@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);
  }
}

@keyframes reverseSpin {
  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: #f97316;
  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: #f97316;
}

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: #f97316;
}

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: #f97316;
}

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, #fb923c, #f97316 55%, #ea580c);
  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, #fb923c 0%, #f97316 55%, #ea580c 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: #ea580c; 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: #ea580c;
  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: #ea580c;
  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: #f97316;
  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-loading {
  color: #737687;
  font-size: 12px;
  font-weight: 700;
}

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

/* Minimum deposit badge on purchase page */
.min-deposit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2, #f0f4ff);
  color: var(--text-secondary, #555);
  border: 1px solid var(--border, #e0e6f0);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.min-deposit-badge::before {
  content: "ℹ️";
  font-size: 0.85em;
}
.order-empty {
  text-align: center;
  color: var(--text-secondary, #888);
  padding: 28px 16px;
  font-size: 0.9rem;
}

.admin-row-updated {
  opacity: 0.72;
  transform: scale(0.995);
  transition: opacity 220ms ease, transform 220ms ease;
}

/* Premium floating bottom navigation */
body[data-page] .screen,
body[data-page] .profile-screen,
body[data-page] .team-screen,
body[data-page] .history-screen {
  padding-bottom: calc(122px + env(safe-area-inset-bottom));
}

body[data-page] .bottom-nav {
  width: min(calc(100% - 22px), 458px);
  min-height: 82px;
  height: auto;
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 9px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(255, 122, 0, 0.12);
  border-radius: 24px 24px 22px 22px;
  color: #7a7f8c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 50% -42%, rgba(255, 122, 0, 0.2), transparent 56%);
  box-shadow:
    0 18px 44px rgba(28, 31, 46, 0.18),
    0 7px 18px rgba(255, 122, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

body[data-page] .bottom-nav .nav-link {
  min-width: 0;
  width: auto;
  min-height: 64px;
  height: 64px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex: initial;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 18px;
  color: #8a8f9b;
  background: transparent;
  box-shadow: none;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 300ms ease,
    background 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;
}

body[data-page] .bottom-nav .nav-link::before {
  content: "";
  width: 42px;
  height: 42px;
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%) scale(0.68);
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(135deg, #ff9f1c 0%, #ff7a00 48%, #f05a28 100%);
  box-shadow:
    0 11px 20px rgba(249, 115, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-page] .bottom-nav .nav-link::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -2;
  border-radius: 16px;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.18) 0%, rgba(255, 122, 0, 0.1) 34%, transparent 68%);
  transform: scale(0.72);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

body[data-page] .bottom-nav .nav-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.25;
  flex: 0 0 auto;
  transition:
    color 300ms ease,
    stroke 300ms ease,
    transform 300ms ease,
    filter 300ms ease;
}

body[data-page] .bottom-nav .nav-link span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    color 300ms ease,
    font-weight 300ms ease,
    transform 300ms ease;
}

body[data-page] .bottom-nav .nav-link:hover,
body[data-page] .bottom-nav .nav-link:focus-visible {
  color: #f97316;
  transform: translateY(-2px);
}

body[data-page] .bottom-nav .nav-link:hover::after,
body[data-page] .bottom-nav .nav-link:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

body[data-page] .bottom-nav .nav-link:active {
  transform: translateY(0) scale(0.94);
}

body[data-page] .bottom-nav .nav-link:active::after {
  opacity: 1;
  transform: scale(1.18);
  transition-duration: 160ms;
}

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: #f97316;
  background: rgba(255, 122, 0, 0.07);
  font-weight: 800;
}

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 {
  width: 42px;
  height: 42px;
  top: 5px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  border-radius: 999px;
}

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;
  stroke: #ffffff;
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 3px 7px rgba(126, 52, 0, 0.25));
}

body[data-page] .bottom-nav .nav-link.active span,
body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"] span,
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"] span,
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"] span,
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"] span,
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"] span {
  color: #f97316;
  font-weight: 850;
  transform: translateY(1px);
}

@media (max-width: 360px) {
  body[data-page] .bottom-nav {
    width: min(calc(100% - 12px), 458px);
    gap: 2px;
    padding-inline: 5px;
  }

  body[data-page] .bottom-nav .nav-link {
    font-size: 9.5px;
  }

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

/* Premium bottom navigation v2 */
body[data-page] .screen,
body[data-page] .profile-screen,
body[data-page] .team-screen,
body[data-page] .history-screen {
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

body[data-page] .bottom-nav {
  width: min(calc(100% - 24px), 440px);
  min-height: 72px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(255, 255, 255, 0));
  box-shadow:
    0 18px 42px rgba(15, 18, 32, 0.16),
    0 6px 18px rgba(249, 115, 22, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

body[data-page] .bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% -35%, rgba(255, 122, 0, 0.22), transparent 54%);
  pointer-events: none;
}

body[data-page] .bottom-nav .nav-link {
  height: 56px;
  min-height: 56px;
  gap: 4px;
  border-radius: 18px;
  color: #858b98;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    color 300ms ease,
    background 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;
}

body[data-page] .bottom-nav .nav-link::before {
  width: calc(100% - 4px);
  height: 50px;
  top: 3px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffb13b 0%, #ff7a00 50%, #ef5b2a 100%);
  box-shadow:
    0 12px 22px rgba(249, 115, 22, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transform: translateX(-50%) scale(0.82);
}

body[data-page] .bottom-nav .nav-link::after {
  inset: 5px 3px;
  border-radius: 17px;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.14), transparent 68%);
}

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

body[data-page] .bottom-nav .nav-link span {
  font-size: 10px;
  line-height: 1;
}

body[data-page] .bottom-nav .nav-link:hover,
body[data-page] .bottom-nav .nav-link:focus-visible {
  color: #f97316;
  background: rgba(255, 122, 0, 0.08);
  transform: translateY(-2px);
}

body[data-page] .bottom-nav .nav-link:active {
  transform: scale(0.94);
}

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: #ffffff;
  background: transparent;
  box-shadow: none;
}

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 {
  width: calc(100% - 4px);
  height: 50px;
  top: 3px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  border-radius: 18px;
}

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;
  stroke: #ffffff;
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 3px 7px rgba(126, 52, 0, 0.28));
}

body[data-page] .bottom-nav .nav-link.active span,
body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"] span,
body[data-page="purchase"] .bottom-nav .nav-link[data-nav="purchase"] span,
body[data-page="withdrawal"] .bottom-nav .nav-link[data-nav="withdrawal"] span,
body[data-page="team"] .bottom-nav .nav-link[data-nav="team"] span,
body[data-page="profile"] .bottom-nav .nav-link[data-nav="profile"] span {
  color: #ffffff;
  font-weight: 850;
  transform: translateY(0);
  text-shadow: 0 1px 6px rgba(126, 52, 0, 0.28);
}

@media (max-width: 360px) {
  body[data-page] .bottom-nav {
    width: min(calc(100% - 14px), 440px);
    min-height: 70px;
    padding: 7px;
  }

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

  body[data-page] .bottom-nav .nav-link span {
    font-size: 9px;
  }

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

/* Keep Buy payment / UTR sheet above the floating navigation */
body[data-page="purchase"] .modal-backdrop {
  z-index: 140;
  align-items: end;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
}

/* NovaPay mapped navigation: Home, Wallet, Buy(+), Team, Profile */
body[data-page] .bottom-nav .nav-link.nav-plus {
  transform: translateY(-14px);
}

body[data-page] .bottom-nav .nav-link.nav-plus::before {
  width: 56px;
  height: 56px;
  top: 0;
  border-radius: 50%;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  background: linear-gradient(135deg, #ffb13b 0%, #ff7a00 54%, #ef4444 100%);
  box-shadow:
    0 14px 28px rgba(249, 115, 22, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body[data-page] .bottom-nav .nav-link.nav-plus svg {
  width: 30px;
  height: 30px;
  color: #ffffff;
  stroke: #ffffff;
  stroke-width: 2.8;
  transform: translateY(4px);
  filter: drop-shadow(0 3px 7px rgba(126, 52, 0, 0.3));
}

body[data-page] .bottom-nav .nav-link.nav-plus span {
  margin-top: 8px;
  color: #f97316;
  font-weight: 850;
  text-shadow: none;
}

body[data-page] .bottom-nav .nav-link.nav-plus:hover,
body[data-page] .bottom-nav .nav-link.nav-plus:focus-visible {
  transform: translateY(-17px);
}

body[data-page] .bottom-nav .nav-link.nav-plus:active {
  transform: translateY(-14px) scale(0.94);
}

body[data-page="purchase"] .bottom-nav .nav-link.nav-plus span,
body[data-page] .bottom-nav .nav-link.nav-plus.active span {
  color: #f97316;
}

/* NovaPay premium bottom navigation */
body[data-page] .bottom-nav {
  width: min(calc(100% - 24px), 456px) !important;
  height: 72px !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px !important;
  border: 1px solid rgba(23, 190, 187, 0.25) !important;
  border-radius: 24px !important;
  background: rgba(22, 26, 35, 0.92) !important;
  color: #5B6472 !important;
  box-shadow: 0 -12px 42px rgba(60, 72, 100, 0.42), 0 0 28px rgba(23, 190, 187, 0.12) !important;
  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
  overflow: visible !important;
}

body[data-page] .bottom-nav .nav-link {
  min-width: 0 !important;
  width: auto !important;
  height: 56px !important;
  min-height: 56px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 5px 2px !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: #5B6472 !important;
  box-shadow: none !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease !important;
  -webkit-tap-highlight-color: transparent;
}

body[data-page] .bottom-nav .nav-link:active {
  transform: scale(0.94) translateY(1px) !important;
}

body[data-page] .bottom-nav .nav-link svg {
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 2.25 !important;
  filter: none !important;
  transform: none !important;
  transition: transform 160ms ease, filter 160ms ease !important;
}

body[data-page] .bottom-nav .nav-link span {
  color: currentColor !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: #17BEBB !important;
  background: rgba(23, 190, 187, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(23, 190, 187, 0.22), 0 8px 22px rgba(23, 190, 187, 0.14) !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 {
  transform: translateY(-1px) scale(1.04) !important;
  filter: drop-shadow(0 0 9px rgba(23, 190, 187, 0.32)) !important;
}

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 {
  content: "" !important;
  position: absolute !important;
  top: 5px !important;
  left: 50% !important;
  width: 5px !important;
  height: 5px !important;
  transform: translateX(-50%) !important;
  border-radius: 999px !important;
  background: #17BEBB !important;
  box-shadow: 0 0 12px rgba(23, 190, 187, 0.8) !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus {
  transform: translateY(-17px) !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  background: #17BEBB !important;
  box-shadow: 0 10px 24px rgba(23, 190, 187, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.24) !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus::before,
body[data-page="purchase"] .bottom-nav .nav-link.nav-plus::before {
  content: none !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus svg,
body[data-page="purchase"] .bottom-nav .nav-link.nav-plus svg {
  width: 28px !important;
  height: 28px !important;
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  transform: none !important;
  filter: none !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus span,
body[data-page="purchase"] .bottom-nav .nav-link.nav-plus span {
  display: none !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus:active {
  transform: translateY(-17px) scale(0.94) !important;
}

@media (max-width: 360px) {
  body[data-page] .bottom-nav {
    width: min(calc(100% - 16px), 456px) !important;
    height: 68px !important;
    padding: 7px 5px !important;
    border-radius: 22px !important;
  }

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

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

body[data-page="purchase"] .payment-modal {
  max-height: calc(100vh - 28px - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

body[data-page="purchase"] #confirmPayment {
  position: relative;
  z-index: 2;
  margin-bottom: 2px;
}

.signup-bonus-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.22), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(251, 146, 60, 0.18), transparent 24%),
    rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  animation: bonusOverlayIn 0.24s ease-out both;
}

.signup-bonus-card {
  position: relative;
  width: min(100%, 374px);
  padding: 18px 18px 20px;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 237, 213, 0.95), transparent 33%),
    radial-gradient(circle at 92% 10%, rgba(251, 191, 36, 0.18), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 58%, #fff7ed 100%);
  color: #1f2937;
  text-align: center;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26), 0 0 0 6px rgba(249, 115, 22, 0.08);
  animation: bonusCardIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.signup-bonus-card::before,
.signup-bonus-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.signup-bonus-card::before {
  inset: -2px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(315deg, rgba(255, 237, 213, 0.86), transparent 32%);
  opacity: 0.9;
}

.signup-bonus-card::after {
  right: -18px;
  bottom: 72px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.09);
  box-shadow: -300px 48px 0 -42px rgba(251, 191, 36, 0.22);
  opacity: 1;
}

.signup-bonus-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.14);
}

.signup-bonus-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
}

.signup-bonus-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.signup-bonus-brand strong {
  display: block;
  color: #171717;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.signup-bonus-brand small {
  display: block;
  margin-top: 3px;
  color: #f97316;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.signup-bonus-headline {
  position: relative;
  z-index: 2;
  margin: 14px 0 6px;
  color: #1f2937;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.08;
  text-shadow: none;
}

.signup-bonus-cash {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 7px 18px;
  border-radius: 10px;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
  text-transform: uppercase;
}

.signup-bonus-cash span {
  display: block;
  color: #ea580c;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.signup-bonus-cash strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
}

.signup-bonus-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4e8;
  color: #c2410c;
}

.signup-bonus-close:disabled {
  opacity: 0.38;
}

.bonus-wheel-wrap {
  position: relative;
  z-index: 2;
  width: 246px;
  height: 246px;
  margin: 16px auto 13px;
  display: grid;
  place-items: center;
}

.bonus-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: repeating-conic-gradient(#f97316 0deg 8deg, #fff7ed 8deg 16deg);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.2);
}

.bonus-wheel {
  position: relative;
  width: 216px;
  height: 216px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: conic-gradient(from -30deg, #f97316 0deg 60deg, #fb923c 60deg 120deg, #facc15 120deg 180deg, #22c55e 180deg 240deg, #38bdf8 240deg 300deg, #ea580c 300deg 360deg);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.5), inset 0 0 0 16px rgba(124, 45, 18, 0.1), 0 14px 30px rgba(249, 115, 22, 0.18);
  animation: bonusGlow 1.5s ease-in-out infinite;
}

.bonus-wheel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.42) 50%, transparent calc(50% + 1px)),
    linear-gradient(30deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.36) 50%, transparent calc(50% + 1px)),
    linear-gradient(150deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.36) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}

.bonus-wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #ffedd5 0 38%, #ef4444 39% 100%);
  color: #111111;
  font-size: 15px;
  font-weight: 950;
  text-shadow: none;
  box-shadow: inset 0 0 0 6px rgba(255, 247, 237, 0.78), 0 8px 18px rgba(249, 115, 22, 0.28);
  z-index: 3;
}

.bonus-wheel-prize {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  margin-left: -28px;
  margin-top: -10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 4px rgba(67, 20, 7, 0.38);
  z-index: 2;
}

.bonus-wheel-prize.prize-2,
.bonus-wheel-prize.prize-5 {
  color: #431407;
  text-shadow: 0 1px 4px rgba(255, 247, 237, 0.72);
}

.bonus-wheel-prize.prize-1 { transform: rotate(0deg) translateY(-79px) rotate(0deg); }
.bonus-wheel-prize.prize-2 { transform: rotate(60deg) translateY(-79px) rotate(-60deg); }
.bonus-wheel-prize.prize-3 { transform: rotate(120deg) translateY(-79px) rotate(-120deg); }
.bonus-wheel-prize.prize-4 { transform: rotate(180deg) translateY(-79px) rotate(-180deg); }
.bonus-wheel-prize.prize-5 { transform: rotate(240deg) translateY(-79px) rotate(-240deg); }
.bonus-wheel-prize.prize-6 { transform: rotate(300deg) translateY(-79px) rotate(-300deg); }

.bonus-wheel.is-spinning {
  animation: bonusSpin 2.6s cubic-bezier(0.12, 0.72, 0.2, 1) both;
}

.bonus-wheel.is-complete {
  transform: rotate(var(--bonus-spin-rotation, 2160deg)) scale(1.04);
}

.bonus-pointer {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 28px solid #ea580c;
  filter: drop-shadow(0 4px 7px rgba(124, 45, 18, 0.24));
}

.signup-bonus-kicker {
  margin: 0 0 5px;
  color: #f97316;
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.signup-bonus-card h2 {
  margin: 0;
  color: #171717;
  position: relative;
  z-index: 2;
  font-size: 31px;
  line-height: 1.16;
  font-weight: 950;
  text-shadow: none;
}

.signup-bonus-card h2 span {
  color: #f97316;
}

.signup-bonus-result {
  min-height: 24px;
  margin: 12px 0 18px;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.signup-bonus-spin {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.signup-bonus-trust {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.signup-bonus-trust span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fffaf5;
  color: #c2410c;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.signup-bonus-spin:disabled {
  opacity: 0.78;
}

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

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

@keyframes bonusGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes bonusSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--bonus-spin-rotation, 2160deg)); }
}

/* Premium NovaPay Spin & Win presentation. Bonus behavior remains in firebase.js. */
.signup-bonus-modal {
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(20, 24, 34, 0.62);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  animation: premiumBonusOverlayIn 360ms ease-out both;
}

.signup-bonus-modal.is-leaving {
  animation: premiumBonusOverlayOut 300ms ease-in both;
}

.signup-bonus-card {
  width: min(100%, 390px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 20px 20px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 211, 128, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 241, 0.96) 56%, rgba(255, 244, 225, 0.96));
  color: #20242c;
  box-shadow:
    0 30px 80px rgba(17, 24, 39, 0.34),
    0 10px 32px rgba(234, 88, 12, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: premiumBonusCardIn 440ms cubic-bezier(.2, .85, .25, 1) both;
  scrollbar-width: none;
}

.signup-bonus-card::-webkit-scrollbar {
  display: none;
}

.signup-bonus-card::before {
  inset: 0;
  background: linear-gradient(115deg, transparent 14%, rgba(255, 255, 255, 0.72) 36%, transparent 54%);
  opacity: 0.5;
  transform: translateX(-70%);
  animation: premiumCardSheen 4.2s ease-in-out infinite;
}

.signup-bonus-card::after {
  left: 18px;
  right: 18px;
  top: 0;
  bottom: auto;
  width: auto;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, #ffd36a 25%, #f97316 50%, #ffd36a 75%, transparent);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.24);
  opacity: 0.92;
}

.signup-bonus-card > :not(.signup-bonus-ambient) {
  position: relative;
  z-index: 2;
}

.signup-bonus-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.signup-bonus-ambient span {
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.34), transparent);
  transform: rotate(-28deg);
}

.signup-bonus-ambient span:nth-child(1) { top: 56px; left: -34px; }
.signup-bonus-ambient span:nth-child(2) { top: 118px; right: -30px; transform: rotate(28deg); }
.signup-bonus-ambient span:nth-child(3) { bottom: 68px; left: -24px; }

.signup-bonus-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6 !important;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: #9a3412;
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.signup-bonus-close:not(:disabled):active {
  transform: scale(0.9);
}

.signup-bonus-close:disabled {
  opacity: 0.28;
}

.signup-bonus-header {
  text-align: center;
}

.signup-bonus-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 9px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.16), inset 0 1px 0 #ffffff;
}

.signup-bonus-logo img {
  width: 90%;
  height: 90%;
}

.signup-bonus-card .signup-bonus-welcome {
  margin: 0;
  color: #9a3412;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.signup-bonus-card .signup-bonus-welcome span {
  display: inline-block;
  margin-right: 3px;
  animation: premiumWelcomePop 1.8s ease-in-out infinite;
}

.signup-bonus-headline {
  max-width: 320px;
  margin: 5px auto 0;
  color: #22252d;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.14;
}

.signup-bonus-subtitle {
  margin: 7px 0 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.bonus-wheel-stage {
  position: relative;
  width: 100%;
  height: 270px;
  margin-top: 7px;
  display: grid;
  place-items: center;
  perspective: 900px;
  transition: opacity 300ms ease, transform 360ms ease, max-height 380ms ease, margin 380ms ease;
}

.bonus-wheel-wrap {
  --bonus-wheel-shell: 250px;
  --bonus-wheel-size: 218px;
  --bonus-prize-radius: -80px;
  width: var(--bonus-wheel-shell);
  height: var(--bonus-wheel-shell);
  margin: 0;
  transform: rotateX(5deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 18px rgba(124, 45, 18, 0.18));
}

.bonus-wheel-wrap::before {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: repeating-conic-gradient(from 0deg, #9a3412 0deg 4deg, #f97316 4deg 8deg, #ffd36a 8deg 12deg, #fff4d6 12deg 16deg);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.7),
    inset 0 0 0 9px rgba(154, 52, 18, 0.18),
    0 18px 38px rgba(234, 88, 12, 0.25),
    0 0 26px rgba(255, 196, 72, 0.3);
  animation: premiumWheelRimGlow 1.8s ease-in-out infinite;
}

.bonus-wheel-wrap::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 4;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 12px 16px 24px rgba(255, 255, 255, 0.18), inset -10px -14px 22px rgba(124, 45, 18, 0.12);
  pointer-events: none;
}

.bonus-wheel {
  width: var(--bonus-wheel-size);
  height: var(--bonus-wheel-size);
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: conic-gradient(from -30deg,
    #f97316 0deg 60deg,
    #fff5dd 60deg 120deg,
    #f4b52d 120deg 180deg,
    #fffaf0 180deg 240deg,
    #ea580c 240deg 300deg,
    #ffd36a 300deg 360deg);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.46),
    inset 0 0 0 15px rgba(124, 45, 18, 0.09),
    inset 10px 12px 28px rgba(255, 255, 255, 0.18),
    inset -12px -14px 24px rgba(124, 45, 18, 0.14),
    0 10px 20px rgba(124, 45, 18, 0.16);
  animation: premiumBonusGlow 1.7s ease-in-out infinite;
}

.bonus-wheel::before {
  inset: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(120, 53, 15, 0.15) 50%, transparent calc(50% + 1px)),
    linear-gradient(30deg, transparent calc(50% - 1px), rgba(120, 53, 15, 0.13) 50%, transparent calc(50% + 1px)),
    linear-gradient(150deg, transparent calc(50% - 1px), rgba(120, 53, 15, 0.13) 50%, transparent calc(50% + 1px));
}

.bonus-wheel::after {
  content: "";
  position: absolute;
  inset: 10px 42px 52%;
  z-index: 1;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
  pointer-events: none;
}

.bonus-wheel-center {
  width: 72px;
  height: 72px;
  padding-top: 2px;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: linear-gradient(145deg, #ffb13b, #f97316 54%, #c2410c);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(124, 45, 18, 0.36);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.48),
    inset 0 -5px 10px rgba(124, 45, 18, 0.22),
    0 8px 18px rgba(124, 45, 18, 0.3),
    0 0 0 6px rgba(255, 245, 221, 0.64);
}

.bonus-wheel-center small {
  font-size: 7px;
  font-weight: 800;
  opacity: 0.88;
}

.bonus-wheel-center strong {
  font-size: 15px;
  font-weight: 950;
}

.bonus-wheel-prize {
  width: 62px;
  margin-left: -31px;
  color: #ffffff;
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(67, 20, 7, 0.46);
}

.bonus-wheel-prize.prize-2,
.bonus-wheel-prize.prize-4,
.bonus-wheel-prize.prize-6 {
  color: #78350f;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.72);
}

.bonus-wheel-prize.prize-1 { transform: rotate(0deg) translateY(var(--bonus-prize-radius)) rotate(0deg); }
.bonus-wheel-prize.prize-2 { transform: rotate(60deg) translateY(var(--bonus-prize-radius)) rotate(-60deg); }
.bonus-wheel-prize.prize-3 { transform: rotate(120deg) translateY(var(--bonus-prize-radius)) rotate(-120deg); }
.bonus-wheel-prize.prize-4 { transform: rotate(180deg) translateY(var(--bonus-prize-radius)) rotate(-180deg); }
.bonus-wheel-prize.prize-5 { transform: rotate(240deg) translateY(var(--bonus-prize-radius)) rotate(-240deg); }
.bonus-wheel-prize.prize-6 { transform: rotate(300deg) translateY(var(--bonus-prize-radius)) rotate(-300deg); }

.bonus-wheel.is-spinning {
  animation: bonusSpin 2.6s cubic-bezier(0.12, 0.72, 0.2, 1) both;
}

.bonus-wheel.is-complete {
  transform: rotate(var(--bonus-spin-rotation, 2160deg));
  animation: premiumWinnerWheel 420ms cubic-bezier(.2, .9, .3, 1) both;
}

.bonus-pointer {
  top: -3px;
  z-index: 7;
  width: 38px;
  height: 48px;
  border: 0;
  filter: drop-shadow(0 7px 7px rgba(124, 45, 18, 0.3));
}

.bonus-pointer::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 100%, 6% 20%, 22% 7%, 78% 7%, 94% 20%);
  background: linear-gradient(145deg, #fff0b3 0%, #f59e0b 42%, #c2410c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.bonus-pointer span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(124, 45, 18, 0.3);
}

.bonus-floating-coin {
  position: absolute;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff4bd, #f6ad21 58%, #d97706);
  color: #8a3b0b;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(180, 83, 9, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  animation: premiumCoinFloat 2.4s ease-in-out infinite;
}

.bonus-floating-coin.coin-one { left: 5px; top: 54px; }
.bonus-floating-coin.coin-two { right: 5px; top: 88px; animation-delay: -0.8s; }
.bonus-floating-coin.coin-three { right: 30px; bottom: 6px; width: 24px; height: 24px; font-size: 11px; animation-delay: -1.5s; }

.bonus-sparkle {
  position: absolute;
  z-index: 5;
  width: 12px;
  height: 12px;
  animation: premiumSparkle 1.4s ease-in-out infinite;
}

.bonus-sparkle::before,
.bonus-sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #f59e0b;
  transform: translate(-50%, -50%);
}

.bonus-sparkle::before { width: 2px; height: 12px; }
.bonus-sparkle::after { width: 12px; height: 2px; }
.bonus-sparkle.sparkle-one { left: 22px; top: 28px; }
.bonus-sparkle.sparkle-two { right: 20px; top: 40px; animation-delay: -0.45s; }
.bonus-sparkle.sparkle-three { left: 30px; bottom: 28px; animation-delay: -0.9s; }
.bonus-sparkle.sparkle-four { right: 8px; bottom: 48px; animation-delay: -1.2s; }

.signup-bonus-result {
  min-height: 20px;
  margin: -1px 0 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.signup-bonus-spin {
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(110deg, #ff9d2f 0%, #f97316 46%, #dd4b0a 100%);
  font-size: 15px;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 160ms ease, box-shadow 180ms ease, filter 180ms ease;
  animation: premiumButtonGlow 1.8s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.signup-bonus-spin span {
  position: relative;
  z-index: 2;
}

.signup-bonus-spin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.34) 46%, transparent 68%);
  transform: translateX(-110%);
  animation: premiumButtonSheen 2.2s ease-in-out infinite;
}

.signup-bonus-spin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.signup-bonus-spin:active {
  transform: scale(0.96);
  filter: brightness(0.98);
}

.signup-bonus-spin:active::after {
  animation: premiumButtonRipple 460ms ease-out;
}

.signup-bonus-spin:disabled {
  opacity: 0.78;
  animation: none;
}

.signup-bonus-trust {
  gap: 7px;
  margin-top: 12px;
}

.signup-bonus-trust span {
  min-height: 38px;
  grid-template-columns: auto 1fr;
  gap: 4px;
  padding: 6px 5px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: #7c2d12;
  font-size: 8px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 #ffffff;
}

.signup-bonus-trust svg {
  width: 13px;
  height: 13px;
  color: #f97316;
}

.signup-bonus-win {
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.94);
  text-align: center;
}

.signup-bonus-win > p {
  margin: 12px 0 5px;
  color: #7c2d12;
  font-size: 21px;
  font-weight: 900;
}

.signup-bonus-win > small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 750;
}

.signup-bonus-win > strong {
  display: block;
  margin-top: 5px;
  color: #ea580c;
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 7px 20px rgba(234, 88, 12, 0.18);
}

.signup-bonus-check {
  width: 76px;
  height: 76px;
  margin: 8px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffd66b, #f97316 65%, #c2410c);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.24), 0 0 0 8px rgba(255, 216, 128, 0.2);
}

.signup-bonus-check svg {
  width: 38px;
  height: 38px;
  stroke-width: 3;
}

.signup-bonus-coin-burst {
  position: relative;
  width: 1px;
  height: 1px;
  margin: 0 auto;
}

.signup-bonus-coin-burst i {
  position: absolute;
  left: -12px;
  top: -70px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff0a5, #f4ad22);
  color: #92400e;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  opacity: 0;
}

.signup-bonus-coin-burst i:nth-child(1) { --coin-x: -112px; --coin-y: -55px; --coin-r: -30deg; }
.signup-bonus-coin-burst i:nth-child(2) { --coin-x: -76px; --coin-y: -112px; --coin-r: 26deg; }
.signup-bonus-coin-burst i:nth-child(3) { --coin-x: -26px; --coin-y: -132px; --coin-r: -18deg; }
.signup-bonus-coin-burst i:nth-child(4) { --coin-x: 42px; --coin-y: -128px; --coin-r: 38deg; }
.signup-bonus-coin-burst i:nth-child(5) { --coin-x: 88px; --coin-y: -100px; --coin-r: -28deg; }
.signup-bonus-coin-burst i:nth-child(6) { --coin-x: 112px; --coin-y: -48px; --coin-r: 22deg; }

.signup-bonus-card.is-winner .bonus-wheel-stage {
  max-height: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-12px) scale(0.76);
  pointer-events: none;
}

.signup-bonus-card.is-winner .signup-bonus-headline,
.signup-bonus-card.is-winner .signup-bonus-subtitle,
.signup-bonus-card.is-winner .signup-bonus-logo {
  display: none;
}

.signup-bonus-card.is-winner .signup-bonus-welcome {
  margin-top: 2px;
}

.signup-bonus-card.is-winner .signup-bonus-win {
  height: 238px;
  margin: 8px 0 2px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: premiumWinnerIn 440ms cubic-bezier(.2, .9, .3, 1) both;
}

.signup-bonus-card.is-winner .signup-bonus-check {
  animation: premiumCheckIn 440ms cubic-bezier(.2, 1.25, .3, 1) both;
}

.signup-bonus-card.is-winner .signup-bonus-check svg {
  animation: premiumCheckStroke 420ms 180ms ease-out both;
}

.signup-bonus-card.is-winner .signup-bonus-coin-burst i {
  animation: premiumCoinBurst 680ms cubic-bezier(.2, .8, .3, 1) both;
}

.signup-bonus-card.is-winner .signup-bonus-coin-burst i:nth-child(2) { animation-delay: 40ms; }
.signup-bonus-card.is-winner .signup-bonus-coin-burst i:nth-child(3) { animation-delay: 80ms; }
.signup-bonus-card.is-winner .signup-bonus-coin-burst i:nth-child(4) { animation-delay: 20ms; }
.signup-bonus-card.is-winner .signup-bonus-coin-burst i:nth-child(5) { animation-delay: 60ms; }
.signup-bonus-card.is-winner .signup-bonus-coin-burst i:nth-child(6) { animation-delay: 100ms; }

.signup-bonus-card.is-winner .signup-bonus-result {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.signup-bonus-card.is-winner .signup-bonus-spin {
  background: linear-gradient(110deg, #ffb52f, #f97316 55%, #c2410c);
}

.signup-bonus-confetti {
  position: absolute !important;
  inset: 0;
  z-index: 8 !important;
  overflow: hidden;
  pointer-events: none;
}

.signup-bonus-confetti i {
  position: absolute;
  top: -16px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
}

.signup-bonus-confetti i:nth-child(1) { left: 7%; background: #f97316; --confetti-r: 210deg; }
.signup-bonus-confetti i:nth-child(2) { left: 15%; background: #ffd166; --confetti-r: -180deg; }
.signup-bonus-confetti i:nth-child(3) { left: 24%; background: #ffffff; --confetti-r: 260deg; }
.signup-bonus-confetti i:nth-child(4) { left: 34%; background: #f59e0b; --confetti-r: -240deg; }
.signup-bonus-confetti i:nth-child(5) { left: 43%; background: #fb923c; --confetti-r: 190deg; }
.signup-bonus-confetti i:nth-child(6) { left: 52%; background: #fde68a; --confetti-r: -210deg; }
.signup-bonus-confetti i:nth-child(7) { left: 61%; background: #ffffff; --confetti-r: 230deg; }
.signup-bonus-confetti i:nth-child(8) { left: 69%; background: #ea580c; --confetti-r: -280deg; }
.signup-bonus-confetti i:nth-child(9) { left: 77%; background: #fbbf24; --confetti-r: 240deg; }
.signup-bonus-confetti i:nth-child(10) { left: 84%; background: #fff7ed; --confetti-r: -190deg; }
.signup-bonus-confetti i:nth-child(11) { left: 91%; background: #fb923c; --confetti-r: 280deg; }
.signup-bonus-confetti i:nth-child(12) { left: 96%; background: #ffd166; --confetti-r: -250deg; }

.signup-bonus-card.is-winner .signup-bonus-confetti i {
  animation: premiumConfettiFall 1.1s cubic-bezier(.2, .7, .3, 1) both;
}

.signup-bonus-card.is-winner .signup-bonus-confetti i:nth-child(2n) { animation-delay: 80ms; }
.signup-bonus-card.is-winner .signup-bonus-confetti i:nth-child(3n) { animation-delay: 150ms; }

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

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

@keyframes premiumBonusCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes premiumCardSheen {
  0%, 55% { transform: translateX(-75%); }
  82%, 100% { transform: translateX(75%); }
}

@keyframes premiumWelcomePop {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.12); }
}

@keyframes premiumWheelRimGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes premiumBonusGlow {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.08) saturate(1.06); }
}

@keyframes premiumWinnerWheel {
  0% { scale: 1; }
  50% { scale: 1.06; }
  100% { scale: 1; }
}

@keyframes premiumCoinFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-9px) rotate(6deg); }
}

@keyframes premiumSparkle {
  0%, 100% { opacity: 0.28; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

@keyframes premiumButtonGlow {
  0%, 100% { box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34); }
  50% { box-shadow: 0 17px 34px rgba(234, 88, 12, 0.38), 0 0 0 5px rgba(249, 115, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

@keyframes premiumButtonSheen {
  0%, 50% { transform: translateX(-110%); }
  78%, 100% { transform: translateX(110%); }
}

@keyframes premiumButtonRipple {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(28); }
}

@keyframes premiumWinnerIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes premiumCheckIn {
  from { opacity: 0; transform: scale(0.55) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes premiumCheckStroke {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes premiumCoinBurst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.5); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--coin-x), var(--coin-y)) rotate(var(--coin-r)) scale(1); }
}

@keyframes premiumConfettiFall {
  0% { opacity: 0; transform: translateY(-14px) rotate(0deg); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translateY(390px) rotate(var(--confetti-r)); }
}

@media (max-width: 390px) {
  .signup-bonus-modal { padding-inline: 10px; }
  .signup-bonus-card { padding: 18px 16px 16px; border-radius: 20px; }
  .signup-bonus-headline { font-size: 22px; }
  .bonus-wheel-stage { height: 246px; }
  .bonus-wheel-wrap {
    --bonus-wheel-shell: 228px;
    --bonus-wheel-size: 198px;
    --bonus-prize-radius: -72px;
  }
  .bonus-wheel-center { width: 66px; height: 66px; }
  .signup-bonus-trust span { font-size: 7.5px; }
}

@media (max-height: 700px) {
  .signup-bonus-card { padding-top: 15px; padding-bottom: 14px; }
  .signup-bonus-logo { width: 44px; height: 44px; margin-bottom: 6px; }
  .signup-bonus-headline { font-size: 21px; }
  .signup-bonus-subtitle { margin-top: 4px; }
  .bonus-wheel-stage { height: 226px; margin-top: 2px; }
  .bonus-wheel-wrap {
    --bonus-wheel-shell: 212px;
    --bonus-wheel-size: 184px;
    --bonus-prize-radius: -67px;
  }
  .bonus-wheel-center { width: 62px; height: 62px; }
  .signup-bonus-result { margin-bottom: 7px; }
  .signup-bonus-spin { min-height: 48px; }
  .signup-bonus-trust { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .signup-bonus-modal,
  .signup-bonus-card,
  .signup-bonus-card::before,
  .signup-bonus-welcome span,
  .bonus-wheel-wrap::before,
  .bonus-wheel,
  .bonus-floating-coin,
  .bonus-sparkle,
  .signup-bonus-spin,
  .signup-bonus-spin::before {
    animation: none !important;
  }
}

/* NovaPay white 2D navigation and tab animation */
@property --plus-lift {
  syntax: "<length>";
  inherits: false;
  initial-value: -15px;
}

@property --plus-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --plus-icon-turn {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --plus-icon-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

body[data-page] .bottom-nav {
  width: min(100%, 480px) !important;
  height: 82px !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 9px 10px 10px !important;
  overflow: visible !important;
  border: 1px solid rgba(226, 232, 240, 0.82) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 -10px 26px rgba(17, 24, 39, 0.10) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body[data-page] .bottom-nav .nav-link {
  width: auto !important;
  min-width: 0 !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 5px 2px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1) !important;
  -webkit-tap-highlight-color: transparent;
}

body[data-page] .bottom-nav .nav-link:nth-child(1) { color: #4f5bd5 !important; }
body[data-page] .bottom-nav .nav-link:nth-child(2) { color: #0796c6 !important; }
body[data-page] .bottom-nav .nav-link:nth-child(3) { color: #f07b18 !important; }
body[data-page] .bottom-nav .nav-link:nth-child(4) { color: #168a67 !important; }
body[data-page] .bottom-nav .nav-link:nth-child(5) { color: #d6537d !important; }

body[data-page] .bottom-nav .nav-link svg {
  width: 27px !important;
  height: 27px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 2.35 !important;
  filter: none !important;
  transform: none !important;
  transition: transform 190ms cubic-bezier(.2,1.45,.35,1) !important;
}

body[data-page] .bottom-nav .nav-link span {
  display: block !important;
  color: currentColor !important;
}

body[data-page] .bottom-nav .nav-link:not(.nav-plus)::before,
body[data-page] .bottom-nav .nav-link:not(.nav-plus)::after {
  content: none !important;
  display: none !important;
}

body[data-page] .bottom-nav .nav-link.active:nth-child(1) { background: rgba(79, 91, 213, 0.10) !important; }
body[data-page] .bottom-nav .nav-link.active:nth-child(2) { background: rgba(7, 150, 198, 0.10) !important; }
body[data-page] .bottom-nav .nav-link.active:nth-child(4) { background: rgba(22, 138, 103, 0.10) !important; }
body[data-page] .bottom-nav .nav-link.active:nth-child(5) { background: rgba(214, 83, 125, 0.10) !important; }

body[data-page] .bottom-nav .nav-link.nav-plus {
  --plus-lift: -15px;
  --plus-scale: 1;
  width: 62px !important;
  height: 62px !important;
  min-height: 62px !important;
  justify-self: center !important;
  transform: translateY(var(--plus-lift)) scale(var(--plus-scale)) !important;
  border-radius: 50% !important;
  background: #f07b18 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(240, 123, 24, 0.30) !important;
  will-change: transform;
}

body[data-page] .bottom-nav .nav-link.nav-plus::before { content: none !important; }
body[data-page] .bottom-nav .nav-link.nav-plus::after {
  content: "" !important;
  position: absolute !important;
  inset: -7px !important;
  display: block !important;
  border: 3px solid rgba(240, 123, 24, 0.48) !important;
  border-radius: 50% !important;
  opacity: 0;
  transform: scale(.72);
  pointer-events: none;
}
body[data-page] .bottom-nav .nav-link.nav-plus svg {
  --plus-icon-turn: 0deg;
  --plus-icon-scale: 1;
  width: 32px !important;
  height: 32px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2.4 !important;
  transform: rotate(var(--plus-icon-turn)) scale(var(--plus-icon-scale)) !important;
  transform-origin: 50% 50% !important;
  will-change: transform;
}
body[data-page] .bottom-nav .nav-link.nav-plus span {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  display: block !important;
  color: #d86510 !important;
  font-size: 11px !important;
}
body[data-page] .bottom-nav .nav-link.nav-plus span::after { content: "Buy"; }
body[data-page] .bottom-nav .nav-link.nav-plus span { font-size: 0 !important; }
body[data-page] .bottom-nav .nav-link.nav-plus span::after { font-size: 11px !important; }

@media (max-width: 360px) {
  body[data-page] .bottom-nav { height: 76px !important; padding-inline: 6px !important; }
  body[data-page] .bottom-nav .nav-link { height: 58px !important; min-height: 58px !important; font-size: 10px !important; }
  body[data-page] .bottom-nav .nav-link svg { width: 25px !important; height: 25px !important; }
  body[data-page] .bottom-nav .nav-link.nav-plus { width: 57px !important; height: 57px !important; min-height: 57px !important; }
}

/* Permanent NovaPay navigation skin: one visual system from initial load onward. */
body[data-page] .bottom-nav {
  border-color: rgba(226, 230, 235, 0.94) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 -12px 34px rgba(26, 31, 38, 0.11) !important;
}

body[data-page] .bottom-nav .nav-link:not(.nav-plus),
body[data-page] .bottom-nav .nav-link:nth-child(1),
body[data-page] .bottom-nav .nav-link:nth-child(2),
body[data-page] .bottom-nav .nav-link:nth-child(4),
body[data-page] .bottom-nav .nav-link:nth-child(5) {
  color: #8b949e !important;
  background: transparent !important;
}

body[data-page] .bottom-nav .nav-link:not(.nav-plus) {
  border-radius: 14px !important;
  transition: color 240ms ease, background-color 240ms ease, transform 240ms ease !important;
}

body[data-page] .bottom-nav .nav-link:not(.nav-plus) svg {
  width: 25px !important;
  height: 25px !important;
  stroke-width: 2.2 !important;
}

body[data-page] .bottom-nav .nav-link:not(.nav-plus) span {
  font-size: 10px !important;
  font-weight: 800 !important;
}

body[data-page] .bottom-nav .nav-link:not(.nav-plus).active,
body[data-page] .bottom-nav .nav-link:not(.nav-plus).nav-tapped,
body[data-page="dashboard"] .bottom-nav .nav-link[data-nav="dashboard"],
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: #fff0e5 !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08) !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus {
  background: linear-gradient(145deg, #fb923c, #ea580c) !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3), inset 0 1px rgba(255, 255, 255, 0.34) !important;
}

body[data-page] .bottom-nav .nav-link.nav-plus span,
body[data-page] .bottom-nav .nav-link.nav-plus span::after {
  color: #ea580c !important;
  font-weight: 850 !important;
}

body[data-page="purchase"] .bottom-nav .nav-link.nav-plus {
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.36), 0 0 0 5px rgba(249, 115, 22, 0.1), inset 0 1px rgba(255, 255, 255, 0.36) !important;
}

/* Tabs switch immediately; tactile feedback is handled in firebase.js. */
body[data-page] .bottom-nav .nav-link,
body[data-page] .bottom-nav .nav-link:hover,
body[data-page] .bottom-nav .nav-link:focus-visible,
body[data-page] .bottom-nav .nav-link:active,
body[data-page] .bottom-nav .nav-link.active,
body[data-page] .bottom-nav .nav-link.nav-tapped,
body[data-page] .bottom-nav .nav-link svg,
body[data-page] .bottom-nav .nav-link:active svg,
body[data-page] .bottom-nav .nav-link.active svg,
body[data-page] .bottom-nav .nav-link.nav-tapped svg,
body[data-page] .bottom-nav .nav-link::after,
body[data-page] .bottom-nav .nav-link:active::after,
body[data-page] .bottom-nav .nav-link.nav-tapped::after {
  animation: none !important;
  transition: none !important;
}

body[data-page] .bottom-nav,
body[data-page] .bottom-nav *,
body[data-page] .bottom-nav *::before,
body[data-page] .bottom-nav *::after {
  animation: none !important;
  animation-delay: 0s !important;
  transition: none !important;
}

.page-skeleton,
.skeleton-line,
.skeleton-card,
.skeleton-grid,
.history-skeleton {
  display: none !important;
  animation: none !important;
  transition: none !important;
}
