:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-hover: #141414;
  --border: #222222;
  --border-focus: #444444;
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-faint: #737373;
  --primary: #ffffff;
  --primary-hover: #e5e5e5;
  --primary-text: #000000;
  --success: #ffffff;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  background: #141414;
  border: 1px solid #282828;
  color: #cccccc;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
}

.amount-display {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.chain-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  color: var(--text-main);
  font-weight: 600;
}

.detail-value.mono {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #e5e5e5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.button-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #111111;
  color: #ffffff;
  border: 1px solid #282828;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-top: 10px;
}

.button-secondary:hover {
  background: #1c1c1c;
  border-color: #444444;
}

.detected-wallet-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: #a3a3a3;
  background: #111111;
  border: 1px solid #222222;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: 100%;
}

.mobile-wallet-options {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-button {
  display: inline-block;
  background: #181818;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.15s ease;
}

.link-button:hover {
  background: #252525;
}

.status-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  min-height: 18px;
  font-family: 'DM Mono', monospace;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

/* State Containers */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

.state-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.state-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.success-circle {
  background: #181818;
  border: 1px solid #333333;
  color: #ffffff;
}

.error-circle {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
  display: none !important;
}

.welcome-box {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.cmd-tag {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: #ffffff;
  background: #141414;
  border: 1px solid #282828;
  padding: 2px 8px;
  border-radius: 4px;
}

.cmd-desc {
  color: var(--text-muted);
}
