/* =====================================================================
   KHUYẾN MÃI MEITU SVIP + ĐIỂM DANH
   ===================================================================== */

/* ---- Banner ở màn hình đăng nhập ---- */
.login-promo {
  margin: 4px 0 12px;
  border: 2.5px solid var(--outline);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f6, #fff9db);
  box-shadow: 0 3px 0 var(--outline);
}
.login-promo.first { animation: lp-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes lp-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lp-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 0; cursor: pointer; font: inherit; text-align: left;
  color: #fff;
  background: linear-gradient(90deg, #d6336c, #f76707);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.lp-gift {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%; font-size: 19px; text-shadow: none;
  animation: lp-shake 2.4s ease-in-out infinite;
}
@keyframes lp-shake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }
.lp-title { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.lp-title small { font-size: 10px; letter-spacing: 1.5px; font-weight: 800; color: #ffe066; }
.lp-title b { font-size: 15px; font-weight: 900; }
.lp-caret { font-size: 14px; transition: transform .2s; }
.login-promo.collapsed .lp-caret { transform: rotate(-90deg); }
.login-promo.collapsed .lp-body { display: none; }
.lp-body { padding: 8px 12px 10px; font-size: 12.5px; }
.lp-lead { margin: 0 0 6px; }
.lp-steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-steps li { display: block; background: #fff; border: 1px dashed #f3a5c4; border-radius: 9px; padding: 4px 8px; }
.lp-steps li span { font-size: 15px; margin-right: 6px; display: inline-block; }
.lp-steps small { color: #868e96; }
.lp-note { margin: 6px 0 0; font-size: 10.5px; color: #868e96; line-height: 1.35; }

/* ---- Thanh khuyến mãi trên HUD (thay chỗ donate) ---- */
.promo-strip {
  position: relative;
  background: linear-gradient(90deg, #d6336c, #f76707 60%, #fab005);
  box-shadow: 0 3px 0 var(--outline), 0 6px 14px rgba(214, 51, 108, .35);
}
.promo-dot {
  position: absolute; top: -4px; right: -3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fa5252; border: 2px solid #fff;
  animation: badge-pulse 1s ease-in-out infinite;
}

/* ---- Bảng điểm danh ---- */
.pm-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 10px;
  border: 2.5px solid var(--outline); border-radius: 14px;
  color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(90deg, #d6336c, #f76707);
}
.pm-hero-icon { font-size: 34px; text-shadow: none; animation: lp-shake 2.4s ease-in-out infinite; }
.pm-hero b { display: block; font-size: 17px; font-weight: 900; }
.pm-hero span { font-size: 12.5px; }
.ck-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ck-day {
  text-align: center; padding: 6px 2px;
  border: 2px solid #dee2e6; border-radius: 12px; background: #fff;
  font-size: 11px; line-height: 1.25;
}
.ck-day small { font-weight: 800; color: #868e96; }
.ck-gift { font-size: 22px; margin: 2px 0; }
.ck-rw i { color: #7048e8; font-style: normal; font-size: 10px; }
.ck-day.got { background: #ebfbee; border-color: #8ce99a; opacity: .8; }
.ck-day.today { border-color: #f76707; background: #fff4e6; box-shadow: 0 0 0 3px rgba(247, 103, 7, .25); animation: ck-glow 1.4s ease-in-out infinite; }
@keyframes ck-glow { 50% { box-shadow: 0 0 0 5px rgba(247, 103, 7, .12); } }
.ck-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.ck-act small { color: #868e96; }
.pm-conds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pm-cond { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid #dee2e6; border-radius: 12px; background: #fff; }
.pm-cond > span { font-size: 22px; }
.pm-cond > div { flex: 1; }
.pm-cond.ok { border-color: #69db7c; background: #ebfbee; }
.pm-bar { height: 8px; border-radius: 99px; background: #e9ecef; overflow: hidden; margin-top: 4px; }
.pm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f76707, #fab005); border-radius: 99px; }
.pm-cond.ok .pm-bar i { background: linear-gradient(90deg, #40c057, #2b8a3e); }
.pm-claim { padding: 12px 14px; border-radius: 12px; border: 2px dashed #ced4da; background: #f8f9fa; font-size: 13px; line-height: 1.5; }
.pm-claim .btn { margin-top: 6px; }
.pm-claim.locked { color: #495057; }
.pm-claim.done { border: 2px solid #69db7c; background: #ebfbee; }
.pm-claim.ready { border: 2.5px solid #f76707; background: #fff9db; display: flex; flex-direction: column; gap: 8px; }
.pm-claim.ready small { color: #868e96; }
.pm-agree { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.pm-note { font-size: 11px; color: #868e96; margin: 10px 0 0; }

/* ---- Tab quản trị ---- */
.pm-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pm-admin-head small { display: block; color: #666; }
.pm-admin-act { display: flex; gap: 6px; }
.pm-table .admin-row { display: flex; align-items: center; gap: 10px; }
.pm-n { width: 26px; text-align: center; font-weight: 900; color: #868e96; }
.pm-mail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm-mail b { word-break: break-all; }
.pm-mail small { color: #868e96; }
.pm-st { white-space: nowrap; font-weight: 700; font-size: 12px; }
.pm-btns { display: flex; gap: 4px; }
.pm-sent { opacity: .7; }

@media (max-width: 760px) {
  .ck-row { grid-template-columns: repeat(4, 1fr); }
  .pm-conds { grid-template-columns: 1fr; }
  .pm-table .admin-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-gift, .pm-hero-icon, .ck-day.today, .login-promo.first, .promo-dot { animation: none; }
}
