* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.topbar {
  background: white;
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.topbar h1 { margin: 0; }
.topbar p { margin: 4px 0 0; color: #64748b; }
.badge, .mini-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.badge { background: #fef3c7; color: #92400e; }
.mini-badge { background: rgba(255,255,255,0.15); color: white; margin-bottom: 14px; }

.card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.screen { display: none; }
.screen.active { display: block; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.hero-left {
  background: linear-gradient(135deg, #0284c7, #4338ca);
  color: white;
  border-radius: 24px;
  padding: 32px;
}
.hero-left h2 { font-size: 38px; margin: 0 0 12px; }
.hero-right form,
#transferForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
}
button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
}
.primary {
  background: #0284c7;
  color: white;
}
.secondary {
  background: white;
  border: 1px solid #cbd5e1;
}
.full { width: 100%; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
.history-grid {
  grid-template-columns: 0.8fr 1.2fr;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-box {
  background: #e0f2fe;
  color: #075985;
  padding: 14px;
  border-radius: 16px;
}
.muted {
  color: #64748b;
}
.small {
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.stats div {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
}
.stats span {
  display: block;
  color: #64748b;
  margin-bottom: 6px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin: 20px 0;
}
.tx, .receipt-box .line {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.tx-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.completed {
  background: #dcfce7;
  color: #166534;
}
.scheduled {
  background: #fef3c7;
  color: #92400e;
}
.receipt {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.receipt-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #dcfce7;
}
.receipt-box {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: 24px;
  padding: 20px;
  text-align: left;
}
.receipt-box .line {
  margin-bottom: 10px;
  background: white;
}
.receipt-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .hero, .grid, .history-grid, .filters {
    grid-template-columns: 1fr;
  }
  .topbar, .row.between {
    flex-direction: column;
    align-items: stretch;
  }
}