/* =========================================================
   anniversary.css — Banner + modal "Kỷ niệm X năm gắn bó" ở Cổng nhân
   viên, hiện đúng ngày kỷ niệm ngày vào làm (tròn năm) của tài khoản
   đang đăng nhập. Cùng cấu trúc với birthday.css nhưng đổi tông màu
   vàng/hổ phách để phân biệt rõ với banner sinh nhật (hồng) khi cả 2
   cùng hiện 1 lúc (hiếm nhưng có thể xảy ra).
   ========================================================= */

.anniv-banner {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  background: linear-gradient(135deg, #fff6e0, #ffe9b8);
  border: 1px solid #f0c96a;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(219, 164, 27, 0.25);
  position: relative;
  overflow: hidden;
  animation: annivPopIn 0.5s ease-out;
}

.anniv-banner::before,
.anniv-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.anniv-banner::before { width: 90px; height: 90px; background: #ffdb8a; top: -30px; left: -30px; }
.anniv-banner::after { width: 120px; height: 120px; background: #ffe6ab; bottom: -50px; right: -40px; }

.anniv-banner .anniv-emoji {
  font-size: 32px;
  position: relative;
  z-index: 1;
  animation: annivBounce 1.8s infinite;
  display: inline-block;
}

.anniv-banner h2 {
  font-size: 18px;
  color: #9a6a00;
  margin: 8px 0 4px;
  position: relative;
  z-index: 1;
}

.anniv-banner p {
  font-size: 14px;
  color: #7a5a1e;
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.anniv-banner .anniv-from {
  font-size: 12px;
  font-style: italic;
  color: #a3781f;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.anniv-banner .anniv-btn-view {
  margin-top: 12px;
  background: #d99a00;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(217, 154, 0, 0.35);
  font-family: inherit;
}
.anniv-banner .anniv-btn-view:active { transform: scale(0.97); }

@keyframes annivPopIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes annivBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- Modal chúc mừng ---- */
.anniv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
  animation: annivFadeIn 0.25s ease;
}
.anniv-modal-backdrop.show { display: flex; }

.anniv-modal-box {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  position: relative;
  animation: annivPopIn 0.35s ease-out;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.anniv-modal-box .anniv-big-emoji {
  font-size: 62px;
  display: block;
  animation: annivBounce 1.6s infinite;
}

.anniv-modal-box h2 {
  font-size: 22px;
  color: #9a6a00;
  margin: 10px 0 4px;
}

.anniv-modal-box .anniv-modal-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 4px 0 12px;
}

.anniv-modal-box .anniv-modal-msg {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.anniv-modal-box .anniv-btn-close {
  background: linear-gradient(135deg, #d99a00, #ffc94d);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(217, 154, 0, 0.4);
  width: 100%;
  font-family: inherit;
}
.anniv-modal-box .anniv-btn-close:active { transform: scale(0.97); }

@keyframes annivFadeIn { from { opacity: 0; } to { opacity: 1; } }
