/* Campaign Bar — minimal & sleek */
#lpp-campaign-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999997;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.34,1.2,.64,1);
  /* prevent scroll */
  will-change: transform;
}
#lpp-campaign-bar.lpp-bar-visible { transform: translateY(0); }

.admin-bar #lpp-campaign-bar { top: 32px; }
@media (max-width:782px) { .admin-bar #lpp-campaign-bar { top: 46px; } }

/* Inner row */
.lpp-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 40px;
  min-height: 38px;
  direction: rtl;
  position: relative;
  /* shimmer */
  overflow: hidden;
}
.lpp-bar-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,.1) 50%,transparent 100%);
  transform: translateX(-100%);
  animation: lpp-shimmer 2.8s infinite;
  pointer-events: none;
}
@keyframes lpp-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Text */
.lpp-bar-text {
  font-size: 13px;
  font-weight: 600;
  font-family: Tahoma, 'Vazir', sans-serif;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65vw;
}
@media (max-width:480px) {
  .lpp-bar-text { font-size: 11px; max-width: 55vw; }
}

/* CTA button */
.lpp-bar-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: Tahoma, sans-serif;
  text-decoration: none;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  transition: background .15s, transform .12s;
  white-space: nowrap;
  flex-shrink: 0;
}
.lpp-bar-cta:hover { background: rgba(255,255,255,.32); transform: scale(1.03); }

/* Close */
.lpp-bar-close {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.12);
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  cursor: pointer;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
  opacity: .75;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.lpp-bar-close:hover { opacity: 1; background: rgba(0,0,0,.2); }

/* Push body */
body.lpp-has-bar { padding-top: 38px !important; transition: padding-top .4s; }
