/* ============================================================
   Promo top bar + buy dropdown
   Copied from Docy landing. Topbar colors are unchanged.
   Dropdown featured accents use the Banca brand color.
   ============================================================ */

:root {
  --promo-bar-h: 0px;
  --buy-brand: #0050b2;
  --buy-brand-gradient: linear-gradient(135deg, #0050b2, #3378d4);
  --buy-brand-on: #fff;
}

body.has-promo-bar {
  --promo-bar-h: 70px;
}

html.promo-off body.has-promo-bar {
  --promo-bar-h: 0px;
}

html.promo-off .promo-bar {
  display: none;
}

body.has-promo-bar .navbar {
  top: var(--promo-bar-h);
  z-index: 100;
  overflow: visible;
}

.navbar .container {
  overflow: visible;
}

body.has-promo-bar .body_wrapper {
  overflow: visible;
}

body.has-promo-bar .mockup {
  top: var(--promo-bar-h);
}

.demo_footer .buy-menu {
  z-index: 5;
}

/* ── Buy dropdown (Purchase → our site / ThemeForest) ── */
.buy-menu {
  position: relative;
  display: inline-flex;
}

.buy-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  color: #fff;
}

.buy-menu__toggle > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #fff;
  stroke: #fff;
  stroke-width: 2.75px;
  opacity: 1;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.buy-menu:hover .buy-menu__toggle > svg,
.buy-menu.is-open .buy-menu__toggle > svg {
  transform: rotate(180deg);
}

.buy-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 330px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.06);
  padding: 8px;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1) 120ms,
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1) 120ms,
    visibility 0s linear 280ms;
  z-index: 200;
  text-align: left;
}

.buy-menu:hover .buy-menu__dropdown,
.buy-menu:focus-within .buy-menu__dropdown,
.buy-menu.is-open .buy-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.buy-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2c3a52;
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.buy-menu__item:hover,
.buy-menu__item:focus {
  background: #f4f4f5;
  color: #2c3a52;
  text-decoration: none;
}

.buy-menu__item-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f4f4f5;
  color: #364553;
}

.buy-menu__item-icon i,
.buy-menu__item-icon svg {
  width: 17px;
  height: 17px;
}

.buy-menu__item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.buy-menu__item-text strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1d2746;
}

.buy-menu__item-text em {
  font-size: 11.5px;
  font-style: normal;
  color: #364553;
}

.buy-menu__item--featured {
  background: color-mix(in oklch, var(--buy-brand) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--buy-brand) 22%, transparent);
}

.buy-menu__item--featured:hover {
  background: color-mix(in oklch, var(--buy-brand) 14%, transparent);
}

.buy-menu__item--featured .buy-menu__item-icon {
  background: var(--buy-brand-gradient);
  color: var(--buy-brand-on);
}

.buy-menu__badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--buy-brand-gradient);
  color: var(--buy-brand-on);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.buy-menu--center .buy-menu__dropdown {
  right: auto;
  left: 50%;
  transform: translate(-50%, -6px);
}

.buy-menu--center:hover .buy-menu__dropdown,
.buy-menu--center:focus-within .buy-menu__dropdown,
.buy-menu--center.is-open .buy-menu__dropdown {
  transform: translate(-50%, 0);
}

.buy-menu--start .buy-menu__dropdown {
  right: auto;
  left: 0;
}

/* ============================================================
   Promo top bar · Buy direct = extra 40% off
   Colors copied as-is from Docy. Only the product URL changes.
   ============================================================ */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--promo-bar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #0b0c20;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(105deg, #0a0b1e 0%, #17173f 50%, #0b0c22 100%);
  background-size: 40px 40px, 40px 40px, auto;
  background-repeat: repeat, repeat, no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.promo-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 200% at 2% 8%, color-mix(in oklch, #4c4cf1 36%, transparent), transparent 55%),
    radial-gradient(ellipse 42% 220% at 99% 92%, color-mix(in oklch, #818cf8 32%, transparent), transparent 55%),
    radial-gradient(ellipse 30% 150% at 72% -20%, color-mix(in oklch, #f97316 12%, transparent), transparent 60%);
  pointer-events: none;
}

.promo-bar__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap;
}

.promo-bar__lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.promo-bar__lead-icon {
  width: 22px;
  height: 22px;
  color: #f97316;
  flex-shrink: 0;
}

.promo-bar__lead-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
}

.promo-bar__title {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
}

.promo-bar__deal {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.promo-bar__deal-top {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.promo-bar__deal-num {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffe066 0%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f59e0b;
}

.promo-bar__deal-off {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.promo-bar__countdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.promo-bar__count-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.promo-bar__timer {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.promo-bar__timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 26px;
  line-height: 1;
}

.promo-bar__timer-unit b {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.promo-bar__timer-unit span {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.promo-bar__timer-sep {
  width: 1px;
  height: 18px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.promo-bar__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4c4cf1, #7b7bf4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 6px 18px rgba(76, 76, 241, 0.32);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-bar__cta i,
.promo-bar__cta svg {
  width: 15px;
  height: 15px;
}

.promo-bar__cta:hover,
.promo-bar__cta:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 10px 26px rgba(76, 76, 241, 0.45);
}

.promo-bar__close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 3;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1),
    color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-bar__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.promo-bar__close i,
.promo-bar__close svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1200px) {
  .promo-bar__title { display: none; }
}

@media (max-width: 980px) {
  .promo-bar__lead-text { display: none; }
  .promo-bar__inner { justify-content: center; gap: 26px; }
}

@media (max-width: 760px) {
  .promo-bar__count-label { display: none; }
  .promo-bar__timer-unit span { display: none; }
  .promo-bar__timer-sep { height: 14px; }
}

@media (max-width: 600px) {
  body.has-promo-bar { --promo-bar-h: 58px; }
  .promo-bar__inner {
    gap: 14px;
    padding: 0 40px 0 14px;
  }
  .promo-bar__lead { display: none; }
  .promo-bar__countdown { display: none; }
  .promo-bar__deal-num { font-size: 28px; }
  .promo-bar__cta { padding: 9px 16px; font-size: 13px; }
}
