:root{
  --blue:#1976d2;
  --blue2:#0f5fb8;
  --bg:#ffffff;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#6b7280;
  --shadow: 0 14px 28px rgba(0,0,0,.08);
  --shadow2: 0 8px 18px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Noto Sans Myanmar', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Top bar */
.topbar{
  padding: 14px 16px;
  text-align:center;
  font-weight: 900;
  color:#fff;
  background: linear-gradient(180deg,var(--blue),var(--blue2));
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* Layout */
.container{ padding:14px; max-width:720px; margin:0 auto; }
.center{ text-align:center; }

/* White Glass Card */
.glass{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,95,184,.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* Profile Card */
.card{
  padding: 18px 16px;
}

.avatar{
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  display:block;
  margin: 0 auto 12px;
  border: 4px solid rgba(25,118,210,.15);
  box-shadow: var(--shadow2);
  cursor:pointer;
}

/* iOS zoom fix: keep inputs >=16px */
.nameInput{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  text-align:center;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.infoBlock{
  margin-top: 10px;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 700;
}
.level{
  color: var(--text);
  font-weight: 900;
}
.phone,.created{ font-size: 13px; }

/* Buttons area */
.actionBtns{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }

/* 3D main buttons (white) */
.btn3d{
  width:100%;
  border:none;
  cursor:pointer;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg,#ffffff,#f1f5fb);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0,0,0,.10);
}
.btn3d:active{
  transform: translateY(2px) scale(.99);
  box-shadow: 0 8px 16px rgba(0,0,0,.10);
}

/* Glass button (Refer) */
.btnGlass{
  width:100%;
  border:none;
  cursor:pointer;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(25,118,210,.10);
  color: var(--blue2);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.btnGlass:active{ transform: translateY(2px) scale(.99); }

/* History */
.history{
  padding: 14px;
}
.history h3{
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--text);
}
#historyList div{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15,95,184,.06);
  border: 1px solid rgba(15,95,184,.10);
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  padding: 16px;
}

.modal.show{
  display: flex;
}
.modalBox{
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  animation: popIn 0.25s ease;
}

/* Inputs in modal */
.glassInput{
  width:100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,95,184,.14);
  background: rgba(255,255,255,.88);
  font-size: 16px; /* zoom fix */
  outline:none;
  margin: 6px 0;
}

/* Pay select */
.paySelect{
  display:flex;
  gap:10px;
  margin: 10px 0;
}
.payOption{
  flex:1;
  border-radius: 14px;
  padding: 10px;
  background: rgba(15,95,184,.06);
  border: 1px solid rgba(15,95,184,.10);
  text-align:center;
  cursor:pointer;
  font-weight: 900;
  color: var(--text);
}
.payOption.active{
  border: 2px solid rgba(25,118,210,.55);
  background: rgba(25,118,210,.10);
}

/* Red action button (short + centered) */
.rowBtn{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top: 10px;
}
.btnRed{
  width: 60%;
  border:none;
  cursor:pointer;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg,#ff5a5a,#ef4444);
  color:#fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(239,68,68,.20);
}
.btnRed:active{ transform: translateY(2px) scale(.99); }

/* Small 3D cancel */
.btnSmall3d{
  width: 35%;
  border:none;
  cursor:pointer;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg,#ffffff,#f1f5fb);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}
.btnSmall3d:active{ transform: translateY(2px) scale(.99); }

/* Refer code box */
.referBox{
  width:100%;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15,95,184,.06);
  border: 1px solid rgba(15,95,184,.10);
  font-weight: 900;
  color: var(--blue2);
  cursor:pointer;
  user-select: none;
}

/* Glow for small images */
.glow{
  filter: drop-shadow(0 0 6px rgba(25,118,210,.35));
}
@keyframes popIn{
  from{
    transform: scale(0.9);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}