/*
  Footer Pro v4 — institutional observatory layout
*/

html body.sr-site footer .footer-cols {
  display: none !important;
}

html body.sr-site footer.footer-premium.sr-footer-pro {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem) !important;
  padding: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(56, 189, 248, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(251, 191, 36, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.72) 0%, rgba(2, 6, 16, 0.96) 100%) !important;
  border-top: 1px solid rgba(103, 232, 249, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html body.sr-site footer.footer-premium.sr-footer-pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), rgba(251, 191, 36, 0.35), transparent);
  pointer-events: none;
}

html body.sr-site .sr-footer-pro__ridge {
  position: relative;
  z-index: 1;
  height: 1.75rem;
  margin-bottom: -0.35rem;
  opacity: 0.85;
}

html body.sr-site .sr-footer-pro__ridge svg {
  display: block;
  width: 100%;
  height: 100%;
}

html body.sr-site .sr-footer-pro__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--sr-lane-wide, 92rem);
  margin: 0 auto;
  padding-block: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  padding-inline: 0;
}

html body.sr-site footer.footer-premium .footer-premium-shell,
html body.sr-site footer.footer-premium .sr-footer-shell {
  opacity: 0;
  transform: translateY(18px);
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body.sr-site footer.footer-premium.footer-is-mounted .footer-premium-shell,
html body.sr-site footer.footer-premium.footer-is-mounted .sr-footer-shell {
  animation: sr-footer-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sr-footer-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Masthead */
html body.sr-site .sr-footer-pro__mast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: clamp(1rem, 2.8vw, 1.35rem);
  margin-bottom: 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.55) 42%, rgba(2, 6, 23, 0.75) 100%);
  box-shadow:
    0 16px 40px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html body.sr-site .sr-footer-pro__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

html body.sr-site .sr-footer-pro__logo {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.75));
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
}

html body.sr-site .sr-footer-pro__logo .sr-brand-icon-wrap {
  width: 2.35rem;
  height: 2.35rem;
}

html body.sr-site .sr-footer-pro__logo-pulse {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(52, 211, 153, 0.35);
  animation: sr-footer-logo-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sr-footer-logo-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

html body.sr-site .sr-footer-pro__brand-copy {
  min-width: 0;
}

html body.sr-site .sr-footer-pro__kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

html body.sr-site .sr-footer-pro__title {
  margin: 0;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
  text-wrap: balance;
}

html body.sr-site .sr-footer-pro__desc {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-size: clamp(0.8125rem, 2.1vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(186, 230, 253, 0.88);
}

html body.sr-site .sr-footer-pro__signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  max-width: 16rem;
}

html body.sr-site .sr-footer-pro__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

html body.sr-site .sr-footer-pro__signal.is-live {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.12);
}

html body.sr-site .sr-footer-pro__signal.is-live i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: sr-footer-live-dot 1.6s ease-in-out infinite;
}

@keyframes sr-footer-live-dot {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Link matrix */
html body.sr-site .sr-footer-pro__matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

html body.sr-site .sr-footer-pro__card {
  padding: clamp(0.85rem, 2.2vw, 1rem);
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.45) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

html body.sr-site .sr-footer-pro__card:hover {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
  transform: translateY(-2px);
}

html body.sr-site .sr-footer-pro__card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

html body.sr-site .sr-footer-pro__card-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  color: #67e8f9;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

html body.sr-site .sr-footer-pro__card-icon svg {
  width: 1rem;
  height: 1rem;
}

html body.sr-site .sr-footer-pro__card-icon--gold {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}

html body.sr-site .sr-footer-pro__card-icon--mint {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.22);
}

html body.sr-site .sr-footer-pro__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

html body.sr-site .sr-footer-pro__nav a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.48rem 0.55rem !important;
  border-radius: 0.55rem;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: rgba(226, 232, 240, 0.88) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

html body.sr-site .sr-footer-pro__nav a span {
  min-width: 0;
}

html body.sr-site .sr-footer-pro__nav a svg {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #67e8f9;
}

html body.sr-site .sr-footer-pro__nav a:hover {
  color: #f8fafc !important;
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(2px);
}

html body.sr-site .sr-footer-pro__nav a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

/* Languages */
html body.sr-site .sr-footer-pro__world {
  padding: clamp(0.9rem, 2.4vw, 1.1rem);
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html body.sr-site .sr-footer-pro__world-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
}

html body.sr-site .sr-footer-pro__world-head h3 {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

html body.sr-site .sr-footer-pro__world-head p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.95);
}

html body.sr-site .sr-footer-pro__lang-grid,
html body.sr-site .sr-footer-lang-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.42rem !important;
  align-items: flex-start !important;
}

html body.sr-site .sr-footer-lang-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.42rem !important;
  min-height: 2.05rem;
  padding: 0.34rem 0.62rem 0.34rem 0.48rem !important;
  border-radius: 999px !important;
  color: rgba(226, 232, 240, 0.92) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-decoration: none !important;
  white-space: nowrap;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

html body.sr-site .sr-footer-lang-flag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 0.95rem;
  border-radius: 0.2rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.35);
}

html body.sr-site .sr-footer-flag-svg {
  display: block;
  width: 100%;
  height: 100%;
}

html body.sr-site .sr-footer-lang-code {
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1;
}

html body.sr-site .sr-footer-lang-pill:hover {
  color: #f8fafc !important;
  border-color: rgba(56, 189, 248, 0.32) !important;
  background: rgba(56, 189, 248, 0.1) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12);
}

html body.sr-site .sr-footer-lang-pill.active {
  color: #f8fafc !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(2, 132, 199, 0.92)) !important;
  border-color: rgba(125, 211, 252, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 6px 18px rgba(14, 165, 233, 0.28);
}

/* Base bar */
html body.sr-site .sr-footer-pro__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

html body.sr-site .sr-footer-pro__legalbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin-left: auto;
}

html body.sr-site .sr-footer-pro__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

html body.sr-site .sr-footer-pro__legal-links a {
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

html body.sr-site .sr-footer-pro__legal-links a:hover {
  color: #e2e8f0;
}

html body.sr-site .sr-footer-pro__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

html body.sr-site .sr-partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border-radius: 0.5rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}

html body.sr-site .sr-partner-badge:hover {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.28);
}

html body.sr-site .sr-footer-pro__legalbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

html body.sr-site .sr-footer-copy {
  margin: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  color: rgba(100, 116, 139, 0.95) !important;
}

html body.sr-site .sr-footer-pro__domain,
html body.sr-site .sr-footer-domain {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(186, 230, 253, 0.9) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

html body.sr-site .sr-footer-pro__domain:hover,
html body.sr-site .sr-footer-domain:hover {
  color: #38bdf8 !important;
}

/* Legacy class kill */
html body.sr-site .sr-footer-brand-row,
html body.sr-site .sr-footer-columns,
html body.sr-site .sr-footer-meta {
  display: none !important;
}

@media (max-width: 1023px) {
  html body.sr-site .sr-footer-pro__mast {
    grid-template-columns: 1fr;
  }

  html body.sr-site .sr-footer-pro__signals {
    justify-content: flex-start;
    max-width: none;
  }

  html body.sr-site .sr-footer-pro__matrix {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  html body.sr-site .sr-footer-pro__matrix {
    grid-template-columns: 1fr;
  }

  html body.sr-site .sr-footer-pro__base {
    flex-direction: column;
    align-items: flex-start;
  }

  html body.sr-site .sr-footer-lang-pill {
    flex-direction: row !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.sr-site footer.footer-premium .footer-premium-shell {
    opacity: 1;
    transform: none;
    animation: none;
  }

  html body.sr-site .sr-footer-pro__logo-pulse,
  html body.sr-site .sr-footer-pro__signal.is-live i {
    animation: none;
  }
}

.sr-cookie-banner {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 10080;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(14px);
}

.sr-cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.9);
}

.sr-cookie-banner a {
  color: #67e8f9;
}

.sr-cookie-banner__btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
