:root {
  --ssb-h: 0px;
}
.nav {
  top: var(--ssb-h, 0px) !important;
  position: fixed !important;
  left: 0;
  right: 0;
  background: #0a0c10 !important;
  margin-top: -1px !important;
  border-top: 1px solid var(--line, rgba(255,255,255,.06)) !important;
}

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */


@keyframes ssb-fade-up {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ssb-cta-glow {
  0%, 100% { box-shadow: 0 2px 14px rgba(77, 200, 160, 0.25); }
  50% { box-shadow: 0 2px 20px rgba(77, 200, 160, 0.35); }
}

@keyframes ssb-sun-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   BANNER SHELL
   ═══════════════════════════════════════════ */

.ssb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 201;
  padding-top: env(safe-area-inset-top, 0px);
  overflow: hidden;
  background: #060e18;
  animation: ssb-fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  border-bottom: 1px solid rgba(77, 184, 232, 0.08);
}

/* Spacer to push page content below fixed banner + nav */
body[data-topbar-context] {
  padding-top: var(--ssb-total-h, 0px) !important;
}

/* Background canvas container */
.ssb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ssb-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ambient lighting — warm sun glow left, cool right */
.ssb::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 360px 220px at 7% 50%, rgba(240, 180, 50, 0.11) 0%, rgba(240, 180, 50, 0.04) 46%, transparent 74%),
    radial-gradient(ellipse 620px 360px at -10% 50%, rgba(232, 140, 30, 0.05) 0%, transparent 78%),
    radial-gradient(ellipse 420px 260px at 103% 50%, rgba(60, 200, 140, 0.07) 0%, transparent 68%),
    radial-gradient(ellipse 240px 220px at 50% 50%, rgba(77, 184, 232, 0.03) 0%, transparent 64%);
}



/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.ssb-inner {
  position: relative;
  z-index: 1;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  height: clamp(52px, 7vw, 60px);
}

/* ═══════════════════════════════════════════
   LEFT — BRAND MARK
   ═══════════════════════════════════════════ */

.ssb-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-right: clamp(1.2rem, 3vw, 3rem);
}

.ssb-sun {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.28));
}

.ssb-sun::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.22) 0%, rgba(245, 200, 66, 0.08) 45%, transparent 72%);
  z-index: -1;
}

.ssb-sun svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ssb-sun-core {
  fill: #f5c842;
}

.ssb-sun-rays {
  stroke: #f5c842;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.9;
  transform-origin: center;
  transform-box: fill-box;
  animation: ssb-sun-rotate 20s linear infinite;
}

.ssb-headline {
  font-size: clamp(0.88rem, 1.05vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 20%, #5ee0ff 50%, #4eeaaa 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(78, 234, 170, 0.3));
  text-shadow: 0 0 20px rgba(94, 224, 255, 0.2);
}

/* ═══════════════════════════════════════════
   CENTER — MESSAGE
   ═══════════════════════════════════════════ */

.ssb-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  min-width: 0;
}

.ssb-copy {
  font-size: clamp(0.76rem, 0.84vw, 0.9rem);
  font-weight: 400;
  color: rgba(220, 232, 245, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.005em;
}

.ssb-highlight {
  color: #fff;
  font-weight: 700;
}

.ssb-accent {
  color: #4df5b0;
  font-weight: 800;
}

/* Coupon badge */
.ssb-coupon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(77, 200, 232, 0.3);
  background: rgba(10, 20, 35, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.74rem, 0.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7ee0ff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(77, 184, 232, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}

.ssb-coupon:hover {
  background: rgba(10, 25, 45, 0.8);
  border-color: rgba(77, 200, 232, 0.5);
  box-shadow: 0 0 20px rgba(77, 184, 232, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ssb-coupon:focus-visible {
  outline: 2px solid rgba(77, 200, 232, 0.7);
  outline-offset: 2px;
}

.ssb-coupon--copied {
  background: rgba(61, 200, 140, 0.12);
  border-color: rgba(61, 200, 140, 0.4);
  color: #5fffb0;
  text-shadow: 0 0 10px rgba(95, 255, 176, 0.3);
}

.ssb-coupon-icon {
  font-size: 0.82rem;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.ssb-coupon:hover .ssb-coupon-icon {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   RIGHT — URGENCY + CTA
   ═══════════════════════════════════════════ */

.ssb-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.6rem);
  flex-shrink: 0;
  margin-left: clamp(1.2rem, 3vw, 3rem);
}

/* Countdown */
.ssb-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.76rem, 0.82vw, 0.86rem);
}

.ssb-countdown-num {
  font-weight: 800;
  color: #fff;
  min-width: 1.3em;
  text-align: right;
}

.ssb-countdown-unit {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(160, 190, 220, 0.6);
  margin-right: 0.4rem;
}
.ssb-countdown-unit:last-child {
  margin-right: 0;
}

/* CTA button */
.ssb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: .48rem .95rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accentB, #3dbd72), rgba(61,189,114,.85));
  color: #fff;
  font: 700 var(--fs-sm, 0.82rem)/1 var(--font-sans, 'Inter', sans-serif);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 2px 10px rgba(61,189,114,.35);
}

.ssb-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61,189,114,.5);
}

.ssb-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Close / dismiss button */
.ssb-close {
  position: absolute;
  right: clamp(0.5rem, 1.5vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(200, 215, 230, 0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  font-size: 0;
}
.ssb-close .material-symbols-rounded {
  font-size: 14px;
}
.ssb-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ssb-close:focus-visible {
  outline: 2px solid rgba(77, 200, 232, 0.7);
  outline-offset: 2px;
}

/* Screen reader */
.ssb-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .ssb-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.65rem clamp(0.8rem, 4vw, 1.2rem);
    justify-content: center;
    gap: 0.35rem 0.65rem;
  }

  .ssb-left {
    order: 1;
    margin-right: auto;
  }

  .ssb-right {
    order: 2;
    margin-left: auto;
    gap: 0.5rem;
  }

  .ssb-center {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.2rem 0 0.1rem;
  }

  .ssb-copy {
    white-space: normal;
    text-align: center;
    font-size: clamp(0.66rem, 3vw, 0.76rem);
    flex-basis: 100%;
  }

  .ssb-countdown { display: none; }

  .ssb-cta {
    min-height: 36px;
    padding: 0.4rem 1rem;
    font-size: 0.74rem;
  }

  .ssb-coupon {
    font-size: 0.68rem;
    padding: 0.22rem 0.6rem;
  }
}

@media (max-width: 380px) {
  .ssb-copy { font-size: 0.62rem; }
  .ssb-headline { font-size: 0.67rem; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ssb,
  .ssb-left,
  .ssb-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ssb-cta {
    box-shadow: 0 0 16px rgba(77, 200, 160, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  }
}
