/*
  Premium deposit page styling
  - animated gradient background
  - floating glass card
  - neon glow accents
  - ripple buttons + spinners
  - progress indicator
  - error/success states
*/

:root {
  --ts-bg0: #050816;
  --ts-bg1: #070b1a;
  --ts-glass: rgba(255, 255, 255, 0.06);
  --ts-glass-2: rgba(255, 255, 255, 0.09);
  --ts-border: rgba(255, 255, 255, 0.12);
  --ts-border-2: rgba(255, 255, 255, 0.18);

  --ts-text: rgba(255, 255, 255, 0.92);
  --ts-muted: rgba(255, 255, 255, 0.66);

  --ts-neon: #22c55e;
  --ts-neon2: #06b6d4;
  --ts-neon3: #a78bfa;
  --ts-warn: #fbbf24;
  --ts-danger: #fb7185;

  --ts-shadow: 0 22px 80px rgba(0, 0, 0, 0.6);
}

html,
body {
  background: #070b16 !important;
  background-color: #070b16 !important;
}

body.ts-deposit {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #050816 !important;
  background-color: #050816 !important;
  color: var(--ts-text, #e6edf3);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fixed/Sticky nav header */
body.ts-deposit>nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.95);
}

/* Form container margins */
body.ts-deposit>main {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* animated ambient layer */
.ts-ambient {
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 18% 25%, rgba(34, 197, 94, 0.08), rgba(7, 11, 22, 0) 58%),
    radial-gradient(closest-side at 90% 22%, rgba(6, 182, 212, 0.06), rgba(7, 11, 22, 0) 60%);
  filter: blur(60px);
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
  animation: tsAmbient 20s ease-in-out infinite;
}

@keyframes tsAmbient {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.00);
  }

  50% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }

  100% {
    transform: translate3d(-2%, -1%, 0) scale(1.00);
  }
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--ts-border);
  border-radius: 18px;
  box-shadow: var(--ts-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(6, 182, 212, 0.15));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.2;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.65);
}

.ts-card-head {
  margin-bottom: 14px;
}

.ts-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34, 197, 94, 0.85);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08) inset;
}

.muted {
  color: var(--ts-muted);
}

.input-field {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(8, 12, 26, 0.55);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  outline: none;
  font-size: 1rem;
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.input-field:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10),
    0 0 40px rgba(6, 182, 212, 0.10);
}

.input-field:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

select.input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2334d399' d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  min-height: 50px;
}

.ts-amount-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .ts-amount-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.ts-amount-preview {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(34, 197, 94, 0.04);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}

.ts-amount-preview::after {
  display: none;
}

@keyframes tsGlow {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }

  100% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
}

.ts-amount-main {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 24px rgba(34, 197, 94, 0.15);
}

.ts-amount-sub {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.btn-primary {
  padding: 0.78rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 1) 0%, rgba(6, 182, 212, 1) 100%);
  color: #061018;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 220ms ease;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 26px 88px rgba(34, 197, 94, 0.16);
}

.btn-primary:active {
  transform: translateY(0px) scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* button spinner + label */
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  border-top-color: rgba(0, 0, 0, 0.64);
  display: none;
  animation: tsSpin 0.85s linear infinite;
}

.ts-btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes tsSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ripple */
.ts-ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.35);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: tsRipple 650ms ease-out;
}

@keyframes tsRipple {
  0% {
    opacity: 0.0;
    transform: translate(-50%, -50%) scale(0.15);
  }

  10% {
    opacity: 1.0;
  }

  100% {
    opacity: 0.0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

/* stepper + progress */
.ts-stepper {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
}

.ts-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.ts-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 17, 23, 0.9) !important;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0);
  transition: all 220ms ease;
}

.ts-step.is-active .ts-step-dot,
.ts-step.is-done .ts-step-dot {
  background: rgba(34, 197, 94, 0.95);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.22);
}

.ts-step.is-done {
  color: rgba(255, 255, 255, 0.80);
}

.ts-step.is-active {
  color: rgba(34, 197, 94, 0.92);
}

.ts-progress {
  height: 8px;
  border-radius: 999px;
  margin-top: 12px;
  background: rgba(13, 17, 23, 0.9) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ts-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 1), rgba(6, 182, 212, 1));
  transition: width 320ms ease;
  position: relative;
}

.ts-progress.is-loading .ts-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 22, 0), rgba(255, 255, 255, 0.35), rgba(7, 11, 22, 0));
  transform: translateX(-100%);
  animation: tsShimmer 1.1s ease-in-out infinite;
}

@keyframes tsShimmer {
  to {
    transform: translateX(100%);
  }
}

/* banner states */
.ts-banner {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 26, 0.50);
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ts-banner.hidden {
  display: none;
}

.ts-banner::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.ts-banner.is-success {
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(34, 197, 94, 0.10);
}

.ts-banner.is-success::before {
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.22);
}

.ts-banner.is-error {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.10);
}

.ts-banner.is-error::before {
  background: rgba(251, 113, 133, 0.95);
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.22);
}

.ts-banner.is-info {
  border-color: rgba(6, 182, 212, 0.30);
  background: rgba(6, 182, 212, 0.10);
}

.ts-banner.is-info::before {
  background: rgba(6, 182, 212, 0.95);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.22);
}

/* upload */
.ts-upload {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 26, 0.35);
  padding: 14px;
}

.ts-upload-head {
  margin-bottom: 12px;
}

.ts-upload-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ts-upload-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}

.ts-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .ts-upload-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ts-dropzone {
  position: relative;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.20);
  background: rgba(8, 12, 26, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  min-height: 140px;
}

.ts-dropzone:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.06);
}

.ts-dropzone.is-dragover {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.07);
}

.ts-dropzone input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.ts-dropzone-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  pointer-events: none;
}

.ts-drop-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.06);
}

.ts-drop-title {
  font-weight: 800;
}

.ts-drop-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.ts-receipt-preview {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 12, 26, 0.35);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-height: 140px;
}

.ts-receipt-preview img {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
}

@media (max-width: 639px) {
  .ts-receipt-preview img {
    height: 220px;
  }
}

/* Mobile optimization for glass-card */
@media (max-width: 639px) {
  .glass-card.ts-card {
    padding: 0.875rem !important;
    margin: 0 !important;
    border-radius: 12px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .glass-card.ts-card .p-6 {
    padding: 0.875rem !important;
  }

  main.px-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  main.py-8 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .ts-card-head {
    margin-bottom: 0.5rem;
  }

  .ts-kicker {
    font-size: 9px;
    padding: 4px 7px;
  }

  .ts-stepper {
    gap: 0.35rem;
  }

  .ts-step-label {
    font-size: 0.6rem;
  }

  /* Reduce form element sizes */
  .ts-dropdown-trigger {
    min-height: 46px;
    padding: 0.6rem 0.8rem;
  }

  .mb-6 {
    margin-bottom: 1rem;
  }
}

.ts-receipt-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ts-receipt-filename {
  font-size: 12px;
  font-weight: 700;
}

.ts-receipt-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
}

/* keep existing history UI (with minor polish) */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .2rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.status-pending {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.status-success {
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-failed {
  background: rgba(248, 113, 113, 0.16);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* History Icon Button */
.history-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.history-icon-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.history-icon-btn svg {
  color: #10b981;
}

.history-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Address Modal Overlay */
.ts-address-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.ts-address-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ts-address-overlay.hidden {
  display: none;
}

.ts-address-modal {
  position: relative;
  background: #0d0d0d;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ts-address-overlay.active .ts-address-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.ts-address-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.9) !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 10;
  transition: background 0.2s ease;
}

.ts-address-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ts-address-content {
  padding: 1.5rem;
}

.network-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 400px) {
  .network-info-grid {
    grid-template-columns: 1fr;
  }
}

/* History Modal */
.history-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.history-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

#copyAddressBtn.btn-copied {
  background: rgba(52, 211, 153, 0.28);
  color: #ecfdf5;
  border-color: rgba(52, 211, 153, 0.6);
}

.history-modal {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.history-modal-overlay.active .history-modal {
  transform: translateX(0);
}

.history-modal-header {
  padding: 1rem;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.history-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.9) !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.history-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.history-modal-stats {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.history-stat-item {
  text-align: center;
}

.history-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #34d399;
}

.history-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* new deposit page enhancements */
.deposit-header {
  text-align: center;
  color: #fff;
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(34, 197, 153, 0.04) 100%);
  border-radius: 1.5rem;
  margin-bottom: 2rem;
}

.card-header {
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.2), rgba(34, 197, 153, 0.1));
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 1.5rem;
}

.deposit-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deposit-header>p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.step.active {
  color: #34d399;
}

.step .icon {
  font-size: 1rem;
  font-weight: bold;
}

.amount-display {
  font-size: 3.5rem;
  font-weight: 900;
  color: #34d399;
  margin-top: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(52, 211, 153, 0.2);
}

.instructions {
  background: linear-gradient(135deg, rgba(20, 184, 184, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  padding: 1.25rem;
  border-radius: 1rem;
  color: #e6eef8;
  border: 1px solid rgba(52, 211, 153, 0.15);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instructions li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.instructions li:last-child {
  margin-bottom: 0;
}

.instructions strong {
  color: #34d399;
  min-width: 1.5rem;
}

.upload-area {
  position: relative;
  border: 2px dashed rgba(52, 211, 153, 0.4);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(174, 188, 202, 0.8);
  background: rgba(14, 165, 233, 0.02);
}

.upload-area:hover {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.6);
  transform: translateY(-2px);
}

.upload-area.dragover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.8);
}

.upload-area input[type=file] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-text {
  pointer-events: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.history-item {
  background: #1a1a1a;
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.history-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.history-item-coin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-item-coin-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
}

.history-item-amount {
  font-weight: 700;
  font-size: 1.1rem;
}

.history-item-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.history-detail-row {
  display: flex;
  flex-direction: column;
}

.history-detail-row.full {
  grid-column: span 2;
}

.history-detail-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.history-detail-value {
  color: #e6eef8;
  word-break: break-all;
}

.history-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.history-empty-state svg {
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.inline-style-6593306916 {
  min-height: 100svh;
  min-height: -webkit-fill-available;
}

.ts-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
}

.ts-qr-wrapper {
  background: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ts-qr-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.inline-style-532afab31c {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.18);
  padding: 1.25rem;
}

.ts-address-content .flex.items-center.gap-2.mb-3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-address-content .mb-3 {
  margin-bottom: 1rem;
}

.ts-address-content .bg-black\/30 {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.15);
  padding: 0.875rem 1rem;
}

.ts-address-content code#walletAddress {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.5;
}

.network-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.network-info-grid>div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-address-content .text-xs.muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.6;
}

.ts-address-content .text-xs.muted+.text-xs.muted {
  margin-top: 0.35rem;
}

.ts-address-content #networkDisplay,
.ts-address-content #minDepositDisplay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.ts-address-content #networkDisplay span,
.ts-address-content #minDepositDisplay span {
  font-weight: 600;
  color: #5eead4;
}

.inline-style-67a4555005 {
  background: rgba(34, 197, 94, 0.14);
  color: rgba(34, 197, 94, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.inline-style-fac97c8f85 {
  background: rgba(251, 191, 36, 0.16);
  color: rgba(251, 191, 36, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.inline-style-b2f49663cb {
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .ts-ambient {
    animation: none;
  }

  .glass-card:hover {
    transform: none;
  }

  .ts-amount-preview::after {
    animation: none;
  }
}

/* Receipt action buttons */
.receipt-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.receipt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.receipt-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.receipt-view-btn {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.receipt-view-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

.receipt-delete-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.receipt-delete-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.35);
}

.receipt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Custom Crypto Dropdown with Icons ===== */
.ts-dropdown {
  position: relative;
  width: 100%;
}

.ts-dropdown-trigger {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(8, 12, 26, 0.55);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  outline: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.ts-dropdown-trigger:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.ts-dropdown-trigger:focus,
.ts-dropdown.is-open .ts-dropdown-trigger {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10),
    0 0 40px rgba(6, 182, 212, 0.10);
}

.ts-dropdown-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  overflow: hidden;
}

.ts-dropdown-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ts-dropdown-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.ts-dropdown-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-dropdown-label .coin-symbol {
  font-weight: 600;
  color: #fff;
}

.ts-dropdown-label .coin-name {
  font-size: 0.85rem;
  color: var(--ts-muted);
  margin-left: 6px;
}

.ts-dropdown-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ts-neon);
  transition: transform 200ms ease;
}

.ts-dropdown.is-open .ts-dropdown-arrow,
.ts-dropdown.open .ts-dropdown-arrow {
  transform: rotate(180deg);
}

.ts-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(12, 18, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ts-dropdown.is-open .ts-dropdown-menu,
.ts-dropdown.open .ts-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ts-dropdown-search {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(12, 18, 30, 0.98);
  z-index: 2;
}

.ts-dropdown-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.ts-dropdown-search input::placeholder {
  color: var(--ts-muted);
}

.ts-dropdown-search input:focus {
  border-color: rgba(34, 197, 94, 0.4);
}

.ts-dropdown-list {
  padding: 6px;
}

.ts-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 150ms ease;
}

.ts-dropdown-item:hover {
  background: rgba(34, 197, 94, 0.08);
}

.ts-dropdown-item.is-selected {
  background: rgba(34, 197, 94, 0.12);
}

.ts-dropdown-item.selected {
  background: rgba(34, 197, 94, 0.12);
}

.ts-dropdown-item.is-selected::after,
.ts-dropdown-item.selected::after {
  content: "✓";
  margin-left: auto;
  color: var(--ts-neon);
  font-weight: 600;
}

.ts-dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  overflow: hidden;
}

.ts-dropdown-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-dropdown-item-label {
  flex: 1;
  min-width: 0;
}

.ts-dropdown-item-label .symbol {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.ts-dropdown-item-label .name {
  font-size: 0.8rem;
  color: var(--ts-muted);
}

.ts-dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--ts-muted);
  font-size: 0.9rem;
}

/* Dropdown item text and badge */
.ts-dropdown-text {
  flex: 1;
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-dropdown-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ts-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Network abbreviation in icon */
.net-abbr {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Coin icons - use transparent background for SVG display */
.ts-dropdown-icon[class*="coin-icon-"] {
  background: transparent !important;
}

/* Network icon colors */
.net-icon-trc20 {
  background: linear-gradient(135deg, #ff0013, #b3000d) !important;
}

.net-icon-erc20 {
  background: linear-gradient(135deg, #627eea, #3c3c3d) !important;
}

.net-icon-bep20 {
  background: linear-gradient(135deg, #f3ba2f, #c99a00) !important;
}

.net-icon-polygon {
  background: linear-gradient(135deg, #8247e5, #5b2fb0) !important;
}

.net-icon-solana {
  background: linear-gradient(135deg, #9945ff, #14f195) !important;
}

.net-icon-arbitrum {
  background: linear-gradient(135deg, #28a0f0, #1a6fb0) !important;
}

.net-icon-optimism {
  background: linear-gradient(135deg, #ff0420, #b3031a) !important;
}

.net-icon-avalanche {
  background: linear-gradient(135deg, #e84142, #b33131) !important;
}

.net-icon-bitcoin {
  background: linear-gradient(135deg, #f7931a, #c77800) !important;
}

.net-icon-xrp {
  background: linear-gradient(135deg, #23292f, #000) !important;
}

.net-icon-cardano {
  background: linear-gradient(135deg, #0033ad, #001a5c) !important;
}

.net-icon-dogecoin {
  background: linear-gradient(135deg, #c2a633, #8c7826) !important;
}

.net-icon-tron {
  background: linear-gradient(135deg, #ff0013, #b3000d) !important;
}

.net-icon-litecoin {
  background: linear-gradient(135deg, #bfbbbb, #838383) !important;
}

.net-icon-bch {
  background: linear-gradient(135deg, #8dc351, #6a9a3d) !important;
}

.net-icon-ton {
  background: linear-gradient(135deg, #0098ea, #006fab) !important;
}

.net-icon-stellar {
  background: linear-gradient(135deg, #08b5e5, #0693b8) !important;
}

.net-icon-cosmos {
  background: linear-gradient(135deg, #2e3148, #1c1e2e) !important;
}

.net-icon-algorand {
  background: linear-gradient(135deg, #000000, #333333) !important;
}

.net-icon-filecoin {
  background: linear-gradient(135deg, #0090ff, #0068b8) !important;
}

.net-icon-near {
  background: linear-gradient(135deg, #000000, #333) !important;
}

.net-icon-vechain {
  background: linear-gradient(135deg, #15bdff, #0a8fc2) !important;
}

.net-icon-icp {
  background: linear-gradient(135deg, #29abe2, #ed1e79) !important;
}

.net-icon-aptos {
  background: linear-gradient(135deg, #000000, #333) !important;
}

.net-icon-polkadot {
  background: linear-gradient(135deg, #e6007a, #a30057) !important;
}

.net-icon-bnb {
  background: linear-gradient(135deg, #f3ba2f, #c99a00) !important;
}