/* ===== RESET ===== */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #020617, #0f172a);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont;
  color: #e5e7eb;
}

/* ===== APP CONTAINER ===== */
.app {
  max-width: 430px;
  margin: auto;
  min-height: 100vh;
  padding: 16px 14px 80px;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ===== CARD (GLASS) ===== */
.card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ===== BUTTON ===== */
button {
  width: 100%;
  padding: 13px 14px;
  margin-top: 10px;
  border-radius: 16px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, opacity .1s ease;
}

button:active {
  transform: scale(.97);
  opacity: .9;
}

.btn-primary {
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  color: #020617;
}

.btn-danger {
  background: linear-gradient(90deg, #ef4444, #fb7185);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: white;
}

/* ===== INPUT ===== */
input, select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,.12);
  color: white;
  outline: none;
  font-size: 14px;
}

input::placeholder {
  color: #9ca3af;
}

/* ===== BALANCE ===== */
.balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance .amount {
  font-size: 22px;
  font-weight: 700;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(34,197,94,.15);
  color: #22c55e;
}

/* ===== TRANSACTION LIST ===== */
.tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tx:last-child {
  border-bottom: none;
}

.tx .left {
  font-size: 13px;
}

.tx .right {
  font-weight: 600;
}

.in {
  color: #22c55e;
}

.out {
  color: #ef4444;
}

/* ===== CHART ===== */
canvas {
  width: 100% !important;
  height: 220px !important;
}

/* ===== PIN LOCK ===== */
.lock {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #020617, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lock .card {
  width: 90%;
  max-width: 320px;
  text-align: center;
}

.lock h3 {
  margin: 0 0 8px;
}

.pin-input {
  letter-spacing: 8px;
  text-align: center;
  font-size: 20px;
}

/* ===== BOTTOM ACTION BAR ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 10px;
  background: rgba(2,6,23,.85);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ===== SMALL TEXT ===== */
.small {
  font-size: 12px;
  color: #9ca3af;
}
