/* diem-thuong.css — chip cấp độ + bảng điểm thưởng (js/diem-thuong.js).
   Chip cùng khuôn với nút tài khoản ở #subHeader (header-actions.css): cao 44px, bo 14px,
   viền --hdr-line, nền trắng mờ, chữ --hdr-ink — đặt cạnh nhau không lệch. */

.dt-wrap { position: relative; flex-shrink: 0; }
.dt-wrap[hidden] { display: none; }

.dt-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--hdr-line, rgba(212, 166, 77, .42));
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: var(--hdr-ink, #522546);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  padding-left: 30px;
}
.dt-chip svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #d4a64d;
  stroke: #b8862f;
  stroke-width: 1;
}
.dt-chu { font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }

.dt-thanh {
  display: block;
  height: 4px;
  min-width: 44px;
  border-radius: 999px;
  background: rgba(212, 166, 77, .22);
  overflow: hidden;
}
.dt-thanh i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d4a64d, #b8862f); }
.dt-thanh--lon { height: 8px; margin: 8px 0 6px; }

/* Bảng: thả xuống ngay dưới chip, không tràn khỏi màn hình điện thoại. */
.dt-bang {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1060;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 14px 12px;
  border: 1px solid rgba(212, 166, 77, .38);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf6e6 100%);
  box-shadow: 0 18px 44px -14px rgba(90, 55, 15, .45);
  color: var(--hdr-ink, #522546);
  font-size: 14px;
  text-align: left;
}
.dt-bang[hidden] { display: none; }
.dt-dau { display: flex; align-items: baseline; gap: 6px; }
.dt-tong { margin-left: auto; font-weight: 600; }
.dt-con, .dt-cho, .dt-bac { margin: 0 0 8px; font-size: 13px; }
.dt-cho, .dt-bac { color: #977c90; }

.dt-moi {
  margin: 4px 0 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(212, 166, 77, .14);
}
.dt-moi p { margin: 0 0 8px; font-size: 13px; }
.dt-nut { display: flex; gap: 8px; }
.dt-nut button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dt-dk { border: 0; background: #522546; color: #fff; }
.dt-dn { border: 1px solid rgba(82, 37, 70, .35); background: transparent; color: #522546; }

.dt-cach b { display: block; margin-bottom: 4px; font-size: 13px; }
.dt-cach ul { list-style: none; margin: 0 0 8px; padding: 0; }
.dt-cach li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; }
.dt-cach li em { color: #977c90; font-style: normal; }
.dt-cach li b { display: inline; margin: 0; color: #b8862f; }
