/* Deposits Page */
.deposits-page {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 3rem 1rem;
}

.deposits-header {
  max-width: 800px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.deposits-header-content {
  flex: 1;
}

.deposits-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.deposits-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
}

.deposits-summary {
  display: flex;
  gap: 1.5rem;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 100px;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
}

.summary-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.deposits-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deposit-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.deposit-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.deposit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.deposit-amount-section {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.deposit-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #22c55e;
}

.deposit-currency {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 500;
}

.deposit-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.deposit-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

.deposit-status.confirmed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.deposit-status.confirmed .status-dot {
  animation: none;
}

.deposit-status.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.deposit-status.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.deposit-status.failed .status-dot {
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.deposit-blockchain-info {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.blockchain-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.blockchain-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blockchain-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 40px;
}

.blockchain-value-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.blockchain-address {
  font-family: 'SF Mono', 'Fira Code', 'Monaco', monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blockchain-address.tx-signature {
  color: #a78bfa;
}

.explorer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.explorer-link:hover {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.deposit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-date,
.deposit-network {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.deposit-network {
  color: #9945ff;
}

.deposit-network svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Empty State */
.empty-deposits {
  max-width: 400px;
  margin: 4rem auto 0;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.empty-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  color: #22c55e;
}

.empty-deposits h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.empty-deposits p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Deposit Form Section */
.deposit-form-section {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.deposit-form-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.deposit-form-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.5rem;
}

.deposit-form-title svg {
  color: #22c55e;
}

/* Wallet Section */
.wallet-section {
  margin-bottom: 1.5rem;
}

.connect-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.connect-wallet-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(153, 69, 255, 0.3);
}

.connect-wallet-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wallet-connected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wallet-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.wallet-address-display {
  font-family: 'SF Mono', 'Fira Code', 'Monaco', monospace;
  font-size: 0.875rem;
  color: #14f195;
  background: rgba(20, 241, 149, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 241, 149, 0.2);
}

.disconnect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Deposit Form */
.deposit-form {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.deposit-form .form-group {
  margin-bottom: 1.5rem;
}

.deposit-form label {
  display: block;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-suffix input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.input-with-suffix input:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.input-with-suffix input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-with-suffix input::placeholder {
  color: #64748b;
}

.input-suffix {
  position: absolute;
  right: 1rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: none;
}

.form-hint {
  color: #64748b;
  font-size: 0.75rem;
  margin: 0.5rem 0 0;
}

.deposit-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deposit-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.deposit-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status and Error Messages */
.deposit-status,
.deposit-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.deposit-status {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.deposit-status .status-spinner {
  animation: spin 1s linear infinite;
}

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

.deposit-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Responsive styles */
@media (max-width: 768px) {
  .deposits-page {
    padding: 2rem 1rem;
  }

  .deposits-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .deposits-header-content {
    width: 100%;
  }

  .deposits-summary {
    width: 100%;
    justify-content: center;
  }

  .deposits-title {
    font-size: 1.5rem;
  }

  .deposit-card {
    padding: 1.25rem;
  }

  .deposit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .deposit-amount {
    font-size: 1.5rem;
  }

  .blockchain-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blockchain-value-wrapper {
    width: 100%;
  }

  .blockchain-address {
    font-size: 0.75rem;
    flex: 1;
  }

  .deposit-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .empty-deposits {
    margin: 2rem auto 0;
    padding: 2rem 1rem;
  }

  /* Deposit Form Responsive */
  .deposit-form-card {
    padding: 1.5rem;
  }

  .deposit-form-title {
    font-size: 1.125rem;
  }

  .wallet-connected {
    flex-direction: column;
    align-items: flex-start;
  }

  .connect-wallet-btn {
    width: 100%;
    justify-content: center;
  }

  .deposit-submit-btn {
    padding: 0.875rem 1rem;
  }
}
