:root {
  --bg: #07090d;
  --surface: #0f131a;
  --surface-2: #151b24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #8b95a8;
  --accent: #ffc400;
  --green: #14f195;
  --red: #ff4d6d;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 196, 0, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14f195, #9945ff);
  display: grid;
  place-items: center;
  font-weight: 800;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  margin-bottom: 16px;
}

input:focus {
  outline: none;
  border-color: rgba(255, 196, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.12);
}

button {
  border: 0;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 14px 18px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
}

.btn-approve, .btn-decline {
  padding: 10px 16px;
  font-weight: 700;
  min-width: 110px;
}

.btn-approve {
  background: rgba(20, 241, 149, 0.14);
  color: var(--green);
  border: 1px solid rgba(20, 241, 149, 0.35);
}

.btn-decline {
  background: rgba(255, 77, 109, 0.14);
  color: var(--red);
  border: 1px solid rgba(255, 77, 109, 0.35);
}

.error {
  color: var(--red);
  min-height: 1.25rem;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.stat strong {
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.tab.is-active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.tx-list {
  display: grid;
  gap: 16px;
}

.tx-item {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.tx-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tx-amount {
  font-size: 1.35rem;
  font-weight: 800;
}

.tx-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.pending { background: rgba(255, 196, 0, 0.12); color: var(--accent); }
.badge.approved { background: rgba(20, 241, 149, 0.12); color: var(--green); }
.badge.declined { background: rgba(255, 77, 109, 0.12); color: var(--red); }

.tx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.field {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.field-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.field-value {
  word-break: break-word;
  font-weight: 600;
}

.tx-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 20px); padding-top: 20px; }
  .tx-head { flex-direction: column; }
}
