/* Popup Black Friday 23/11 đến 02/12/2026 (bfpop), sinh bởi shared/make_bfpop.py từ
   working/landing page/banners/popup-black-friday-2026/banner.html. Đừng sửa tay. */
/* ===== POPUP BLACK FRIDAY (bfpop) — nâu đậm + cam, cùng hệ poster và /promotion/ ===== */

  .bfpop-gate{position:absolute;width:0;height:0;opacity:0;pointer-events:none;display:none !important}
  .bfpop{display:none}

  /* Trễ 10 giây. keyframe 0% visibility:hidden nên không chặn click trong 10 giây đầu. */
  @keyframes bfpopShow{from{visibility:hidden}to{visibility:visible}}
  .bfpop-gate:checked ~ .bfpop{
    display:flex;align-items:flex-start;justify-content:center;
    position:fixed;inset:0;z-index:100002;padding:20px;
    overflow-y:auto;overscroll-behavior:contain;
    animation:bfpopShow .01s linear 10s both;
  }

  body:has(.bfpop-gate:checked) .tfa-ct{display:none !important}


  .bfpop-back{
    position:fixed;inset:0;cursor:pointer;
    background:rgba(18,8,3,.66);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
    animation:bfpopFade .4s ease 10s both;
  }
  @keyframes bfpopFade{from{opacity:0}to{opacity:1}}

  .bfpop-card,
  .bfpop-card *{box-sizing:border-box}
  .bfpop-card{
    --o1:#ff9a4d;--o2:#f26a12;--o3:#d9520c;
    --cream:#fffcf7;
    /* 5 cỡ chữ */
    --fs-title:clamp(54px,15vw,76px);
    --fs-pct:clamp(30px,8.4vw,38px);
    --fs-cta:17px;
    --fs-body:15px;
    --fs-label:13px;

    position:relative;z-index:1;isolation:isolate;overflow:hidden;
    width:min(100%,460px);margin:auto;
    padding:34px 26px 26px;border-radius:24px;
    border:1px solid rgba(255,154,77,.28);
    background:radial-gradient(120% 80% at 50% 0%,#4a2210 0%,#2a1409 55%,#1c0d06 100%);
    box-shadow:0 30px 80px rgba(0,0,0,.5);
    color:#fff;text-align:center;line-height:1.3;
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    animation:bfpopIn .5s cubic-bezier(.2,.9,.25,1.04) 10s both;
  }
  @keyframes bfpopIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}

  /* ---------- trang trí: quầng cam dưới vé, sao, đồng xu % như poster ---------- */
  .bfpop-glow{position:absolute;z-index:-1;left:50%;top:58%;width:130%;height:60%;transform:translate(-50%,-50%);
    border-radius:50%;background:radial-gradient(closest-side,rgba(242,106,18,.42),rgba(242,106,18,0));pointer-events:none}
  .bfpop-spark{position:absolute;z-index:-1;fill:var(--o1);pointer-events:none}
  .bfpop-spark.s1{width:22px;height:22px;left:30px;top:150px}
  .bfpop-spark.s2{width:16px;height:16px;left:52px;top:96px;fill:#fff;opacity:.85}
  .bfpop-coin{position:absolute;z-index:-1;display:flex;align-items:center;justify-content:center;border-radius:50%;
    font-weight:900;color:#fff;background:radial-gradient(circle at 35% 30%,#ffb070,#f26a12 60%,#c94e06);
    box-shadow:0 8px 18px rgba(0,0,0,.4),inset 0 -3px 0 rgba(0,0,0,.18);pointer-events:none}
  .bfpop-coin.c1{width:46px;height:46px;font-size:var(--fs-cta);left:-8px;top:38px;transform:rotate(-14deg)}
  .bfpop-coin.c2{width:40px;height:40px;font-size:var(--fs-body);right:18px;top:124px;transform:rotate(12deg)}

  /* ---------- nút đóng ---------- */
  .bfpop-x{
    position:absolute;z-index:3;top:14px;right:14px;
    display:flex;align-items:center;justify-content:center;
    width:36px;height:36px;border-radius:50%;cursor:pointer;
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);
    color:#fff !important;transition:transform .2s,background .2s;
  }
  .bfpop-x:hover{transform:rotate(90deg);background:rgba(255,255,255,.2)}
  .bfpop-x svg{width:16px;height:16px}

  /* ---------- nội dung ---------- */
  .bfpop-win{
    display:inline-flex;align-items:center;gap:8px;
    border:1.5px solid rgba(255,255,255,.5);color:#fff;
    font-size:var(--fs-label);font-weight:700;letter-spacing:.02em;
    padding:7px 15px;border-radius:100px;margin:0 0 14px;
  }
  .bfpop-win .dot{width:7px;height:7px;border-radius:50%;background:var(--o1);animation:bfpopPulse 2s infinite}
  @keyframes bfpopPulse{0%{box-shadow:0 0 0 0 rgba(255,154,77,.7)}70%{box-shadow:0 0 0 8px rgba(255,154,77,0)}100%{box-shadow:0 0 0 0 rgba(255,154,77,0)}}

  .bfpop-title{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
    font-size:var(--fs-title) !important;font-weight:900 !important;
    line-height:.9 !important;letter-spacing:-.045em !important;text-transform:uppercase;
    color:#fff !important;margin:0 0 20px !important;padding:0 !important;
    text-shadow:0 .035em 0 #e9d6c0,0 .07em 0 #8a6a52,0 .14em .28em rgba(0,0,0,.5);
  }
  .bfpop-title .o{color:#ff7a1f;text-shadow:0 .035em 0 #d9520c,0 .07em 0 #9c3a06,0 .14em .28em rgba(0,0,0,.5)}

  /* 3 vé giảm giá: viền cam, ruột kem, khuyết hai bên như poster */
  .bfpop-tix{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:0 0 16px}
  .bfpop .tix{
    position:relative;display:flex;flex-direction:column;align-items:center;
    padding:6px 5px 5px;border-radius:12px;
    background:linear-gradient(180deg,var(--o1),var(--o2) 60%,var(--o3));
    box-shadow:0 10px 22px rgba(0,0,0,.35);
  }
  .bfpop .tix::before,.bfpop .tix::after{content:"";position:absolute;top:62%;width:12px;height:12px;border-radius:50%;background:#2a1409;transform:translateY(-50%)}
  .bfpop .tix::before{left:-6px}
  .bfpop .tix::after{right:-6px}
  .bfpop .tix-k{font-size:var(--fs-label);font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#fff;margin:0 0 4px;line-height:1.2}
  .bfpop .tix-v{
    display:block;width:100%;border-radius:8px;background:var(--cream);
    font-size:var(--fs-pct);font-weight:900;letter-spacing:-.04em;line-height:1.15;padding:4px 0 3px;
    color:#e8480f;
  }
  .bfpop .tix-max{transform:translateY(-4px) scale(1.05)}

  .bfpop-sub{
    font-size:var(--fs-body) !important;line-height:1.5 !important;
    color:rgba(255,255,255,.84) !important;margin:0 auto 18px !important;padding:0 !important;max-width:340px;
  }

  .bfpop-cta{
    display:inline-flex;align-items:center;justify-content:center;gap:10px;
    text-decoration:none !important;color:#fff !important;
    background:linear-gradient(180deg,#ff8a3d,#f26a12 55%,#d9520c);
    font-size:var(--fs-cta);font-weight:700;padding:15px 30px;border-radius:100px;
    box-shadow:0 12px 26px rgba(242,106,18,.4),inset 0 1px 0 rgba(255,255,255,.35);
    transition:transform .2s cubic-bezier(.165,.84,.44,1),box-shadow .2s;
  }
  .bfpop-cta:hover{color:#fff !important;transform:translateY(-2px);box-shadow:0 16px 32px rgba(242,106,18,.5),inset 0 1px 0 rgba(255,255,255,.35)}
  .bfpop-cta .cta-arrow{width:18px;height:18px;transition:transform .25s}
  .bfpop-cta:hover .cta-arrow{transform:translateX(4px)}

  .bfpop a:focus-visible,.bfpop-x:focus-visible{outline:3px solid #fff;outline-offset:3px}

  /* ---------- RESPONSIVE ---------- */
  @media(max-width:560px){
    .bfpop-gate:checked ~ .bfpop{padding:0}
    .bfpop-card{
      width:100%;margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0;
      padding:30px 18px 20px;
      animation:bfpopUp .45s cubic-bezier(.2,.9,.25,1.04) 10s both;
    }
    .bfpop-tix{gap:8px}
    .bfpop-cta{width:100%}
    .bfpop-spark.s1{left:16px}
  }
  @keyframes bfpopUp{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}

  /* Cửa sổ thấp: thu tiêu đề, bỏ câu phụ để card vừa khung nhìn */
  @media(max-height:640px){
    .bfpop-card{--fs-title:44px;padding-top:22px;padding-bottom:16px}
    .bfpop-title{margin-bottom:14px !important}
    .bfpop-sub{display:none}
    .bfpop-tix{margin-bottom:14px}
  }

  @media(prefers-reduced-motion:reduce){
    .bfpop-back,.bfpop-card{animation:none !important;opacity:1 !important;transform:none !important}
    .bfpop-card *{animation:none !important;transition:none !important}
  }
