/* Black Friday 2026 — popup + sale tags. Remove this file (and its <link>) after the sale. */

/* ---------- tags ---------- */
.badge--bf {
  color: #fde68a;
  background: #0d0b14;
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 2px 8px rgba(13, 11, 20, 0.25);
}
.badge--bf i {
  font-style: normal;
  font-weight: 900;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  direction: ltr;
  margin-left: 5px;
  padding-left: 5px;
  border-left: 1px solid rgba(250, 204, 21, 0.35);
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pcard__sale--bf {
  direction: ltr;
  letter-spacing: 0.08em;
  color: #fde68a;
  background: linear-gradient(135deg, #0d0b14, #2a1f3d);
  border: 1px solid rgba(250, 204, 21, 0.5);
  box-shadow: 0 3px 10px rgba(13, 11, 20, 0.35);
}
.vpn-volume__bf {
  position: absolute;
  top: -7px;
  right: 9px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #0d0b14;
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, 0.5);
  font-size: calc(8px * var(--font-scale, 1));
  font-weight: 900;
  white-space: nowrap;
}

.sale-timer--bf {
  color: #fde68a !important;
  background: #0d0b14 !important;
  border-color: rgba(250, 204, 21, 0.45) !important;
}
.sale-timer--bf * { color: #fde68a !important; }

/* ---------- popup ---------- */
.bf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 5, 12, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bf-overlay--on { opacity: 1; }

.bf-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 18px 14px;
  border-radius: 26px;
  text-align: center;
  color: #f5f3ff;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(250, 204, 21, 0.16), transparent 60%),
    linear-gradient(165deg, #1a1325 0%, #0c0b12 55%, #160f22 100%);
  border: 1px solid rgba(250, 204, 21, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(18px) scale(0.94);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.bf-overlay--on .bf-card { transform: none; }
.bf-card > *:not(.bf-glow):not(.bf-sparks):not(.bf-close) { position: relative; z-index: 1; }

.bf-glow {
  position: absolute;
  inset: -40% -30% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.42), transparent);
  filter: blur(10px);
  pointer-events: none;
  animation: bfGlow 4.5s ease-in-out infinite;
}
.bf-sparks { position: absolute; inset: 0; pointer-events: none; }
.bf-sparks i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 8px 2px rgba(250, 204, 21, 0.55);
  opacity: 0;
  animation: bfTwinkle 3.2s ease-in-out infinite;
}
.bf-sparks i:nth-child(1) { top: 9%; left: 12%; animation-delay: 0s; }
.bf-sparks i:nth-child(2) { top: 16%; right: 14%; animation-delay: 0.5s; }
.bf-sparks i:nth-child(3) { top: 34%; left: 6%; animation-delay: 1.1s; }
.bf-sparks i:nth-child(4) { top: 30%; right: 7%; animation-delay: 1.6s; }
.bf-sparks i:nth-child(5) { top: 52%; left: 10%; animation-delay: 2.1s; width: 3px; height: 3px; }
.bf-sparks i:nth-child(6) { top: 6%; left: 46%; animation-delay: 2.5s; width: 3px; height: 3px; }
.bf-sparks i:nth-child(7) { bottom: 22%; right: 9%; animation-delay: 0.8s; }
.bf-sparks i:nth-child(8) { bottom: 10%; left: 18%; animation-delay: 1.9s; width: 3px; height: 3px; }

.bf-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.bf-tag {
  display: inline-block;
  direction: ltr;
  padding: 6px 16px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.32em;
  background: linear-gradient(90deg, #fde68a 0%, #f59e0b 25%, #fff7d1 50%, #f59e0b 75%, #fde68a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bfShine 3s linear infinite;
}
.bf-card h3 {
  margin: 14px 0 6px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.6;
  color: #fff;
}
.bf-best {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 4px;
}
.bf-best small { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.bf-best b {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 900;
  background: linear-gradient(180deg, #fff7d1 0%, #facc15 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(250, 204, 21, 0.25));
  animation: bfPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both 0.15s;
}
.bf-sub { margin: 0 0 14px; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, 0.66); }

.bf-deals { display: grid; gap: 8px; }
.bf-deal {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.bf-deal:active { transform: scale(0.985); }
.bf-deal:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(250, 204, 21, 0.3); }
.bf-deal__logo {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--tile, #f1eafe);
  overflow: hidden;
}
.bf-deal__logo svg, .bf-deal__logo img { width: 20px; height: 20px; object-fit: contain; }
.bf-deal__logo.logo-photo img { width: 100%; height: 100%; object-fit: cover; }
.bf-deal__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bf-deal__off {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #1c1306;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.bf-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  padding: 9px 12px;
  border: 1px dashed rgba(250, 204, 21, 0.38);
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.07);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.bf-timer span { display: inline-flex; align-items: center; gap: 5px; }
.bf-timer svg { width: 14px; height: 14px; }
.bf-timer b { color: #fde68a; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }

.bf-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2px;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 60%, #d97706 100%);
  color: #1a1205;
  font: inherit;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
}
.bf-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: bfSweep 2.8s ease-in-out infinite 0.8s;
}
.bf-later {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

@keyframes bfShine { to { background-position: -200% 0; } }
@keyframes bfSweep { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes bfPop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bfGlow { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes bfTwinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 340px) {
  .bf-card { padding: 24px 14px 12px; }
  .bf-best b { font-size: 46px; }
  .bf-card h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-tag, .bf-glow, .bf-sparks i, .bf-cta::after, .bf-best b { animation: none; }
  .bf-sparks i { opacity: 0.7; }
  .bf-card, .bf-overlay { transition: none; }
}
