/* ==========================================================================
   SafarGet — Compact Luxury Animated Black Friday 33% OFF Annual Banner (v2)
   40% more compact proportions, self-isolated under #sg-bf-banner
   ========================================================================== */

#sg-bf-banner {
  position: relative;
  z-index: 12;
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 12px auto 4px;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  animation: sg-bf-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#sg-bf-banner *,
#sg-bf-banner *::before,
#sg-bf-banner *::after {
  box-sizing: border-box;
}

@keyframes sg-bf-enter {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

#sg-bf-banner .sg-bf-shell {
  position: relative;
  border-radius: 17px;
  padding: 1.5px;
  background: linear-gradient(
    125deg,
    rgba(245, 196, 81, 0.72) 0%,
    rgba(60, 230, 190, 0.55) 38%,
    rgba(245, 196, 81, 0.25) 68%,
    rgba(245, 196, 81, 0.78) 100%
  );
  background-size: 220% 220%;
  animation: sg-bf-border-flow 7s ease-in-out infinite alternate;
  box-shadow:
    0 16px 42px rgba(5, 18, 22, 0.3),
    0 4px 16px rgba(19, 169, 140, 0.14),
    0 0 24px rgba(245, 196, 81, 0.1);
}

@keyframes sg-bf-border-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#sg-bf-banner .sg-bf-card {
  position: relative;
  overflow: hidden;
  border-radius: 15.5px;
  padding: clamp(12px, 1.5vw, 17px) clamp(14px, 1.8vw, 20px);
  background:
    radial-gradient(60% 90% at 88% 20%, rgba(245, 196, 81, 0.15), transparent 65%),
    radial-gradient(55% 85% at 14% 85%, rgba(19, 169, 140, 0.22), transparent 68%),
    linear-gradient(135deg, #050d12 0%, #0a1b22 52%, #061116 100%);
  color: #eef9f5;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(168px, 0.64fr);
  align-items: center;
  gap: clamp(12px, 1.8vw, 22px);
}

/* Gliding luxury light shimmer sweep */
#sg-bf-banner .sg-bf-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    112deg,
    transparent 28%,
    rgba(245, 196, 81, 0.08) 46%,
    rgba(60, 230, 190, 0.1) 52%,
    transparent 68%
  );
  transform: translateX(-115%);
  animation: sg-bf-sweep 6.5s ease-in-out infinite;
}

@keyframes sg-bf-sweep {
  0%, 55% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* Floating ambient particles */
#sg-bf-banner .sg-bf-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#sg-bf-banner .sg-bf-spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0.65;
  animation: sg-bf-twinkle 4.2s ease-in-out infinite;
}

#sg-bf-banner .sg-bf-spark--1 {
  width: 4px;
  height: 4px;
  top: 18%;
  left: 44%;
  background: #f5c451;
  box-shadow: 0 0 10px #f5c451;
}

#sg-bf-banner .sg-bf-spark--2 {
  width: 3.5px;
  height: 3.5px;
  bottom: 22%;
  left: 30%;
  background: #3ce6be;
  box-shadow: 0 0 8px #3ce6be;
  animation-delay: 1.3s;
}

#sg-bf-banner .sg-bf-spark--3 {
  width: 4.5px;
  height: 4.5px;
  top: 26%;
  right: 12%;
  background: #f8d477;
  box-shadow: 0 0 10px #f5c451;
  animation-delay: 2.2s;
}

#sg-bf-banner .sg-bf-spark--4 {
  width: 3.5px;
  height: 3.5px;
  bottom: 16%;
  right: 42%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation-delay: 0.7s;
}

@keyframes sg-bf-twinkle {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0) scale(0.85);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-5px) scale(1.2);
  }
}

/* Dismiss Button */
#sg-bf-banner .sg-bf-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 6;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 249, 245, 0.68);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#sg-bf-banner .sg-bf-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

/* Copy Column */
#sg-bf-banner .sg-bf-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 7px;
  min-width: 0;
}

#sg-bf-banner .sg-bf-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

#sg-bf-banner .sg-bf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#sg-bf-banner .sg-bf-pill--gold {
  border: 1px solid rgba(245, 196, 81, 0.55);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.24), rgba(217, 119, 6, 0.16));
  color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.18);
}

#sg-bf-banner .sg-bf-dot-gold {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #f5c451;
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.28);
  animation: sg-bf-pulse-gold 1.9s ease-in-out infinite;
}

@keyframes sg-bf-pulse-gold {
  50% {
    box-shadow: 0 0 0 6px rgba(245, 196, 81, 0.04);
    opacity: 0.72;
  }
}

#sg-bf-banner .sg-bf-pill--real {
  border: 1px solid rgba(60, 230, 190, 0.42);
  background: rgba(19, 169, 140, 0.18);
  color: #6ff2d1;
}

#sg-bf-banner .sg-bf-pill--timer {
  border: 1px solid rgba(251, 113, 133, 0.38);
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
}

#sg-bf-banner .sg-bf-countdown {
  display: inline-block;
  font-family: "Manrope", ui-monospace, monospace;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  direction: ltr;
  unicode-bidi: isolate;
}

#sg-bf-banner .sg-bf-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(16px, 1.85vw, 21px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.4px;
}

#sg-bf-banner .sg-bf-gold {
  background: linear-gradient(120deg, #fff1b8 0%, #f5c451 42%, #3ce6be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#sg-bf-banner .sg-bf-desc {
  margin: 0;
  color: #b4cec6;
  font-size: 11.5px;
  line-height: 1.52;
  max-width: 470px;
}

/* Coupon Pill + Claim CTA Row */
#sg-bf-banner .sg-bf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

#sg-bf-banner .sg-bf-coupon {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 5px 3px 10px;
  border-radius: 10px;
  border: 1.5px dashed rgba(245, 196, 81, 0.62);
  background: rgba(245, 196, 81, 0.08);
  color: #fff8dc;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

html[dir="rtl"] #sg-bf-banner .sg-bf-coupon {
  padding: 3px 10px 3px 5px;
}

#sg-bf-banner .sg-bf-coupon:hover {
  transform: translateY(-1.5px);
  background: rgba(245, 196, 81, 0.15);
  border-color: #f5c451;
  box-shadow: 0 8px 18px rgba(245, 196, 81, 0.18);
}

#sg-bf-banner .sg-bf-coupon.is-copied {
  border-style: solid;
  border-color: #3ce6be;
  background: rgba(19, 169, 140, 0.22);
}

#sg-bf-banner .sg-bf-coupon-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #d6e6df;
}

#sg-bf-banner .sg-bf-code {
  font-family: "Manrope", ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fde68a;
  direction: ltr;
  unicode-bidi: isolate;
}

#sg-bf-banner .sg-bf-copy-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

#sg-bf-banner .sg-bf-coupon.is-copied .sg-bf-copy-tag {
  background: #13a98c;
  color: #ffffff;
}

#sg-bf-banner .sg-bf-copy-tag svg {
  display: block;
  width: 11px;
  height: 11px;
  color: currentColor;
  flex: none;
}

#sg-bf-banner .sg-bf-cta {
  position: relative;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(254, 240, 138, 0.55);
  background: linear-gradient(135deg, #f5c451 0%, #eab308 42%, #13a98c 100%);
  color: #061317;
  font-size: 11.5px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(245, 196, 81, 0.25), inset 0 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

#sg-bf-banner .sg-bf-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.45) 50%, transparent 78%);
  transform: translateX(-125%);
  animation: sg-bf-btn-shine 3.6s ease-in-out infinite;
}

@keyframes sg-bf-btn-shine {
  0%, 58% {
    transform: translateX(-125%);
  }
  100% {
    transform: translateX(130%);
  }
}

#sg-bf-banner .sg-bf-cta:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 12px 26px rgba(245, 196, 81, 0.35), 0 4px 14px rgba(19, 169, 140, 0.24);
  filter: brightness(1.04);
}

#sg-bf-banner .sg-bf-cta svg {
  display: block;
  width: 12.5px;
  height: 12.5px;
  color: currentColor;
  flex: none;
}

/* Artwork Column */
#sg-bf-banner .sg-bf-art-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sg-bf-banner .sg-bf-art-glow {
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 65%, rgba(60, 230, 190, 0.32), transparent 62%),
    radial-gradient(circle at 72% 35%, rgba(245, 196, 81, 0.3), transparent 64%);
  filter: blur(16px);
  opacity: 0.74;
  pointer-events: none;
  animation: sg-bf-art-glow-pulse 5.5s ease-in-out infinite alternate;
}

@keyframes sg-bf-art-glow-pulse {
  0% {
    opacity: 0.56;
    transform: scale(0.97);
  }
  100% {
    opacity: 0.88;
    transform: scale(1.03);
  }
}

#sg-bf-banner .sg-bf-art-frame {
  position: relative;
  width: 100%;
  max-width: 245px;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(245, 196, 81, 0.36);
  background: #061015;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  animation: sg-bf-float 5.4s ease-in-out infinite;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

#sg-bf-banner .sg-bf-art-frame:hover {
  border-color: rgba(60, 230, 190, 0.65);
}

@keyframes sg-bf-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

#sg-bf-banner .sg-bf-art-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

#sg-bf-banner .sg-bf-art-ribbon {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  z-index: 2;
  padding: 2.5px 7px;
  border-radius: 999px;
  background: rgba(5, 12, 16, 0.78);
  border: 1px solid rgba(245, 196, 81, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fde68a;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#sg-bf-banner .sg-bf-price-badge {
  position: absolute;
  bottom: 6px;
  inset-inline-end: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3.5px 8px;
  border-radius: 9px;
  background: rgba(5, 13, 18, 0.84);
  border: 1px solid rgba(60, 230, 190, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  direction: ltr;
}

#sg-bf-banner .sg-bf-price-old {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-decoration: line-through;
}

#sg-bf-banner .sg-bf-price-new {
  color: #3ce6be;
  font-family: "Manrope", sans-serif;
  font-size: 12.5px;
  font-weight: 900;
}

#sg-bf-banner .sg-bf-price-off {
  padding: 1.5px 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f5c451, #eab308);
  color: #071318;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 720px) {
  #sg-bf-banner .sg-bf-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #sg-bf-banner .sg-bf-badges,
  #sg-bf-banner .sg-bf-actions {
    justify-content: center;
  }

  #sg-bf-banner .sg-bf-desc {
    margin-inline: auto;
  }

  #sg-bf-banner .sg-bf-art-wrap {
    order: -1;
  }

  #sg-bf-banner .sg-bf-art-frame {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  #sg-bf-banner {
    margin-top: 10px;
    padding: 0 12px;
  }

  #sg-bf-banner .sg-bf-card {
    padding: 13px 12px;
    gap: 11px;
  }

  #sg-bf-banner .sg-bf-coupon,
  #sg-bf-banner .sg-bf-cta {
    width: 100%;
    justify-content: center;
  }

  #sg-bf-banner .sg-bf-title {
    font-size: 15.5px;
  }

  #sg-bf-banner .sg-bf-desc {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sg-bf-banner,
  #sg-bf-banner .sg-bf-shell,
  #sg-bf-banner .sg-bf-shine,
  #sg-bf-banner .sg-bf-spark,
  #sg-bf-banner .sg-bf-dot-gold,
  #sg-bf-banner .sg-bf-cta::after,
  #sg-bf-banner .sg-bf-art-glow,
  #sg-bf-banner .sg-bf-art-frame {
    animation: none !important;
  }
}
