/* ==========================================================================
   Đồng hồ đếm lùi giá ưu đãi (25/10/2026, người dùng duyệt kiểu "ô số").
   Dùng chung cho trang Plugin (/filmlook-grade-engine) và trang chủ — markup do js/grade-engine-render.js
   dựng (countdownMarkup). Hai kiểu:
   - .ge-cd-pricing: thanh trên bốn thẻ giá, mỗi số một ô.
   - .ge-cd-hero: dải nhỏ, là link — trang Plugin nằm dưới cụm thẻ Hero (cuộn xuống Báo giá), trang chủ nằm
     dưới hai nút (mở mục Báo giá trang Plugin).
   Số trắng phát sáng nhẹ bằng text-shadow (không filter); chữ số đều bề ngang để không rung khi đổi số.
   Màu lấy biến của trang Plugin, trang chủ không có biến đó thì dùng giá trị dự phòng.
   ========================================================================== */
.ge-cd[hidden] { display: none; }
.ge-cd .ge-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--red, #f51c27); animation: ge-cd-pulse 1.6s ease-out infinite; }
@keyframes ge-cd-pulse { from { box-shadow: 0 0 0 0 rgba(245, 28, 39, .6); } to { box-shadow: 0 0 0 8px rgba(245, 28, 39, 0); } }
.ge-cd-label { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--cream, #eeece5); font-size: 11px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; }
.ge-cd-units { display: flex; align-items: flex-start; gap: 10px; }
.ge-cd-unit { display: flex; flex-direction: column; align-items: center; }
.ge-cd-num {
  color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em;
  text-shadow: 0 0 6px rgba(255, 255, 255, .55), 0 0 18px rgba(255, 255, 255, .28), 0 0 36px rgba(255, 90, 98, .22);
}
.ge-cd-cap { margin-top: 8px; color: var(--muted, #aaa7a0); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ge-cd-sep { color: rgba(255, 255, 255, .45); font-weight: 700; line-height: 1; }

/* Thanh trên bốn thẻ giá */
.ge-cd-pricing {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 22px; padding: 22px 26px;
  border: 1px solid rgba(245, 28, 39, .45); border-radius: 18px; background: linear-gradient(90deg, rgba(64, 10, 14, .9), rgba(16, 8, 9, .9));
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ge-cd-note { margin: 8px 0 0; color: var(--muted, #aaa7a0); font-size: 14px; }
.ge-cd-pricing .ge-cd-unit { min-width: 84px; padding: 14px 10px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(0, 0, 0, .45); }
.ge-cd-pricing .ge-cd-num { font-size: 44px; }
.ge-cd-pricing .ge-cd-sep { padding-top: 18px; font-size: 32px; }

/* Dải nhỏ (link) */
.ge-cd-hero {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 26px; padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(0, 0, 0, .45);
  color: inherit; text-decoration: none; transition: border-color .22s ease, background-color .22s ease;
}
a.ge-cd-hero:hover, a.ge-cd-hero:focus-visible { border-color: rgba(245, 28, 39, .6); background: rgba(40, 6, 9, .6); }
a.ge-cd-hero:focus-visible { outline: 2px solid var(--cream, #eeece5); outline-offset: 3px; }
.ge-cd-hero .ge-cd-label { font-size: 10px; }
.ge-cd-hero .ge-cd-units { align-items: baseline; gap: 6px; }
.ge-cd-hero .ge-cd-unit { flex-direction: row; align-items: baseline; gap: 3px; }
.ge-cd-hero .ge-cd-num { font-size: 22px; }
.ge-cd-hero .ge-cd-cap { margin: 0; font-size: 10px; letter-spacing: .06em; text-transform: none; }
.ge-cd-hero .ge-cd-sep { font-size: 18px; }
/* Trang Plugin: dải nằm dưới chú thích cụm thẻ Hero, rộng bằng cụm thẻ, chữ trái — số phải. */
.ge-deck-wrap .ge-cd-hero { display: flex; justify-content: space-between; margin-top: 16px; }

@media (max-width: 640px) {
  .ge-cd-pricing { padding: 18px 16px; }
  .ge-cd-pricing .ge-cd-units { width: 100%; justify-content: space-between; gap: 4px; }
  .ge-cd-pricing .ge-cd-unit { flex: 1; min-width: 0; padding: 12px 4px 10px; }
  .ge-cd-pricing .ge-cd-num { font-size: 30px; }
  .ge-cd-pricing .ge-cd-sep { padding-top: 14px; font-size: 22px; }
  .ge-cd-hero .ge-cd-num { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ge-cd .ge-dot { animation: none; }
  .ge-cd-hero { transition: none; }
}
