:root {
  --bg: #000000;
  --bg-elevated: #050505;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --primary: #00ff88;
  --primary-soft: rgba(0, 255, 136, 0.12);
  --text-main: #f5f5f5;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-full: 999px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, sans-serif;
  font-size: 16px;
  background: radial-gradient(circle at top, #020202 0, #020202 40%, #000000 100%);
  color: var(--text-main);
  min-height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app {
  width: 100%;
  max-width: 480px;
  background: #050505;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 1);
  padding: 18px 18px 24px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-mark-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, rgba(0, 255, 136, 0.35), transparent 70%);
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.9);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.brand-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-main {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: radial-gradient(circle at top left, rgba(0, 255, 136, 0.08), transparent 55%),
    #050505;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 16px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.balance-card {
  border-radius: 22px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(0, 255, 136, 0.6);
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.18);
}

.balance-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.balance-value {
  margin-top: 4px;
  font-size: 1.6rem;
  font-weight: 700;
}

.balance-sub {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn.big {
  padding-block: 11px;
  font-size: 1rem;
}

.btn.secondary.ghost {
  background: transparent;
  border-style: dashed;
  opacity: 0.7;
}

.last-transfers {
  border-radius: 18px;
  padding: 10px 12px 8px;
  background: rgba(12, 12, 12, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.last-transfers h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.last-transfers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.last-transfers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.tx-name {
  display: block;
}

.tx-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tx-value {
  font-weight: 600;
}

.tx-value.income {
  color: var(--primary);
}

.flow {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-steps {
  display: flex;
  gap: 6px;
}

.flow-step-item {
  flex: 1;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  background: #020617;
  color: var(--text-muted);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.flow-step-item.active {
  background: rgba(0, 255, 136, 0.2);
  color: #ecfeff;
  border-color: rgba(0, 255, 136, 0.9);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.subtitle {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

textarea,
input[type="number"] {
  background: rgba(15, 23, 42, 0.94);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  min-height: 42px;
}

textarea:focus,
input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.35);
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn {
  flex: 1;
  border-radius: 999px;
  border: 0;
  padding: 11px 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #00ff88, #00c46a);
  color: #04101a;
  box-shadow:
    0 12px 30px rgba(0, 255, 136, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.9);
  opacity: 0.9;
}

.pix-details {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 10px 10px 8px;
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.9);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 3px 0;
}

.detail-row span {
  color: var(--text-muted);
}

.detail-row strong {
  max-width: 60%;
  text-align: right;
  font-weight: 600;
}

.detail-row input {
  max-width: 60%;
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 4px 8px;
  color: var(--text-main);
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spinner {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
  margin-bottom: 12px;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
}

.processing-text {
  font-size: 1rem;
  color: var(--text-muted);
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.5);
}

.success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.success-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.success-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.success-info {
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.success-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.success-amount {
  font-size: 2.2rem;
  font-weight: 700;
}

.success-to {
  margin-top: 8px;
  font-size: 1rem;
}

.success-to span {
  color: var(--text-muted);
}

.success-to strong {
  display: block;
  font-size: 1.05rem;
}

.success-bank {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.confirmation-box {
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.confirmation-amount {
  font-size: 1.3rem;
  font-weight: 700;
}

.confirmation-to {
  font-size: 0.82rem;
}

.confirmation-to span {
  color: var(--text-muted);
}

.confirmation-extra {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.receipt {
  border-radius: 18px;
  padding: 10px 12px 6px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 3px 0;
}

.receipt-row span {
  color: var(--text-muted);
}

.receipt-row strong {
  max-width: 64%;
  text-align: right;
}

.status-paid {
  color: var(--primary);
}

.receipt-tip {
  margin: 10px 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .app {
    border-radius: 26px;
    padding: 16px 14px 20px;
  }

  .card {
    padding: 14px 12px 16px;
  }

  .actions {
    flex-direction: column;
  }
}
