/* Crypto deposit page */
.dep-page {
  padding: 24px 20px 80px !important;
  background:
    radial-gradient(90% 60% at 10% -10%, rgba(38, 161, 123, 0.18), transparent 50%),
    radial-gradient(70% 50% at 100% 0%, rgba(20, 117, 225, 0.16), transparent 45%),
    var(--stake-bg-body, #0f212e);
}
.dep-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.dep-hero {
  margin-bottom: 20px;
}
.dep-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dff9a;
}
.dep-hero h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.dep-sub {
  margin: 0;
  color: #9fbed0;
  font-size: 14px;
}

/* First-deposit bonus strip */
.dep-bonus-panel {
  border-color: rgba(0, 231, 1, 0.35);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 231, 1, 0.12), transparent 55%),
    linear-gradient(165deg, #1a2e39 0%, #132430 100%);
}
.dep-bonus-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.dep-bonus-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #00e701, #1475e1);
  color: #04140a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px rgba(0, 231, 1, 0.25);
}
.dep-bonus-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.dep-bonus-sub {
  margin: 0;
  font-size: 13px;
  color: #9fbed0;
  line-height: 1.4;
}
.dep-bonus-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.dep-bonus-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid #2f4553;
  background: #0f212e;
  color: #f7fafc;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dep-bonus-pack:hover { border-color: #557086; transform: translateY(-1px); }
.dep-bonus-pack.featured {
  border-color: rgba(0, 231, 1, 0.45);
  background: linear-gradient(160deg, rgba(0, 231, 1, 0.1), #0f212e 70%);
}
.dep-bonus-pack.active {
  border-color: #00e701;
  box-shadow: 0 0 0 1px #00e701, 0 10px 28px rgba(0, 231, 1, 0.18);
}
.dep-bonus-pack-dep {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.dep-bonus-pack-plus {
  font-size: 12px;
  color: #7a8fa3;
  font-weight: 700;
}
.dep-bonus-pack-bonus {
  font-size: 14px;
  font-weight: 800;
  color: #00e701;
}
.dep-bonus-active {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 231, 1, 0.1);
  border: 1px solid rgba(0, 231, 1, 0.35);
}
.dep-bonus-active[hidden] { display: none !important; }
.dep-bonus-active strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.dep-bonus-active span {
  color: #ffd27a;
  font-size: 12px;
  font-weight: 700;
}
.dep-bonus-hint {
  margin: 0;
  font-size: 12px;
  color: #7a8fa3;
}

.dep-panel {
  background: linear-gradient(165deg, #1a2e39 0%, #132430 100%);
  border: 1px solid #2f4553;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.dep-guest {
  text-align: center;
  padding: 36px 20px;
}
.dep-guest h2 { margin: 0 0 8px; color: #fff; }
.dep-guest p { margin: 0 0 18px; color: #9fbed0; }
.dep-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #b1bad3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dep-nets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.dep-net {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #2f4553;
  background: #0f212e;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: #f7fafc;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.dep-net:hover { border-color: #557086; transform: translateY(-1px); }
.dep-net.active {
  border-color: var(--net-color, #1475e1);
  box-shadow: 0 0 0 1px var(--net-color, #1475e1), 0 8px 24px rgba(0, 0, 0, 0.25);
  background: linear-gradient(160deg, color-mix(in srgb, var(--net-color, #1475e1) 18%, #0f212e), #0f212e 70%);
}
.dep-net-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #0a1922;
  object-fit: contain;
}
.dep-net-text { min-width: 0; }
.dep-net-asset {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.dep-net-label {
  margin-top: 2px;
  font-size: 11px;
  color: #9fbed0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dep-exact-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  object-fit: contain;
}
#dep-exact {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.dep-amount-row { margin-bottom: 10px; }
.dep-amount-input {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #2f4553;
  background: #0f212e;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  padding: 0 16px;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.dep-amount-input:focus { border-color: #1475e1; }
.dep-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.dep-preset {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #2f4553;
  background: transparent;
  color: #b1bad3;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dep-preset:hover { border-color: #1475e1; color: #fff; }
.dep-preset--bonus {
  height: auto;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  flex-direction: column;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-color: rgba(0, 231, 1, 0.4);
  color: #fff;
  background: rgba(0, 231, 1, 0.08);
}
.dep-preset--bonus small {
  font-size: 10px;
  font-weight: 800;
  color: #00e701;
}
.dep-hint { margin: 8px 0 14px; font-size: 12px; color: #7a8fa3; }
.dep-error {
  margin: 10px 0 0;
  color: #fc574a;
  font-size: 13px;
}
.dep-btn {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
}
.dep-btn:active { transform: scale(0.98); }
.dep-btn.primary {
  width: 100%;
  background: linear-gradient(135deg, #1475e1, #0d5bb8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 117, 225, 0.35);
}
.dep-btn.primary:hover { filter: brightness(1.06); }
.dep-btn.ghost {
  background: #2f4553;
  color: #f7fafc;
}
.dep-btn.sm { height: 34px; padding: 0 12px; font-size: 12px; width: auto; }

.dep-pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dep-pay-status {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.dep-pay-status.ok { color: #00e701; }
.dep-pay-status.wait { color: #ffd27a; }
.dep-pay-status.bad { color: #fc574a; }
.dep-pay-timer { margin-top: 4px; font-size: 12px; color: #9fbed0; }
.dep-pay-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  margin-bottom: 16px;
  align-items: start;
}
.dep-qr-box {
  width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #0f212e;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #2f4553;
  justify-self: start;
  flex-shrink: 0;
}
.dep-qr-frame {
  width: 172px;
  height: 172px;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dep-qr-frame img,
.dep-qr-frame canvas,
.dep-qr-frame table {
  display: block;
  width: 156px !important;
  height: 156px !important;
  max-width: 156px;
  max-height: 156px;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.dep-qr-frame table {
  border-collapse: collapse;
  border-spacing: 0;
}
.dep-qr-box p { margin: 10px 0 0; font-size: 11px; color: #7a8fa3; }
.dep-pay-fields label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: #9fbed0;
  font-weight: 600;
}
.dep-important {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dep-important label { margin: 0; }
.dep-important-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(252, 87, 74, 0.25), rgba(255, 176, 32, 0.22));
  border: 1px solid rgba(255, 176, 32, 0.55);
  color: #ffd27a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dep-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f212e;
  border: 1px solid #2f4553;
  border-radius: 10px;
  padding: 10px 10px 10px 12px;
  margin-bottom: 12px;
  min-width: 0;
}
.dep-copy-row.accent {
  border-color: rgba(0, 231, 1, 0.45);
  background: linear-gradient(135deg, rgba(0, 231, 1, 0.12), #0f212e 60%);
}
.dep-copy-row strong,
.dep-copy-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}
.dep-copy-row.accent strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #00e701;
  letter-spacing: -0.02em;
}
.dep-copy {
  flex-shrink: 0;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #2f4553;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dep-warn {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #ffd27a;
}
.dep-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.dep-claim-wait {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 210, 122, 0.08);
  border: 1px dashed rgba(255, 210, 122, 0.35);
  color: #ffd27a;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
#dep-claim[hidden],
#dep-claim-wait[hidden] { display: none !important; }
.dep-history { display: flex; flex-direction: column; gap: 8px; }
.dep-empty { margin: 0; color: #7a8fa3; font-size: 13px; }
.dep-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px;
  border-radius: 10px;
  background: #0f212e;
  border: 1px solid #2f4553;
}
.dep-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / -1;
}
.dep-item-net { font-weight: 700; color: #fff; font-size: 13px; }
.dep-item-amt { font-weight: 800; color: #00e701; font-variant-numeric: tabular-nums; }
.dep-item-meta { font-size: 11px; color: #7a8fa3; grid-column: 1 / -1; }
.dep-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.dep-badge.pending, .dep-badge.confirming { background: rgba(255,210,122,0.15); color: #ffd27a; }
.dep-badge.awaiting_review { background: rgba(20,117,225,0.2); color: #7eb6f5; }
.dep-badge.credited { background: rgba(0,231,1,0.15); color: #00e701; }
.dep-badge.expired, .dep-badge.rejected { background: rgba(252,87,74,0.15); color: #fc574a; }

@media (max-width: 720px) {
  .dep-page { padding: 12px 10px calc(88px + env(safe-area-inset-bottom, 0)) !important; }
  .dep-hero { margin-bottom: 12px; }
  .dep-hero h1 { font-size: 24px; }
  .dep-sub { font-size: 13px; }
  .dep-panel { padding: 14px 12px; border-radius: 12px; margin-bottom: 10px; }
  .dep-bonus-head { gap: 10px; margin-bottom: 10px; }
  .dep-bonus-badge { min-width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
  .dep-bonus-title { font-size: 15px; }
  .dep-bonus-sub { font-size: 12px; }
  .dep-bonus-packs { gap: 6px; }
  .dep-bonus-pack {
    min-height: 68px;
    padding: 8px 4px;
    border-radius: 10px;
  }
  .dep-bonus-pack-dep { font-size: 16px; }
  .dep-bonus-pack-bonus { font-size: 12px; }
  .dep-bonus-active { padding: 10px; }
  .dep-bonus-active strong { font-size: 13px; }
  .dep-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .dep-net { padding: 10px; min-height: 52px; }
  .dep-amount-input {
    height: 56px;
    font-size: 22px;
    border-radius: 12px;
  }
  .dep-presets { gap: 8px; }
  .dep-preset,
  .dep-preset--bonus {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .dep-btn {
    min-height: 48px;
    font-size: 15px;
  }
  .dep-pay-grid { grid-template-columns: 1fr; justify-items: stretch; }
  .dep-qr-box {
    justify-self: center;
    width: min(200px, 70vw);
  }
  .dep-actions { grid-template-columns: 1fr; }
  .dep-copy-row.accent strong { font-size: 18px; }
  .dep-copy-row {
    flex-wrap: wrap;
  }
  .dep-copy {
    width: 100%;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .dep-bonus-pack-dep { font-size: 14px; }
  .dep-bonus-pack-bonus { font-size: 11px; }
  .dep-hero h1 { font-size: 22px; }
}
