/* Nút Chào + popup đổi mật khẩu */

.nav-btn-chao {
  border-color: rgba(8, 118, 201, .35) !important;
  background: rgba(8, 118, 201, .1) !important;
  color: #083B66 !important;
  cursor: pointer;
  font: inherit;
}
.nav-btn-chao:hover {
  background: rgba(8, 118, 201, .18) !important;
  color: #0876C9 !important;
}
.topbar.is-night .nav-btn-chao {
  border-color: rgba(255, 214, 102, .45) !important;
  background: rgba(255, 214, 102, .12) !important;
  color: #ffe9a8 !important;
}

.who--click {
  cursor: pointer;
  border-radius: 12px;
  padding: .35rem;
  margin: -.35rem;
  transition: background .15s ease;
}
.who--click:hover {
  background: rgba(255, 255, 255, .08);
}
.who--click:focus-visible {
  outline: 2px solid rgba(255, 214, 102, .7);
  outline-offset: 2px;
}
.who-chao {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255, 214, 102, .95);
  margin-bottom: .1rem;
}

.dm-dialog {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--font, "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif);
}
.dm-dialog[hidden] { display: none !important; }
.dm-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 50, .55);
  backdrop-filter: blur(2px);
}
.dm-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 24px 60px rgba(8, 30, 50, .28);
  animation: dm-in .18s ease;
  color: #083B66;
}
@keyframes dm-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.dm-dialog-x {
  position: absolute;
  top: .55rem;
  right: .7rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5a6f82;
  cursor: pointer;
}
.dm-dialog-brand {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #0876C9;
  font-size: 1.35rem;
  margin-bottom: .5rem;
}
.dm-dialog-panel h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #083B66;
}
.dm-dialog-sub {
  margin: .3rem 0 1rem;
  font-size: .88rem;
  color: #5a6f82;
  line-height: 1.4;
}
.dm-form label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #5a6f82;
  margin: .55rem 0 .25rem;
}
.dm-form input[type="password"],
.dm-form .pwd-toggle-input {
  width: 100%;
  box-sizing: border-box;
  padding: .6rem .75rem;
  border-radius: 10px;
  border: 1.5px solid rgba(8, 59, 102, .18);
  font: inherit;
  font-size: .95rem;
  color: #083B66;
  background: #f8fbfd;
}
.dm-form input[type="password"]:focus,
.dm-form .pwd-toggle-input:focus {
  outline: none;
  border-color: #0876C9;
  box-shadow: 0 0 0 3px rgba(8, 118, 201, .15);
  background: #fff;
}
.dm-hint {
  margin: .65rem 0 0;
  font-size: .75rem;
  color: #7a8fa3;
  line-height: 1.35;
}
.dm-err {
  margin: .65rem 0 0;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: #fdecee;
  color: #8a1520;
  font-size: .86rem;
  font-weight: 600;
}
.dm-ok {
  margin: .65rem 0 0;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: #e8f7ef;
  color: #0f6b3a;
  font-size: .86rem;
  font-weight: 600;
}
.dm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(8, 59, 102, .08);
}
.dm-actions .btn.is-busy { opacity: .7; pointer-events: none; }
body.dm-open { overflow: hidden; }
