
:root{
  --bg:#eef2f7;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --primary:#1d4ed8;
  --primary-dark:#1e40af;
  --secondary:#0f172a;
  --accent:#f59e0b;
  --text:#0f172a;
  --muted:#64748b;
  --success:#16a34a;
  --warning:#d97706;
  --danger:#dc2626;
  --border:#dbe4f0;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#edf3fb 0%,#eef2f7 100%);
  color:var(--text);
}
a{text-decoration:none}
.phone{
  width:100%;
  max-width:430px;
  min-height:100vh;
  margin:0 auto;
  background:transparent;
  position:relative;
}
.tabs-wrap{
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding:12px 12px 10px;
  background:rgba(238,242,247,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(148,163,184,.18);
}
.tab-link{
  background:linear-gradient(180deg,#3567e8 0%,#244fbd 100%);
  color:#fff;
  padding:13px 6px;
  border-radius:16px 16px 10px 10px;
  font-size:15px;
  font-weight:700;
  text-align:center;
  box-shadow:0 6px 18px rgba(37,99,235,.2);
}
.tab-link.active{
  background:linear-gradient(180deg,#0f172a 0%,#1e293b 100%);
  box-shadow:0 8px 20px rgba(15,23,42,.22);
}
.screen{padding:18px 16px 86px}
.brand-header{
  background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 60%,#2563eb 100%);
  border-radius:24px;
  padding:22px 18px;
  color:#fff;
  box-shadow:var(--shadow);
  margin-bottom:18px;
}
.brand-title{
  margin:0;
  font-size:28px;
  font-weight:800;
  letter-spacing:.2px;
  color:#fff;
  text-align:left;
}
.brand-sub{
  margin-top:8px;
  color:rgba(255,255,255,.82);
  font-size:13px;
}
.panel{display:block}
h1{
  margin:0 0 18px;
  text-align:center;
  color:#111827;
  font-size:24px;
  font-weight:800;
}
h2{
  margin:0 0 14px;
  font-size:20px;
  color:#0f172a;
  font-weight:800;
}
.service-list{display:grid;gap:16px}
.service-btn{
  width:100%;
  background:linear-gradient(135deg,#2f5fda 0%,#1d4ed8 100%);
  color:#fff;
  border-radius:18px;
  padding:18px 16px;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
  border:1px solid rgba(255,255,255,.18);
}
.service-btn span:first-child{
  width:38px;height:38px;display:grid;place-items:center;
  background:rgba(255,255,255,.18);border-radius:12px;font-size:18px
}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
}
.wallet-card{
  background:linear-gradient(135deg,#0f172a 0%,#1e40af 60%,#2563eb 100%);
  color:#fff;
  border:none;
}
.balance{
  font-size:52px;
  line-height:1;
  font-weight:800;
  margin:8px 0 14px;
}
.item,.wallet-actions,.top-links{
  display:flex;
  align-items:center;
  justify-content:space-between
}
.item{
  gap:10px;
  padding:14px 0;
  border-bottom:1px solid #edf2f7;
}
.item:last-child{border-bottom:0}
.btn, button, input[type=submit]{
  cursor:pointer;
  border:0;
  background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
  color:#fff;
  border-radius:14px;
  padding:13px 16px;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  display:inline-block;
  box-shadow:0 8px 16px rgba(37,99,235,.16);
}
.btn.outline, button.outline{
  background:#fff;
  color:var(--primary-dark);
  border:1px solid var(--border);
  box-shadow:none;
}
.wallet-actions{gap:10px}
.wallet-actions .btn{flex:1;text-align:center}
.muted,.small{
  color:var(--muted);
  font-size:13px;
}
.wallet-card .muted,.wallet-card .small{
  color:rgba(255,255,255,.82);
}
.amount{font-weight:800}
.plus{color:var(--success)}
.minus{color:var(--danger)}
.badge{
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.success{background:#dcfce7;color:#166534}
.pending{background:#fff7ed;color:#b45309}
.failed{background:#fee2e2;color:#b91c1c}
.center{text-align:center}
.logout-icon{
  width:70px;height:70px;margin:0 auto 18px;border-radius:18px;
  background:#fee2e2;color:#dc2626;display:grid;place-items:center;font-size:34px
}
.footer-bar{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:100%;
  max-width:430px;
  background:linear-gradient(135deg,#0f172a 0%,#1e40af 100%);
  color:#fff;
  text-align:center;
  padding:12px 10px;
  font-size:20px;
  font-weight:700;
  box-shadow:0 -8px 24px rgba(15,23,42,.18);
}
input,select,textarea{
  width:100%;
  padding:15px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:16px;
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.msg{
  padding:12px 14px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  margin-bottom:12px
}
.err{
  background:#fef2f2;
  border-color:#fecaca;
  color:#b91c1c
}
.install-banner{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:16px;
  background:linear-gradient(135deg,#fff7ed 0%,#fffbeb 100%);
  border:1px solid #fde68a;
  border-radius:18px;
  padding:14px;
  box-shadow:var(--shadow);
}
.install-banner.show{display:flex}
.install-banner .text{font-size:13px;color:#92400e}
.install-btn{white-space:nowrap}
@media (max-width:420px){
  .form-row{grid-template-columns:1fr}
  .tab-link{font-size:13px;padding:12px 4px}
  .service-btn{font-size:16px}
  .balance{font-size:46px}
}
