/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 48px;
  color: var(--bg);
  background: var(--primary);
  letter-spacing: 0.01em;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.98); }
.btn-secondary { background: var(--surface-solid); color: var(--text); border: 1px solid var(--glass-border); }
.btn-success { background: var(--success); color: var(--bg); }
.btn-error { background: var(--error); color: var(--bg); }
.btn-outline {
  background: rgba(37, 192, 244, 0.05);
  border: 1px solid rgba(37, 192, 244, 0.3);
  color: var(--primary);
}
.btn-ghost { background: none; color: var(--primary); padding: 8px 16px; }
.btn-icon {
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: background 0.15s;
}
.btn-icon:hover { background: rgba(37, 192, 244, 0.1); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ===== INPUTS ===== */
.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
  min-height: 56px;
}
.input:focus { border-color: var(--primary); }
.input::placeholder { color: var(--text-secondary); }
select.input {
  appearance: none;
  cursor: pointer;
}

/* ===== CARDS ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-solid {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px;
}

/* ===== AMOUNT DISPLAY ===== */
.amount-display { padding: 24px 0; }
.amount-main { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.amount-sub { font-size: 1rem; margin-top: 4px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-pending { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.badge-confirmed { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.badge-failed { background: rgba(251, 113, 133, 0.15); color: var(--error); }
.badge-expired { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

/* ===== LOADER ===== */
.loader { display: flex; justify-content: center; padding: 32px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ===== TOASTS ===== */
.toast-container {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-info { background: var(--surface-solid); color: var(--text); border: 1px solid var(--glass-border); }
.toast-success { background: var(--success); color: var(--bg); }
.toast-error { background: var(--error); color: var(--bg); }

/* ===== OFFLINE BANNER ===== */
.offline-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--error);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 400;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.offline-banner.show { transform: translateY(0); }

/* ===== LIST ITEMS ===== */
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--primary);
}

/* ===== SEED PHRASE GRID ===== */
.seed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.seed-word {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seed-num {
  color: var(--text-secondary);
  font-size: 0.75rem;
  min-width: 18px;
}

/* ===== PIN ENTRY ===== */
.pin-dots {
  display: flex;
  gap: 12px;
  padding: 16px 0;
}
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  transition: background 0.15s, border-color 0.15s;
}
.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== NUMPAD ===== */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 280px;
  width: 100%;
}
.numpad-key {
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 1.5rem;
  font-family: var(--font);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  transition: background 0.1s;
}
.numpad-key:active { background: var(--primary); color: var(--bg); }
.numpad-key:disabled { opacity: 0; cursor: default; }

/* ===== ACTIVITY SECTION ===== */
.activity-section {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 16px;
  padding: 32px 24px 100px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== QR SCANNER ===== */
.scanner-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border: 2px solid rgba(37, 192, 244, 0.4);
  border-radius: var(--radius-xl);
}
.scanner-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
}
.scanner-corner.tl { top: -2px; left: -2px; border-top-width: 4px; border-left-width: 4px; border-radius: 8px 0 0 0; }
.scanner-corner.tr { top: -2px; right: -2px; border-top-width: 4px; border-right-width: 4px; border-radius: 0 8px 0 0; }
.scanner-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 4px; border-left-width: 4px; border-radius: 0 0 0 8px; }
.scanner-corner.br { bottom: -2px; right: -2px; border-bottom-width: 4px; border-right-width: 4px; border-radius: 0 0 8px 0; }

/* ===== AVATAR ===== */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

/* ===== SUCCESS SCREEN ===== */
.success-icon {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(37, 192, 244, 0.2);
  filter: blur(48px);
  border-radius: 50%;
}
.success-icon .inner {
  position: relative;
  width: 128px;
  height: 128px;
  background: rgba(37, 192, 244, 0.1);
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon .material-symbols-outlined {
  font-size: 64px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1, 'wght' 700;
}
