:root {
  --primary: #0a2540;
  --primary-light: #1e3a5f;
  --accent: #00d4aa;
  --warning: #f0ad4e;
  --danger: #d9534f;
  --success: #5cb85c;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --border: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(10,37,64,0.1);
  --shadow-lg: 0 8px 24px rgba(10,37,64,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header-logo {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.header-logo img {
  height: 36px;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.header-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 500;
}

.security-badge svg {
  width: 16px;
  height: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-awaiting {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  color: #856404;
  border: 1px solid #ffc107;
}

.status-awaiting::before {
  background: #ffc107;
}

.status-confirmed {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #28a745;
}

.status-confirmed::before {
  background: #28a745;
}

.status-released {
  background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
  color: #004085;
  border: 1px solid #007bff;
}

.status-released::before {
  background: #007bff;
}

.status-adjusted {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #dc3545;
}

.status-adjusted::before {
  background: #dc3545;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', Monaco, monospace;
}

.info-value.primary {
  color: var(--primary);
  font-size: 1.25rem;
}

.info-value.success {
  color: var(--success);
}

.amount-display {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  text-align: center;
}

.amount-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.amount-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'SF Mono', Monaco, monospace;
  letter-spacing: -1px;
}

.wallet-address {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-all;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-address:hover {
  border-color: var(--primary);
  background: white;
}

.wallet-address::after {
  content: 'Click to copy';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wallet-address:hover::after {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.footer-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
  margin: 1.5rem 0;
}

.hidden { display: none; }

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .amount-value {
    font-size: 1.5rem;
  }
  
  .info-value {
    font-size: 1rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
