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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #e94560;
}

.subtitle {
  font-size: 14px;
  color: #808080;
  margin-bottom: 24px;
}

.balance-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eeeeee;
}

.balance-label {
  font-size: 13px;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.balance-value {
  font-size: 32px;
  font-weight: bold;
  color: #e94560;
}

.balance-rub {
  font-size: 14px;
  color: #808080;
  margin-top: 4px;
}

.address {
  font-size: 12px;
  color: #606060;
  margin-top: 12px;
  word-break: break-all;
  font-family: monospace;
}

.section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 14px;
  color: #606060;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.amount-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.amount-input input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  color: #1a1a1a;
  font-size: 16px;
  outline: none;
}

.amount-input input:focus {
  border-color: #e94560;
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quick-amounts button {
  flex: 1;
  background: #f8f8f8;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 8px;
  color: #606060;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.quick-amounts button:hover {
  border-color: #e94560;
  color: #e94560;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.btn-primary {
  background: #e94560;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #d63651;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #e94560;
  border: 1px solid #e94560;
}

.btn-secondary:hover:not(:disabled) {
  background: #e94560;
  color: white;
}

.btn-yandex {
  background: #fc3f1d;
  color: white;
}

.btn-yandex:hover:not(:disabled) {
  background: #e63514;
}

.btn-metamask {
  background: #f6851b;
  color: white;
}

.btn-metamask:hover:not(:disabled) {
  background: #e2761b;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #999;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.divider::before { margin-right: 12px; }
.divider::after { margin-left: 12px; }

.status {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  display: none;
}

.status.info { background: #e3f2fd; color: #1565c0; display: block; }
.status.success { background: #e8f5e9; color: #2e7d32; display: block; }
.status.error { background: #ffebee; color: #c62828; display: block; }
.status.warning { background: #fff3e0; color: #e65100; display: block; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.tx-link {
  display: block;
  margin-top: 8px;
  color: #1565c0;
  font-size: 12px;
  word-break: break-all;
}

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: #999;
}

.footer a { color: #e94560; text-decoration: none; }

.auth-block {
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #eeeeee;
}

.auth-block-title {
  font-size: 14px;
  color: #606060;
  margin-bottom: 10px;
  text-align: center;
}
