@import url("common.css");

.profile-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(59,130,246,.16), transparent 50%),
    var(--bg);
}
.profile-wrap {
  max-width: 480px;
  margin: 24px auto;
  padding: 0 16px 40px;
  animation: rise .45s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.profile-card {
  background: linear-gradient(165deg, #1c253a, #121826);
  border-radius: 22px;
  padding: 28px 22px;
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.avatar-lg {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37,99,235,.4);
  border: 3px solid rgba(147,197,253,.35);
}
.profile-card h1 { margin: 0; font-size: 1.35rem; }
.profile-card .email { color: var(--muted); margin: 6px 0 18px; font-size: .95rem; }
.balance-box {
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}
.balance-box .label { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
.balance-box .val {
  font-size: 1.7rem; font-weight: 900; color: var(--gold); margin-top: 4px;
}
.profile-actions { display: grid; gap: 10px; }
.profile-actions button {
  border: none; border-radius: 12px; padding: 13px; font-weight: 800;
}
.btn-dep { background: #2563eb; color: #fff; }
.btn-wd { background: #16a34a; color: #fff; }
.btn-edit { background: #334155; color: #fff; }
.btn-out { background: #b91c1c; color: #fff; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: grid; place-items: center; z-index: 40; padding: 16px;
}
.modal {
  width: min(380px, 100%);
  background: var(--card2);
  border-radius: 16px;
  padding: 18px;
}
.modal input {
  width: 100%; margin: 8px 0 12px; background: #0b1220;
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  border-radius: 10px; padding: 10px 12px;
}
.modal-actions { display: flex; gap: 8px; }
.modal-actions button {
  flex: 1; border: none; border-radius: 10px; padding: 11px; font-weight: 700;
}
