/* V84 — Deposit overlay (Online + Crypto) */

html.v84-deposit .Recharge__container {
  position: relative !important;
  min-height: 100vh !important;
  background: #0F0F14 !important;
  overflow: visible !important;
}

html.v84-deposit .Recharge__container > *:not(#v84-deposit-root) {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#v84-deposit-root {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
  background: #0F0F14;
  color: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#v84-deposit-root *,
#v84-deposit-root *::before,
#v84-deposit-root *::after {
  box-sizing: border-box;
}

.v84-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #1D1D26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 5;
}

.v84-hd-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.v84-hd-history svg {
  width: 28px;
  height: 28px;
  display: block;
}

.v84-hd-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.v84-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px 8px;
  font-size: 14px;
  color: #e5e7eb;
}

.v84-balance button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.v84-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 14px 10px;
}

.v84-tab {
  height: 42px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #2A2A34;
  color: #9ca3af;
}

.v84-tab.active {
  background: linear-gradient(90deg, #A37AF0 0%, #B18BF9 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(163, 122, 240, 0.28);
}

.v84-section {
  padding: 12px 14px 6px;
}

.v84-step-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.v84-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, #A37AF0 0%, #B18BF9 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v84-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.v84-step-meta {
  margin-left: auto;
  font-size: 12px;
  color: #B18BF9;
  white-space: nowrap;
  font-weight: 600;
}

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

.v84-method-card,
.v84-channel-card {
  position: relative;
  background: #1D1D26;
  border: 1.5px solid transparent;
  border-radius: 14px;
  min-height: 92px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.v84-channel-card {
  min-height: 48px;
  font-size: 13px;
  border-radius: 12px;
}

.v84-method-card.selected,
.v84-channel-card.selected {
  border-color: rgba(163, 122, 240, 0.85);
  box-shadow: 0 2px 12px rgba(163, 122, 240, 0.18);
}

.v84-check {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent #A37AF0 transparent;
  display: none;
  border-bottom-right-radius: 12px;
}

.v84-check::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -18px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.v84-method-card.selected .v84-check,
.v84-channel-card.selected .v84-check {
  display: block;
}

.v84-fee {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #f5d76e;
  color: #1f2937;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  z-index: 2;
}

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

.v84-usdt-note {
  margin-top: 10px;
  color: #ef4444;
  font-size: 12px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.v84-usdt-card {
  min-height: 92px;
  padding: 14px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.v84-usdt-card .v84-ico-usdt {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.v84-amount-wrap {
  display: flex;
  align-items: center;
  background: #1D1D26;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 8px 0 12px;
  height: 50px;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.v84-amount-wrap .rupee {
  color: #9ca3af;
  font-weight: 700;
  font-size: 15px;
}

.v84-amount-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  height: 100%;
  -moz-appearance: textfield;
}

.v84-amount-wrap input::-webkit-outer-spin-button,
.v84-amount-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.v84-steppers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.v84-steppers button {
  width: 22px;
  height: 16px;
  border: none;
  border-radius: 4px;
  background: #2A2A34;
  color: #B18BF9;
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v84-range {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 4px;
}

.v84-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.v84-chip {
  position: relative;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #1D1D26;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.v84-chip.selected {
  border-color: rgba(163, 122, 240, 0.85);
  color: #fff;
}

.v84-chip .pct {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
}

.v84-crypto-calc {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #d1d5db;
}

.v84-crypto-calc .row {
  display: flex;
  justify-content: space-between;
}

.v84-crypto-calc .val {
  color: #A37AF0;
  font-weight: 700;
}

.v84-rules {
  margin: 14px 14px 8px;
  background: #1D1D26;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.v84-rules h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #fff;
}

.v84-rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v84-rules li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #9ca3af;
}

.v84-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A37AF0;
}

/* Sticky bar — docked inside root scroll, never clipped by overflow:hidden ancestors */
.v84-sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  max-width: 480px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 15, 20, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.v84-sticky .method-label {
  flex: 1;
  font-size: 12px;
  color: #9ca3af;
  min-width: 0;
}

.v84-sticky .method-label strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v84-btn {
  border: none;
  border-radius: 12px;
  height: 46px;
  min-width: 120px;
  padding: 0 22px;
  background: linear-gradient(90deg, #A37AF0 0%, #B18BF9 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(163, 122, 240, 0.28);
  flex-shrink: 0;
}

.v84-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: #2A2A34;
}

.v84-crypto-foot {
  padding: 8px 14px 12px;
  text-align: center;
}

.v84-crypto-foot p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #d1d5db;
}

.v84-crypto-foot .v84-btn {
  width: 100%;
  min-width: 0;
}

.v84-ico {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 auto;
}

.v84-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 6px 14px 0;
}

@media (max-width: 360px) {
  .v84-chips {
    grid-template-columns: repeat(4, 1fr);
  }
}
