/* ══════════════════════════════════════
   ANNOUNCEMENT BAR — newsletter CTA
══════════════════════════════════════ */
.announcement-bar {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #4f46e5 100%);
  background-size: 200% 100%;
  animation: ann-shift 8s ease infinite;
  color: #fff;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(29,78,216,.45);
}
@keyframes ann-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* shimmer sweep */
.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  background-size: 300% 100%;
  animation: ann-shimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes ann-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ann-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.ann-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.8);
  flex-shrink: 0;
  animation: ann-dot-pulse 2s ease-in-out infinite;
}
@keyframes ann-dot-pulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 6px rgba(74,222,128,.8); }
  50%      { opacity: .6; box-shadow: 0 0 12px rgba(74,222,128,.4); }
}
.ann-text {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
}
.ann-link {
  font-size: .8rem;
  font-weight: 700;
  color: #bfdbfe;
  text-decoration: none;
  border: 1px solid rgba(96,165,250,.45);
  padding: 2px 10px;
  border-radius: 20px;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.ann-link:hover {
  background: rgba(96,165,250,.18);
  color: #fff;
  border-color: rgba(96,165,250,.8);
  text-decoration: none;
}

@media (max-width: 640px) {
  .ann-text { display: none; }
  .ann-cta  { gap: 8px; }
}

/* ══════════════════════════════════════
   SITE HEADER
══════════════════════════════════════ */
.site-header {
  background: linear-gradient(180deg, #eff6ff 0%, #f8faff 55%, #fff 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(59,130,246,.08);
  overflow: hidden;
  transition: transform .35s ease;
}
.site-header.hdr-hidden { transform: translateY(-100%); }

/* ── Nav overflow for mobile ── */
.main-nav { overflow: hidden; }

/* gradient divider bottom */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59,130,246,.3) 20%,
    rgba(59,130,246,.6) 50%,
    rgba(59,130,246,.3) 80%,
    transparent 100%);
}

/* ── Floating sparkles ── */
.header-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hsp {
  position: absolute;
  font-size: .75rem;
  color: var(--blue-light);
  opacity: 0;
  animation: sparkle-float 5s ease-in-out infinite;
}
.hsp-1 { left: 8%;  top: 20%; animation-delay: 0s;    font-size: .7rem; }
.hsp-2 { left: 18%; top: 60%; animation-delay: 1.2s;  font-size: .9rem; color: var(--blue); }
.hsp-3 { left: 82%; top: 25%; animation-delay: 0.6s;  font-size: .65rem; }
.hsp-4 { left: 91%; top: 65%; animation-delay: 2s;    font-size: .8rem; }
.hsp-5 { left: 50%; top: 10%; animation-delay: 1.8s;  font-size: .6rem; }
@keyframes sparkle-float {
  0%   { opacity: 0;   transform: translateY(0)    scale(.8); }
  30%  { opacity: .7;  transform: translateY(-6px) scale(1); }
  60%  { opacity: .4;  transform: translateY(-10px) scale(.9); }
  100% { opacity: 0;   transform: translateY(-18px) scale(.7); }
}

/* ── Header inner grid ── */
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   LOGO
══════════════════════════════════════ */
.site-logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0;
  position: relative;
  padding: 0 40px;
}

.logo-eyebrow {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1px;
}

.logo-main {
  display: block;
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 40%, #60a5fa 70%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-script {
  display: block;
  font-family: var(--font);
  font-size: 1.1rem;
  color: var(--blue-light);
  font-weight: 400;
  margin-bottom: 1px;
  margin-top: 0;
}

/* animated underline */
.logo-underline {
  display: block;
  height: 1.5px;
  width: 60%;
  margin-top: 5px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue-light), var(--blue), transparent);
  background-size: 200% 100%;
  animation: logoline 3s ease infinite;
  border-radius: 2px;
}
@keyframes logoline {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.site-logo:hover .logo-main { opacity: .85; }

.site-logo--img { padding: 0 16px; }
.site-logo-img { display: block; height: 80px; width: auto; }
.site-logo--img:hover .site-logo-img { opacity: .85; }
@media (max-width: 720px) { .site-logo-img { height: 58px; } }
@media (max-width: 480px) { .site-logo-img { height: 46px; } }

/* ── Left / Right ── */
.header-left  { display: flex; align-items: center; gap: 6px; }
.header-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-3);
  padding: 9px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: all .18s;
}
.icon-btn:hover {
  background: var(--blue-pale);
  color: var(--blue);
  transform: scale(1.1);
}

/* ── Search trigger pill ── */
.search-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border-radius: 50px;
  border: 1.5px solid rgba(96,165,250,.35);
  background: linear-gradient(135deg, rgba(96,165,250,.1) 0%, rgba(59,130,246,.04) 100%);
  color: var(--blue);
  font-family: var(--font);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 14px rgba(59,130,246,.12), inset 0 1px 0 rgba(255,255,255,.5);
}
.search-trigger-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0%, rgba(96,165,250,.35) 18%, transparent 36%);
  animation: search-glow-spin 4.5s linear infinite;
  opacity: 0;
  transition: opacity .25s;
}
@keyframes search-glow-spin { to { transform: rotate(360deg); } }
.search-trigger-icon { flex-shrink: 0; position: relative; }
.search-trigger-label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2px;
  position: relative;
}
.search-trigger-kbd {
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--blue-light);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 2px;
  position: relative;
}
.search-trigger:hover {
  border-color: rgba(59,130,246,.6);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 22px rgba(59,130,246,.28), inset 0 1px 0 rgba(255,255,255,.6);
}
.search-trigger:hover .search-trigger-glow { opacity: 1; }
.search-trigger:active { transform: translateY(0) scale(.98); }

.social-icon {
  color: var(--gray-4);
  display: flex;
  align-items: center;
  padding: 7px;
  border-radius: 50%;
  transition: all .2s;
}
.social-icon:hover {
  color: var(--blue);
  background: var(--blue-pale);
  transform: scale(1.1);
  text-decoration: none;
}

/* Subscribe CTA */
.header-subscribe-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 50%, #60a5fa 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: all .22s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59,130,246,.22);
  position: relative;
  overflow: hidden;
}
/* shimmer on button */
.header-subscribe-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .4s;
}
.header-subscribe-btn:hover::before { left: 125%; }
.header-subscribe-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,.32);
}
.header-signin-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--blue-mid);
  background: linear-gradient(135deg, rgba(239,246,255,.9) 0%, rgba(219,234,254,.9) 100%);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: all .22s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(59,130,246,.12);
}
.header-signin-link::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transition: left .4s;
}
.header-signin-link:hover::before { left: 125%; }
.header-signin-link:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #dbeafe 100%);
  border-color: var(--blue);
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,130,246,.2);
  text-decoration: none;
}

.header-account-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-pale);
  color: var(--blue);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2px;
  transition: all .2s;
  white-space: nowrap;
  border: 1.5px solid var(--blue-mid);
}
.header-account-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.sub-heart {
  font-size: .9rem;
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.25); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.18); }
}

/* ── Mobile toggle ── */
.nav-toggle {
  flex-direction: column;
  gap: 5px;
  display: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   NAVIGATION ROW
══════════════════════════════════════ */
.main-nav {
  background: linear-gradient(180deg, #eff6ff 0%, #f8faff 100%);
  border-top: 1px solid rgba(59,130,246,.1);
  position: relative;
}
.main-nav .nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
}
.nav-sep {
  color: var(--blue-mid);
  font-size: .5rem;
  padding: 0 2px;
  user-select: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 16px;
  font-size: .83rem;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: .15px;
  border-radius: 50px;
  transition: all .2s;
  position: relative;
}
.nav-links a:hover {
  color: var(--blue);
  background: rgba(59,130,246,.12);
  text-decoration: none;
}

/* "NEW" hot badge */
.nav-hot {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  font-size: .56rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 50px;
  letter-spacing: .5px;
  vertical-align: middle;
  animation: hotpulse 2s ease infinite;
}
@keyframes hotpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}

/* ══════════════════════════════════════
/* ══════════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════════ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  backdrop-filter: blur(8px);
}
.search-overlay.active { display: flex; }
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 560px;
  position: relative;
  box-shadow: 0 24px 60px rgba(59,130,246,.2);
  border: 1.5px solid var(--blue-pale);
}
.search-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--gray-4); width: 32px; height: 32px;
  border-radius: 50%;
  transition: all .15s;
}
.search-close:hover { background: var(--blue-pale); color: var(--blue); }
.search-form { display: flex; gap: 10px; }
.search-input {
  flex: 1;
  padding: 13px 20px;
  border: 2px solid var(--blue-pale);
  border-radius: 50px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--dark);
  background: var(--blue-bg);
}
.search-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.search-submit {
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: all .2s;
}
.search-submit:hover { opacity: .88; transform: scale(1.03); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-subscribe-btn { display: none; }
  .site-header { overflow: visible; }
  .main-nav {
    display: none;
    max-height: none !important;
    overflow: visible !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: linear-gradient(180deg, #eff6ff 0%, #f8faff 100%);
    box-shadow: 0 8px 24px rgba(59,130,246,.12);
    border-top: 1px solid rgba(59,130,246,.1);
  }
  .main-nav.open { display: block; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px 0 12px; align-items: flex-start; }
  .nav-sep { display: none; }
  .nav-links a { padding: 10px 20px; border-radius: 0; width: 100%; }
  .nav-links a:hover { background: var(--blue-pale); }
  .hsp { display: none; }
}
@media (max-width: 600px) {
  .header-inner { height: 68px; padding: 0 16px; }
  .logo-main { font-size: 1.3rem; letter-spacing: 2px; }
  .logo-script { font-size: .85rem; }
  .social-icon { display: none; }
  .header-signin-link span { display: none; }
  .header-account-btn span { display: none; }
  .header-signin-link,
  .header-account-btn { padding: 9px; }
  .search-trigger-label,
  .search-trigger-kbd { display: none; }
  .search-trigger { padding: 9px; gap: 0; }
  .search-overlay { padding: 16px; align-items: flex-start; padding-top: 80px; }
  .search-box { width: 100%; padding: 24px 20px; border-radius: 16px; }
  .search-form { flex-direction: column; gap: 10px; }
  .search-input { width: 100%; font-size: .9rem; }
  .search-submit { width: 100%; padding: 13px; }
}
@media (max-width: 400px) {
  .header-inner { padding: 0 12px; }
  .logo-main { font-size: 1.1rem; letter-spacing: 1px; }
  .logo-script { font-size: .75rem; }
  .icon-btn { width: 34px; height: 34px; }
}
