* {
  margin: 0; padding: 0; box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  color: #e8eaed; min-height: 100vh; padding-bottom: 80px;
}
#app { max-width: 600px; margin: 0 auto; }
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 20, 25, 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.balance-top { font-size: 18px; font-weight: 600; color: #10b981; }
.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 24px; padding: 32px 24px; margin: 20px; text-align: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}
.hero-sum { font-size: 48px; font-weight: 700; margin: 12px 0; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.hero .muted { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 20px 20px; }
.action-btn {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; padding: 20px 12px; text-align: center; cursor: pointer;
  transition: all 0.2s; color: #e8eaed; font-size: 13px; font-weight: 500;
}
.action-btn:hover {
  background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); transform: translateY(-2px);
}
.action-icon {
  width: 40px; height: 40px; margin: 0 auto 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 24px; margin: 0 20px 20px;
}
.card h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; color: #f9fafb; }
.list { list-style: none; }
.list li {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.list li:last-child { border-bottom: none; }
.coin-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.coin-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.muted { color: #9ca3af; font-size: 13px; }
.btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: #fff;
  border: none; border-radius: 12px; padding: 14px 24px; font-size: 15px; font-weight: 600;
  cursor: pointer; width: 100%; transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
input, select, textarea {
  width: 100%; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
  padding: 14px 16px; color: #e8eaed; font-size: 15px; margin-top: 8px; transition: all 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #3b82f6; background: rgba(59, 130, 246, 0.08);
}
label { display: block; font-weight: 500; margin-top: 16px; color: #d1d5db; font-size: 14px; }
.nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(15, 20, 25, 0.98); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-around;
  padding: 12px 0 16px; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
.nav-item {
  flex: 1; text-align: center; color: #9ca3af; cursor: pointer; padding: 8px;
  transition: all 0.2s; font-size: 12px; font-weight: 500;
}
.nav-item:hover, .nav-item.active { color: #3b82f6; }
.nav-icon { font-size: 24px; margin-bottom: 4px; }
.deal-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 20px; margin-bottom: 16px; transition: all 0.2s;
}
.deal-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(59, 130, 246, 0.3); }
.deal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status-badge {
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.status-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-active { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-completed { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }
.spinner {
  width: 40px; height: 40px; border: 3px solid rgba(59, 130, 246, 0.2); border-top-color: #3b82f6;
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error {
  background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444;
  padding: 16px; border-radius: 12px; margin: 20px; font-size: 14px;
}
.copy-btn {
  background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6;
  padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; margin-top: 12px; width: 100%;
}
.copy-btn:hover { background: rgba(59, 130, 246, 0.25); }
.addr {
  font-family: 'Monaco', 'Menlo', monospace; font-size: 13px; word-break: break-all;
  background: rgba(0, 0, 0, 0.3); padding: 12px; border-radius: 8px; color: #3b82f6; margin-top: 8px;
}
@media (max-width: 640px) {
  .hero-sum { font-size: 36px; }
  .actions { grid-template-columns: repeat(2, 1fr); }
}
