/* ==========================================================================
 * mung2010.css — Hoa rơi & Hộp quà Thiệp chúc mừng Ngày Phụ Nữ Việt Nam 20/10/2026
 * Hiển thị từ hiện tại đến hết ngày 21/10/2026 (23:59:59 giờ Việt Nam)
 * ========================================================================== */

.ccm2010-flowers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
}

.ccm2010-petal {
  position: absolute;
  top: -48px;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  animation: ccm2010Fall linear infinite;
  filter: drop-shadow(0 2px 4px rgba(219, 39, 119, 0.22));
}

.ccm2010-petal-inner {
  display: inline-block;
  animation: ccm2010Sway ease-in-out infinite alternate;
}

@keyframes ccm2010Fall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.92;
  }
  88% {
    opacity: 0.88;
  }
  100% {
    transform: translate3d(var(--drift, 35px), 106vh, 0) rotate(var(--rot, 380deg));
    opacity: 0;
  }
}

@keyframes ccm2010Sway {
  0% {
    transform: translateX(calc(var(--sway, 22px) * -1)) rotate(-14deg) scale(0.94);
  }
  100% {
    transform: translateX(var(--sway, 22px)) rotate(14deg) scale(1.06);
  }
}

/* Nút Quà 20/10 trên thanh Topbar */
.ccm2010-topbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(244, 114, 182, 0.55) !important;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 52%, #be185d 100%) !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.38);
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  animation: ccm2010Pulse 2.4s ease-in-out infinite;
}

.ccm2010-topbtn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.55);
}

@keyframes ccm2010Pulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.35), 0 0 0 0 rgba(236, 72, 153, 0.42);
  }
  50% {
    box-shadow: 0 4px 18px rgba(219, 39, 119, 0.52), 0 0 0 6px rgba(236, 72, 153, 0);
  }
}

/* Dải thông báo chúc mừng 20/10 trong Order Sync */
.ccm2010-order-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: linear-gradient(90deg, rgba(131, 24, 67, 0.92) 0%, rgba(157, 23, 77, 0.92) 50%, rgba(112, 26, 117, 0.92) 100%);
  border-bottom: 1px solid rgba(244, 114, 182, 0.45);
  color: #fdf2f8;
  font-size: 13px;
  z-index: 25;
}

:root[data-theme="sang"] .ccm2010-order-banner {
  background: linear-gradient(90deg, #fff1f5 0%, #fce7f3 50%, #fae8ff 100%);
  border-bottom: 1px solid #f9a8d4;
  color: #831843;
}

.ccm2010-order-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 220px;
}

.ccm2010-order-banner-gift {
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  animation: ccm2010GiftWobble 2.2s ease-in-out infinite;
}

@keyframes ccm2010GiftWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-11deg) scale(1.1); }
  30% { transform: rotate(10deg) scale(1.1); }
  45% { transform: rotate(-7deg) scale(1.05); }
  60% { transform: rotate(6deg) scale(1.05); }
  75% { transform: rotate(0deg) scale(1); }
}

.ccm2010-order-banner-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.25);
  border: 1px solid rgba(249, 168, 212, 0.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:root[data-theme="sang"] .ccm2010-order-banner-tag {
  background: rgba(219, 39, 119, 0.14);
  border-color: rgba(219, 39, 119, 0.3);
  color: #be185d;
}

.ccm2010-order-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ccm2010-order-banner-cta {
  border: 0;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 55%, #be185d 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.ccm2010-order-banner-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.ccm2010-order-banner-hide {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 13px;
}

.ccm2010-order-banner-hide:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

/* Thẻ chào mừng trên trang /login */
.ccm2010-login-banner {
  background: linear-gradient(135deg, rgba(131, 24, 67, 0.88), rgba(157, 23, 77, 0.88));
  border: 1px solid rgba(244, 114, 182, 0.5);
  border-radius: 10px;
  padding: 11px 14px;
  text-align: center;
  color: #fdf2f8;
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.25);
}

:root[data-theme="sang"] .ccm2010-login-banner {
  background: linear-gradient(135deg, #fff1f5, #fce7f3);
  border-color: #f9a8d4;
  color: #9d174d;
}

/* Modal Hộp Quà & Thiệp Chúc 20/10 */
.ccm2010-overlay {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: rgba(12, 8, 20, 0.76);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.ccm2010-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ccm2010-dialog {
  position: relative;
  width: min(590px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(165deg, #fff8fb 0%, #fff0f6 45%, #fdf2f8 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), 0 0 42px rgba(236, 72, 153, 0.32);
  padding: 28px 24px 24px;
  color: #4a0e2e;
  text-align: center;
  transform: scale(0.9) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ccm2010-overlay.open .ccm2010-dialog {
  transform: scale(1) translateY(0);
}

.ccm2010-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(190, 24, 93, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #9d174d;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 3;
}

.ccm2010-close:hover {
  background: #fce7f3;
  transform: scale(1.08);
}

.ccm2010-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fce7f3, #fae8ff);
  border: 1px solid #f9a8d4;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ccm2010-head {
  font-size: 23px;
  font-weight: 850;
  color: #9d174d;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ccm2010-desc {
  font-size: 14.5px;
  color: #831843;
  margin: 0 auto 18px;
  max-width: 470px;
  line-height: 1.55;
}

/* Khung hộp quà để bấm vào */
.ccm2010-gift-stage {
  padding: 12px 8px 6px;
}

.ccm2010-gift-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  outline: none;
  position: relative;
}

.ccm2010-gift-svg-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ccm2010GiftFloat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 16px 28px rgba(219, 39, 119, 0.35));
  transition: transform 0.2s ease;
}

.ccm2010-gift-btn:hover .ccm2010-gift-svg-wrap {
  transform: scale(1.08);
}

.ccm2010-gift-stage.opening .ccm2010-gift-svg-wrap {
  animation: ccm2010GiftBurst 0.6s ease forwards;
}

@keyframes ccm2010GiftFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(-4deg); }
  40% { transform: translateY(0) rotate(4deg); }
  60% { transform: translateY(-4px) rotate(-3deg); }
  80% { transform: translateY(0) rotate(2deg); }
}

@keyframes ccm2010GiftBurst {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.18) rotate(-8deg); }
  70% { transform: scale(1.28) rotate(8deg); opacity: 0.9; }
  100% { transform: scale(0.2); opacity: 0; }
}

.ccm2010-open-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.42);
  transition: transform 0.16s, box-shadow 0.16s;
}

.ccm2010-gift-btn:hover .ccm2010-open-cta {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.55);
}

.ccm2010-gift-hint {
  font-size: 13px;
  color: #9d174d;
  opacity: 0.85;
  margin-top: 6px;
}

/* Thiệp chúc mừng sau khi mở hộp quà */
.ccm2010-card-stage {
  display: none;
  text-align: left;
  animation: ccm2010CardReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ccm2010-card-stage.show {
  display: block;
}

@keyframes ccm2010CardReveal {
  0% { opacity: 0; transform: scale(0.84) translateY(22px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.ccm2010-letter {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
  border: 2px solid #f9a8d4;
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: inset 0 0 0 4px #fff0f6, 0 12px 32px -12px rgba(190, 24, 93, 0.22);
  color: #3b0a26;
}

.ccm2010-letter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f9a8d4;
}

.ccm2010-letter-num {
  font-size: 12px;
  font-weight: 800;
  color: #be185d;
  background: #fce7f3;
  padding: 4px 11px;
  border-radius: 999px;
}

.ccm2010-letter-date {
  font-size: 12px;
  font-weight: 700;
  color: #9d174d;
}

.ccm2010-letter-title {
  font-size: 18.5px;
  font-weight: 850;
  color: #be185d;
  margin: 0 0 12px;
  line-height: 1.35;
}

.ccm2010-letter-dear {
  font-size: 14.5px;
  font-weight: 750;
  color: #831843;
  margin: 0 0 12px;
}

.ccm2010-letter-body p {
  margin: 0 0 12px;
  font-size: 14.8px;
  line-height: 1.72;
  color: #4a0e2e;
  text-align: justify;
}

.ccm2010-letter-body p:last-child {
  margin-bottom: 0;
}

.ccm2010-letter-sign {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #f9a8d4;
  text-align: right;
  font-size: 13.5px;
  font-weight: 750;
  color: #9d174d;
  line-height: 1.45;
}

.ccm2010-card-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ccm2010-btn-random {
  border: 1.5px solid #ec4899;
  background: #fff;
  color: #be185d;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s, transform 0.15s;
}

.ccm2010-btn-random:hover {
  background: #fdf2f8;
  transform: translateY(-1px);
}

.ccm2010-btn-done {
  border: 0;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 55%, #be185d 100%);
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(219, 39, 119, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

.ccm2010-btn-done:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Pháo hoa cánh hoa nổ tung khi bấm mở quà */
.ccm2010-burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 26px;
  z-index: 2;
}

.ccm2010-spark {
  position: absolute;
  left: 50%;
  top: 48%;
  font-size: 22px;
  pointer-events: none;
  animation: ccm2010SparkFly 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ccm2010SparkFly {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(1.15) rotate(var(--tr, 180deg));
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .ccm2010-dialog {
    padding: 22px 16px 18px;
    border-radius: 20px;
  }
  .ccm2010-head {
    font-size: 19.5px;
  }
  .ccm2010-letter {
    padding: 18px 15px 16px;
  }
  .ccm2010-letter-title {
    font-size: 16.5px;
  }
  .ccm2010-letter-body p {
    font-size: 14px;
    text-align: left;
  }
}

