/* Sheeto - dang nhap / dang ky + o tai khoan */

.auth {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .18s var(--ease);
}
.auth.is-in { opacity: 1; }
.auth__back { position: absolute; inset: 0; background: rgba(9,20,16,.55); backdrop-filter: blur(4px); }
.auth__card {
  position: relative; z-index: 1; width: 100%; max-width: 448px;
  background: #fff; border-radius: 30px; padding: 30px 32px 26px;
  box-shadow: var(--shadow-lg); text-align: center;
  transform: translateY(14px) scale(.97); transition: transform .22s var(--ease);
  max-height: 94vh; overflow: auto;
}
.auth.is-in .auth__card { transform: none; }
.auth__x {
  position: absolute; top: 14px; right: 16px; border: 0; background: transparent;
  font-size: 17px; color: var(--muted); cursor: pointer; width: 34px; height: 34px;
  border-radius: 10px; line-height: 1;
}
.auth__x:hover { background: var(--bg-3); color: var(--ink); }
.auth__mascot { margin: 0 auto 6px; }
.auth__reason {
  background: var(--amber-soft); color: #7A5200; border-radius: 14px;
  padding: 11px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; text-align: left;
}
.auth__title { font-size: 26px; margin-bottom: 4px; }
.auth__sub { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }

.auth__tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--bg-3); border-radius: 14px; padding: 4px; margin-bottom: 20px;
}
.auth__tab {
  border: 0; background: transparent; border-radius: 11px; padding: 10px;
  font-family: var(--fb); font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer;
  transition: .16s var(--ease);
}
.auth__tab.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.auth__form { display: grid; gap: 14px; text-align: left; }
.fld { display: grid; gap: 6px; }
.fld__lb { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fld__wrap { position: relative; display: block; }
.fld input {
  width: 100%; border: 2px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px; font-family: var(--fb); font-size: 15.5px; color: var(--ink);
  background: var(--bg-2); outline: none; transition: .16s var(--ease);
}
.fld input::placeholder { color: #A6B5AD; }
.fld input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(43,127,255,.13); }
.fld__eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; font-size: 17px; cursor: pointer; padding: 8px; line-height: 1;
}
.auth__err {
  background: var(--coral-soft); color: var(--coral-d); border-radius: 13px;
  padding: 11px 14px; font-size: 14px; font-weight: 600;
}
.auth__submit { margin-top: 4px; }
.auth__note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.auth__legal { font-size: 11.5px; color: #9AACA3; margin: 8px 0 0; }
.auth__otp-note { margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: var(--amber-soft); color: #765000; font-size: 12.5px; line-height: 1.55; }
.auth__otp-sent { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--green-soft); color: var(--green-dd); }
.auth__otp-sent>i { font-size: 25px; font-style: normal; }.auth__otp-sent b,.auth__otp-sent span { display: block; }.auth__otp-sent span { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }.auth__otp-sent strong { word-break: break-all; }
#otpEmailStep,#otpVerifyStep { display: grid; gap: 14px; }
#otpEmailStep[hidden],#otpVerifyStep[hidden] { display: none !important; }
.auth__otp-actions { display: flex; justify-content: center; gap: 18px; }.auth__otp-actions button { border: 0; background: transparent; color: var(--blue-d); font: 700 12.5px var(--fb); cursor: pointer; padding: 4px; }.auth__otp-actions button:hover { text-decoration: underline; }
#otpVerifyStep input[name=ma] { text-align: center; letter-spacing: .35em; font: 800 21px var(--fm); }
.auth__err--ok { background: var(--green-soft); color: var(--green-dd); }

/* ------------------------------------------------------------ o tai khoan */
.ustat {
  display: inline-flex; align-items: center; gap: 5px; font-size: 15px;
  font-weight: 700; color: var(--amber-d); font-variant-numeric: tabular-nums;
}
.ustat b { font-family: var(--fh); font-size: 17px; }
.ustat--fire { color: #E2542B; }

.umenu { position: relative; }
.uava {
  width: 44px; height: 44px; border-radius: 15px; border: 2px solid var(--line);
  cursor: pointer; padding: 0; overflow: hidden; background: #fff;
  display: grid; place-items: center; line-height: 0;
  transition: transform .12s var(--ease), border-color .16s var(--ease);
}
.uava:hover { border-color: var(--green); transform: translateY(-1px); }
.uava:active { transform: translateY(2px); }
.uava .ava-svg { width: 100%; height: 100%; display: block; }
.umenu__head { display: flex; align-items: center; gap: 11px; }
.umenu__ava { flex: 0 0 auto; line-height: 0; }
.umenu__id { min-width: 0; }
.umenu__pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 268px;
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; text-align: left;
}
.umenu__pop.is-on { display: block; animation: shPop .16s var(--ease); }
.umenu__head { padding: 10px 12px 12px; border-bottom: 2px solid var(--line); margin-bottom: 6px; }
.umenu__head b { display: block; font-family: var(--fh); font-size: 16px; }
.umenu__head span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.umenu__i {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 11px; font-family: var(--fb); font-size: 14.5px;
  font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.umenu__i:hover { background: var(--bg-2); }
.umenu__i--out { color: var(--coral-d); }

/* ------------------------------------------------------------ thong bao nho */
.sh-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; z-index: 9600; opacity: 0;
  transition: .26s var(--ease); box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center;
}
.sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
