/* =====================================================================
   TÀI KHOẢN HỌC SINH DÙNG CHUNG (SỬA THÔNG TIN, ĐỔI PASSCODE, GOOGLE LOGIN)
   Áp dụng cho Góc Học Tập và toàn bộ các trang Toán 1–5, Tiếng Anh, Luyện nghe,
   Pre A1 và Luyện giao tiếp. Mọi lớp CSS dùng tiền tố .tkhs- để không xung đột.
   ===================================================================== */

.tkhs-hoac {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .02em;
}
.tkhs-hoac::before,
.tkhs-hoac::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .24;
}

.hop-thoai .ht .tkhs-hoac {
  color: #cfe2ff;
}

.tkhs-nut-gg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  box-sizing: border-box;
}
.tkhs-nut-gg:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}
.tkhs-nut-gg:active:not(:disabled) {
  transform: translateY(0);
}
.tkhs-nut-gg:disabled {
  opacity: .68;
  cursor: wait;
}
.tkhs-nut-gg svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.g2-hop .tkhs-nut-gg {
  border-radius: 999px;
  min-height: 46px;
}

.tkhs-nut-gg-cong {
  margin-top: 2px;
  border-radius: 18px;
  min-height: 50px;
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 0 rgba(12, 34, 80, .26), 0 8px 18px rgba(12, 34, 80, .18);
}

.tkhs-xoay {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid rgba(30, 41, 59, .2);
  border-top-color: #1668e3;
  animation: tkhsXoay .75s linear infinite;
  flex: none;
}
@keyframes tkhsXoay {
  to { transform: rotate(360deg); }
}

/* Hàng nút Cập nhật thông tin & Đổi passcode trong hộp thoại tối màu (#htTaiKhoan) */
.tkhs-hang-nut {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.hop-thoai .ht .tkhs-hang-nut .nut-phu {
  margin-top: 0;
  min-height: 40px;
  height: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(165, 216, 255, .42);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.hop-thoai .ht .tkhs-hang-nut .nut-phu:hover {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .75);
}

/* Lớp phủ modal dùng chung của TaiKhoanHS */
.tkhs-lop {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 28, 78, .64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  overflow-y: auto;
}
.tkhs-lop[hidden] {
  display: none !important;
}

.tkhs-khung {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px 22px 20px;
  border-radius: 24px;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 24px 64px rgba(2, 16, 64, .42);
  animation: tkhsLen .22s cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
}
@keyframes tkhsLen {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
}

.tkhs-dong {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #eff6ff;
  color: #3b5998;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tkhs-dong:hover {
  background: #dbeafe;
}

.tkhs-bieu {
  font-size: 40px;
  line-height: 1;
  text-align: center;
}

.tkhs-khung h3 {
  margin: 6px 0 4px;
  text-align: center;
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0b2a7a;
  line-height: 1.25;
}

.tkhs-mota {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.48;
  color: #526380;
}

.tkhs-the-sdt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f1f7ff;
  border: 1px solid #d4e6fd;
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
}
.tkhs-the-sdt b {
  color: #0b2a7a;
  font-size: 14px;
}

.tkhs-truong {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.tkhs-truong .tkhs-sao {
  color: #dc2626;
  margin-left: 2px;
}
.tkhs-truong small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

.tkhs-boc-input {
  position: relative;
  margin-top: 5px;
}

.tkhs-khung input[type=text],
.tkhs-khung input[type=email],
.tkhs-khung input[type=password] {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 5px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1.8px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: 0;
  box-sizing: border-box;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tkhs-boc-input input {
  margin-top: 0;
  padding-right: 44px;
}
.tkhs-khung input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.tkhs-khung input:disabled {
  opacity: .65;
  cursor: wait;
}

.tkhs-mat {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tkhs-mat:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Danh sách kiểm tra quy tắc passcode mới */
.tkhs-qt {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 5px;
}
.tkhs-qt-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}
.tkhs-qt-item i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.tkhs-qt-item.dat {
  color: #15803d;
}
.tkhs-qt-item.dat i {
  background: #dcfce7;
  color: #15803d;
}
.tkhs-qt-item.sai {
  color: #b91c1c;
}
.tkhs-qt-item.sai i {
  background: #fee2e2;
  color: #b91c1c;
}

.tkhs-loi {
  min-height: 20px;
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #dc2626;
  text-align: center;
}
.tkhs-loi.tot {
  color: #15803d;
}

.tkhs-nut-hang {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.tkhs-nut-chinh,
.tkhs-nut-huy {
  height: 46px;
  border-radius: 999px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: transform .15s, opacity .15s, background .15s;
}
.tkhs-nut-chinh {
  flex: 1;
  background: linear-gradient(180deg, #2f8bff, #1257d6);
  color: #ffffff;
  box-shadow: 0 3px 0 #0d47a8;
}
.tkhs-nut-chinh:hover:not(:disabled) {
  filter: brightness(1.05);
}
.tkhs-nut-chinh:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.tkhs-nut-huy {
  padding: 0 18px;
  background: #eff6ff;
  color: #1e40af;
}
.tkhs-nut-huy:hover:not(:disabled) {
  background: #dbeafe;
}

/* Danh sách chọn học sinh khi 1 email phụ huynh có nhiều bé */
.tkhs-ds-be {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.tkhs-chon-be {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.8px solid #d4e3f8;
  background: #f8fbff;
  color: #0f172a;
  text-align: left;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
}
.tkhs-chon-be:hover:not(:disabled) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .14);
  transform: translateY(-1px);
}
.tkhs-chon-be:disabled {
  opacity: .65;
  cursor: wait;
}
.tkhs-be-avt {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}
.tkhs-be-tt {
  flex: 1;
  min-width: 0;
}
.tkhs-be-tt b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: #0b2a7a;
  line-height: 1.25;
}
.tkhs-be-tt small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.35;
}
.tkhs-be-han {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  white-space: nowrap;
}
.tkhs-be-han.het {
  background: #fee2e2;
  color: #b91c1c;
}

.tkhs-bao {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  z-index: 100060;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: #0b2a7a;
  color: #ffffff;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(2, 16, 64, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  text-align: center;
}
.tkhs-bao.hien {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .tkhs-khung {
    padding: 20px 16px 16px;
    border-radius: 20px;
  }
  .tkhs-hang-nut {
    grid-template-columns: 1fr;
  }
}
