/* Cookie consent banner */
#sq-cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: #15181b; color: #e7e9eb;
  border-radius: 8px; box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  padding: 16px 20px; z-index: 9990;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 13px; line-height: 1.5;
  animation: sqSlideUp 400ms cubic-bezier(.16,1,.3,1) both;
}
[dir="rtl"] #sq-cookie { font-family: "Readex Pro", sans-serif; }
@keyframes sqSlideUp { from { opacity: 0; transform: translateY(20px); } }
#sq-cookie .sq-cookie-text { flex: 1 1 280px; color: #aeb4bb; }
#sq-cookie .sq-cookie-text strong { color: #fff; }
#sq-cookie .sq-cookie-btns { display: flex; gap: 8px; }
#sq-cookie button {
  border: none; cursor: pointer; padding: 8px 16px; border-radius: 4px;
  font-family: inherit; font-size: 13px; font-weight: 600; transition: all 200ms;
}
#sq-cookie .sq-cookie-decline { background: transparent; color: #aeb4bb; border: 1px solid #2c333a; }
#sq-cookie .sq-cookie-decline:hover { background: #2c333a; color: #fff; }
#sq-cookie .sq-cookie-accept { background: #1FA84A; color: #fff; }
#sq-cookie .sq-cookie-accept:hover { background: #0D8A35; }

/* Newsletter popup */
#sq-newsletter-pop {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(2,25,8,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: sqFade 250ms ease-out;
}
@keyframes sqFade { from { opacity: 0; } }
#sq-newsletter-pop .sq-pop-card {
  background: #fbfaf7; border-radius: 8px;
  padding: 36px; max-width: 460px; width: 100%; position: relative;
  animation: sqPopIn 400ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes sqPopIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } }
#sq-newsletter-pop .sq-pop-close {
  position: absolute; top: 14px; right: 16px; background: transparent; border: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: #5a626a;
}
[dir="rtl"] #sq-newsletter-pop .sq-pop-close { right: auto; left: 16px; }
#sq-newsletter-pop .sq-pop-eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em;
  color: #1FA84A; font-weight: 600; margin-bottom: 12px;
}
#sq-newsletter-pop h3 {
  font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; letter-spacing: -0.018em;
  margin: 0; color: #15181b; line-height: 1.15;
}
[dir="rtl"] #sq-newsletter-pop h3 { font-family: "Readex Pro", sans-serif; font-weight: 700; }
#sq-newsletter-pop p { color: #5a626a; font-size: 14px; margin: 12px 0 22px; line-height: 1.55; }
#sq-newsletter-pop form { display: flex; gap: 8px; flex-wrap: wrap; }
#sq-newsletter-pop input {
  flex: 1 1 200px; padding: 12px 14px; border: 1px solid #d2d6da; border-radius: 4px;
  font-size: 14px; font-family: inherit; background: #fff; outline: none;
}
#sq-newsletter-pop input:focus { border-color: #1FA84A; }
#sq-newsletter-pop form button {
  background: #062E13; color: #fff; border: none; padding: 12px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
#sq-newsletter-pop form button:hover { background: #1FA84A; }
.sq-pop-success { text-align: center; padding: 20px 0; }
.sq-pop-tick { width: 56px; height: 56px; border-radius: 50%; background: #1FA84A; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }

@media (max-width: 480px) {
  #sq-cookie { flex-direction: column; align-items: stretch; }
  #sq-cookie .sq-cookie-btns { justify-content: stretch; }
  #sq-cookie .sq-cookie-btns button { flex: 1; }
}
