﻿/* ============================================================
   BNB Smart Chain - Transfer Interface (bsccoin.online style)
   Ultra-fast, lightweight mobile-first styling
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --text-main: #111827;
  --text-label: #4A4A4A;
  --text-muted: #6B7280;
  --text-sub: #9CA3AF;
  --border-card: #ECECEC;
  --bg-chip: #F3F3F5;
  --blue-brand: #214DD2;
  --btn-next: #9EA3FF;
  --btn-next-hover: #8C92FF;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100%;
  width: 100%;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  justify-content: center;
}

.send-page-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.send-main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.send-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.send-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

/* Rounded Input Cards */
.send-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: #FFFFFF;
  padding: 13px 15px;
  min-height: 56px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.send-card:focus-within {
  border-color: #CBD5E1;
}

.send-card-address {
  gap: 10px;
}

.send-address-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Clear (X) Button */
.send-clear-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #55555C;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.send-clear-btn:hover {
  opacity: 0.85;
}

.send-clear-btn:active {
  transform: scale(0.92);
}

/* Paste Button */
.send-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-brand);
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
  font-family: inherit;
}

.send-paste-btn:active {
  opacity: 0.7;
}

/* QR Code Scan Button */
.send-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: var(--blue-brand);
  flex-shrink: 0;
}

.send-scan-btn:active {
  opacity: 0.7;
}

/* Network Chip */
.send-network-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-chip);
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: #1F2937;
  width: fit-content;
  border: none;
  cursor: pointer;
}

/* Amount Input */
.send-card-amount {
  justify-content: space-between;
  padding: 13px 18px;
}

.send-amount-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
  font-family: inherit;
}

.send-amount-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.send-currency-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.send-max-btn {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
}

.send-max-btn:active {
  opacity: 0.7;
}

.send-approx-usd {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-top: 8px;
  padding-left: 4px;
  font-weight: 400;
}

/* Connected Wallet Card */
.send-wallet-info {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.wallet-info--hidden {
  display: none !important;
}

.wallet-col {
  display: flex;
  flex-direction: column;
}

.wallet-sub {
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.wallet-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

/* Status Notifications */
.status-card-light {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.status-card-light.status-msg--error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.status-card-light.status-msg--warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.status-card-light.status-msg--success {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

/* Action Button Wrapper */
.send-action-wrapper {
  margin-top: 40px;
  width: 100%;
}

/* Default Muted State (when amount < 0.1) */
.send-next-btn {
  width: 100%;
  height: 54px;
  border-radius: 9999px;
  background-color: #A5AFFF;
  opacity: 0.62;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  font-family: inherit;
  box-shadow: none;
}

/* Bright & Vibrant State (when amount >= 0.1) */
.send-next-btn.btn-bright {
  background: linear-gradient(135deg, #445CFF 0%, #293FFF 100%);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(45, 68, 255, 0.45);
  transform: translateY(-1px);
}

.send-next-btn.btn-bright:hover {
  background: linear-gradient(135deg, #3750FF 0%, #1D33FF 100%);
  box-shadow: 0 10px 28px rgba(45, 68, 255, 0.58);
}

.send-next-btn.btn-bright:active {
  transform: scale(0.985);
}

.send-next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error highlight on amount card if clicked below 0.1 */
.send-card-error {
  border-color: #EF4444 !important;
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}

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

/* Media Queries for Small Screens */
@media (max-width: 360px) {
  .send-page-container {
    padding: 18px 14px 24px;
  }
  .send-card {
    padding: 11px 12px;
  }
}