/*
  Void Meridian header — stabilized layout
  Prefix: sr-vdm
*/

:root,
body.sr-site,
body.sr-flagship {
  --sr-nav-offset: 6rem;
  --sr-vdm-max: var(--sr-lane-wide, min(92rem, 100%));
  --sr-vdm-text: #f0f9ff;
  --sr-vdm-muted: rgba(186, 230, 253, 0.72);
  --sr-vdm-gold: #fde68a;
  --sr-vdm-cyan: #22d3ee;
}

@media (min-width: 768px) {
  :root,
  body.sr-site,
  body.sr-flagship { --sr-nav-offset: 6.5rem; }
}

@media (min-width: 1100px) {
  :root,
  body.sr-site,
  body.sr-flagship { --sr-nav-offset: 6.85rem; }
}

.sr-vdm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-vdm {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10050;
  pointer-events: none;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--sr-vdm-text);
}

.sr-vdm-meridian {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.35rem;
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.sr-vdm-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--sr-vdm-cyan), var(--sr-vdm-gold), #34d399, var(--sr-vdm-cyan));
  background-size: 200% 100%;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.sr-vdm-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--sr-vdm-max);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 0.6rem) var(--sr-page-gutter, clamp(0.75rem, 2vw, 1.25rem)) 0.7rem;
  pointer-events: auto;
}

.sr-vdm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.8rem;
  padding: 0.55rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(186, 230, 253, 0.2);
  background: linear-gradient(135deg, rgba(12, 26, 44, 0.6), rgba(6, 14, 26, 0.65), rgba(8, 20, 38, 0.58));
  background-size: 200% 200%;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    0 18px 52px rgba(2, 8, 20, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.sr-vdm-bar::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent 30%, rgba(251, 191, 36, 0.08) 60%, rgba(52, 211, 153, 0.1) 80%, rgba(56, 189, 248, 0.12));
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  pointer-events: none;
}

.sr-vdm.is-scrolled .sr-vdm-bar {
  background: linear-gradient(180deg, rgba(6, 14, 26, 0.72), rgba(3, 8, 16, 0.78));
  border-color: rgba(186, 230, 253, 0.28);
  box-shadow: 0 20px 52px rgba(2, 8, 20, 0.45), 0 1px 0 rgba(56, 189, 248, 0.08);
}

.sr-vdm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 9.5rem);
  text-decoration: none;
  color: inherit;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(186, 230, 253, 0.08);
}

.sr-vdm-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.sr-vdm-brand-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-vdm-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
  line-height: 1;
}

.sr-vdm-wordmark__line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.sr-vdm-wordmark__sch {
  font-family: "Syne", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sr-cyan-bright, #7dd3fc);
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.sr-vdm-wordmark__rez {
  font-family: "Syne", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sr-text-muted, rgba(186, 210, 230, 0.72));
}

.sr-vdm-wordmark__live {
  font-family: "Syne", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.45vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sr-gold, #c9a962);
  text-shadow: 0 0 14px rgba(201, 169, 98, 0.35);
  animation: sr-wordmark-live 2.4s ease-in-out infinite;
}

.sr-vdm-wordmark__wave {
  flex: 1;
  min-width: 1.2rem;
  max-width: 2.8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sr-cyan, #38bdf8), var(--sr-gold, #c9a962), transparent);
  opacity: 0.75;
  animation: sr-wordmark-wave 2.8s ease-in-out infinite;
}

@keyframes sr-wordmark-live {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes sr-wordmark-wave {
  0%, 100% { transform: scaleX(0.65); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.sr-vdm-brand-freq {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sr-vdm-muted);
}

.sr-vdm-brand-freq strong {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sr-cyan-bright, #7dd3fc);
}

.sr-vdm-live-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--sr-live, #4ade80);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.65);
  animation: sr-vdm-pulse 1.6s ease-in-out infinite;
}

@keyframes sr-vdm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.sr-vdm-stars {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(2, 8, 18, 0.5);
  border: 1px solid rgba(186, 230, 253, 0.08);
  flex: 0 0 auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.sr-vdm-star {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--sr-vdm-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.sr-vdm-star-node {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: rgba(8, 18, 32, 0.85);
  flex-shrink: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sr-vdm-star:hover {
  color: var(--sr-vdm-text);
  background: rgba(186, 230, 253, 0.12);
  transform: translateY(-0.5px);
}
.sr-vdm-star:active {
  transform: translateY(0);
}
.sr-vdm-star:hover .sr-vdm-star-node {
  border-color: rgba(186, 230, 253, 0.5);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.sr-vdm-star.is-active {
  color: var(--sr-gold-bright, #dcc07a);
  background: var(--sr-gold-soft, rgba(201, 169, 98, 0.18));
  border: 1px solid rgba(201, 169, 98, 0.3);
  box-shadow: 0 0 18px rgba(201, 169, 98, 0.08);
}

.sr-vdm-star.is-active .sr-vdm-star-node {
  background: var(--sr-gold, #c9a962);
  border-color: var(--sr-gold, #c9a962);
  box-shadow: 0 0 6px rgba(201, 169, 98, 0.45);
}

.sr-vdm-ops {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.sr-vdm-aud,
.sr-vdm-utc {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  padding-right: 0.55rem;
  border-right: 1px solid rgba(186, 230, 253, 0.08);
}

.sr-vdm-aud-k,
.sr-vdm-utc span:first-child {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sr-vdm-muted);
}

.sr-vdm-aud strong,
.sr-vdm-utc time {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.sr-vdm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.48rem;
  border: 1px solid rgba(186, 230, 253, 0.12);
  border-radius: 0.55rem;
  background: rgba(2, 8, 18, 0.55);
  color: var(--sr-vdm-text);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sr-vdm-icon:hover {
  border-color: rgba(186, 230, 253, 0.22);
  background: rgba(8, 20, 40, 0.62);
}
.sr-vdm-icon:active {
  border-color: rgba(186, 230, 253, 0.28);
}

.sr-vdm-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.sr-vdm-icon--gold {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.28);
}

.sr-vdm-flag {
  display: inline-flex;
  width: 1rem;
  height: 0.72rem;
  border-radius: 0.12rem;
  overflow: hidden;
}

.sr-vdm-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sr-vdm-lang {
  position: relative;
}
.sr-vdm-lang .sr-vdm-icon {
  gap: 0.35rem;
  border-radius: 0.6rem;
}

.sr-vdm-lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9rem;
  padding: 0.3rem;
  border-radius: 0.65rem;
  background: rgba(4, 10, 22, 0.96);
  border: 1px solid rgba(186, 230, 253, 0.16);
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.5);
  z-index: 30;
}

.sr-vdm-lang-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.42rem 0.5rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--sr-vdm-text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.sr-vdm-lang-opt:hover { background: rgba(186, 230, 253, 0.08); }
.sr-vdm-lang-opt:active { background: rgba(186, 230, 253, 0.12); }
.sr-vdm-lang-opt.is-active { background: rgba(251, 191, 36, 0.12); color: #fde68a; }
.sr-vdm-lang-opt.is-active:hover { background: rgba(251, 191, 36, 0.18); }

.sr-vdm-lang-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sr-vdm-burger,
.sr-vdm-burger::before,
.sr-vdm-burger::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.sr-vdm-burger { position: relative; }
.sr-vdm-burger::before,
.sr-vdm-burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.sr-vdm-burger::before { top: -4px; }
.sr-vdm-burger::after { top: 4px; }

.sr-vdm-icon--menu[aria-expanded="true"] .sr-vdm-burger { background: transparent; }
.sr-vdm-icon--menu[aria-expanded="true"] .sr-vdm-burger::before { top: 0; transform: rotate(45deg); }
.sr-vdm-icon--menu[aria-expanded="true"] .sr-vdm-burger::after { top: 0; transform: rotate(-45deg); }

/* Nexus logo */
.sr-nexus-mark {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 3.65rem;
  height: 3.65rem;
  align-items: center;
  justify-content: center;
}

.sr-nexus-mark-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.28);
  animation: sr-nexus-ring 6s linear infinite;
}

@keyframes sr-nexus-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sr-nexus-mark-glow {
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 72%);
  animation: sr-nexus-glow 3.5s ease-in-out infinite;
}

@keyframes sr-nexus-glow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.sr-nexus-logo {
  position: relative;
  z-index: 1;
  width: 3.05rem;
  height: 3.05rem;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.32));
}

.sr-nexus-logo .sr-nexus-wave,
.sr-nexus-logo .sr-nexus-wave-b {
  animation: sr-nexus-wave 2.8s ease-in-out infinite;
}

@keyframes sr-nexus-wave {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Legacy meridian — hidden */
.sr-meridian-mark {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
}

.sr-meridian-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.sr-meridian-mark-flare {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 68%);
}

.sr-meridian-mark-pulse {
  display: none;
}

.sr-meridian-logo {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
}

/* Drawer */
.sr-vdm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(2, 6, 18, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sr-vdm-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sr-vdm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10045;
  width: min(20rem, 90vw);
  height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.98), rgba(2, 6, 14, 0.99));
  border-left: 1px solid rgba(129, 140, 248, 0.2);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.sr-vdm-drawer.is-open { transform: translateX(0); }

.sr-vdm-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(186, 230, 253, 0.06);
}

.sr-vdm-drawer-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
  font-size: 0.78rem;
}

.sr-vdm-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sr-vdm-drawer-link {
  padding: 0.7rem 0.8rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sr-vdm-text);
}

.sr-vdm-drawer-link:hover { background: rgba(186, 230, 253, 0.06); }
.sr-vdm-drawer-link.is-active {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
}

.sr-vdm-drawer-link--star { color: #fde68a; }

.sr-vdm-drawer-lang {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sr-vdm-lang-pill {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.14);
  background: rgba(4, 10, 22, 0.55);
  color: var(--sr-vdm-text);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.sr-vdm-lang-pill.is-active {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

body.sr-cmd-drawer-open { overflow: hidden; }

@media (min-width: 960px) {
  .sr-vdm-stars { display: inline-flex; }
  .sr-vdm-aud,
  .sr-vdm-utc { display: flex; }
  .sr-vdm-icon--menu { display: none; }
  .sr-vdm-brand-title { max-width: 16rem; }
  .sr-vdm-bar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.12), transparent);
    border-radius: 999px;
  }
}

@media (max-width: 959px) {
  .sr-vdm-brand-freq { display: none; }
  .sr-vdm-brand {
    max-width: calc(100% - 8.75rem);
    gap: 0.45rem;
    border-right: none;
    padding-right: 0;
  }
  .sr-vdm-wordmark__sch { font-size: 0.78rem; }
  .sr-vdm-wordmark__rez,
  .sr-vdm-wordmark__live { font-size: 0.7rem; }
  .sr-vdm-wordmark__wave { display: none; }
  .sr-nexus-mark { width: 3.1rem; height: 3.1rem; flex-shrink: 0; }
  .sr-nexus-logo { width: 2.55rem; height: 2.55rem; }
  .sr-vdm-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
  .sr-vdm-bar {
    gap: 0.55rem;
    padding: 0.48rem 0.7rem;
    min-height: 3.35rem;
  }
}

@media (max-width: 420px) {
  .sr-vdm-bar { min-height: 3.45rem; padding: 0.48rem 0.62rem; gap: 0.45rem; }
  .sr-vdm-brand { max-width: calc(100% - 7.85rem); }
  .sr-vdm-wordmark__sch { font-size: 0.72rem; }
  .sr-vdm-lang-code { display: none; }
}

.sr-hzn, .sr-obs { display: none !important; }

/* Footer FAB clearance + promo dock stacking */
@media (max-width: 959px) {
  html body.sr-site footer.footer-premium.sr-footer-pro {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.sr-site .sr-footer-pro__legalbar {
    padding-right: 0.25rem;
  }
}

html body.sr-site .sr-promo-fab.is-visible.is-near-footer,
html body.sr-site .sr-promo-dock.is-visible.is-near-footer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) !important;
}

/* Ebook floating notification — premium */
.sr-ebook-notif {
  position: fixed;
  z-index: 10010;
  right: 1.25rem;
  top: 22%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.sr-ebook-notif.is-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sr-ebook-notif__card {
  position: relative;
  width: 18rem;
  overflow: hidden;
  animation: srNotifFloat 5s ease-in-out infinite;
}

.sr-ebook-notif.is-ready .sr-ebook-notif__card {
  animation: srNotifIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards, srNotifFloat 5s ease-in-out 0.7s infinite;
}

@keyframes srNotifIn {
  from { opacity: 0; transform: translateX(calc(100% + 3rem)) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes srNotifFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sr-ebook-notif__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.5) 0%,
    rgba(217, 119, 6, 0.08) 30%,
    rgba(251, 191, 36, 0.02) 55%,
    rgba(251, 191, 36, 0.35) 85%,
    rgba(251, 191, 36, 0.55) 100%
  );
  z-index: 0;
  animation: srNotifBorder 4s ease-in-out infinite;
}

@keyframes srNotifBorder {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.sr-ebook-notif__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.15),
    rgba(217, 119, 6, 0.06) 40%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.sr-ebook-notif__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.05rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(251, 191, 36, 0.04), transparent 60%),
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(217, 119, 6, 0.03), transparent 50%),
    linear-gradient(160deg, rgba(14, 8, 4, 0.93), rgba(6, 3, 1, 0.97));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 60px rgba(251, 191, 36, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Close button */
.sr-ebook-notif__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 5;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(251, 191, 36, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sr-ebook-notif__close:hover {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.3);
}

.sr-ebook-notif__close svg {
  width: 0.7rem;
  height: 0.7rem;
}

/* Media / Book cover */
.sr-ebook-notif__media {
  position: relative;
  flex-shrink: 0;
  width: 4.2rem;
  display: flex;
  align-items: flex-start;
  padding-top: 0.2rem;
}

.sr-ebook-notif__media-glow {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08), transparent 65%);
  pointer-events: none;
  animation: srNotifGlow 4s ease-in-out infinite;
}

@keyframes srNotifGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.sr-ebook-notif__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #1a0a04, #0c0610 35%, #050210 60%, #020410);
  border: 1px solid rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(251, 191, 36, 0.04);
}

.sr-ebook-notif__cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), transparent);
  pointer-events: none;
}

.sr-ebook-notif__cover-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f59e0b, #b45309 40%, #78350f 70%, #451a03);
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: 1px 0 6px rgba(0, 0, 0, 0.3);
}

.sr-ebook-notif__cover-icon {
  position: relative;
  z-index: 1;
  width: 1.6rem;
  height: 1.6rem;
  color: rgba(251, 191, 36, 0.5);
}

.sr-ebook-notif__cover-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 25%,
    rgba(255, 255, 255, 0.05),
    transparent 40%
  );
  pointer-events: none;
}

/* Content */
.sr-ebook-notif__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sr-ebook-notif__kicker {
  margin: 0;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(251, 191, 36, 0.5);
  text-transform: uppercase;
}

.sr-ebook-notif__title {
  margin: 0;
  font-family: "Syne", "Instrument Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fcd34d, #f59e0b 40%, #fcd34d);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.sr-ebook-notif__desc {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.32);
}

/* Rating */
.sr-ebook-notif__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.sr-ebook-notif__stars {
  width: 3.8rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.sr-ebook-notif__rating-text {
  font-size: 0.5rem;
  color: rgba(251, 191, 36, 0.45);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* CTA */
.sr-ebook-notif__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: 0.2rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0c0a09;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #92400e, #f59e0b 30%, #fcd34d 55%, #f59e0b 80%, #92400e);
  background-size: 300% 100%;
  background-position: 0 50%;
  border: none;
  box-shadow:
    0 4px 20px rgba(251, 191, 36, 0.2),
    0 0 0 1px rgba(251, 191, 36, 0.1);
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.sr-ebook-notif__cta:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(251, 191, 36, 0.35),
    0 0 0 1px rgba(251, 191, 36, 0.2);
}

.sr-ebook-notif__cta svg {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sr-ebook-notif__cta:hover svg {
  transform: translateX(2px);
}

/* Mobile */
@media (max-width: 820px) {
  .sr-ebook-notif {
    top: auto;
    bottom: clamp(4.75rem, 8vh, 5.75rem);
    right: 0.5rem;
    left: 0.5rem;
  }
  .sr-ebook-notif__card {
    width: auto;
  }
  .sr-ebook-notif__inner {
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }
  .sr-ebook-notif__media {
    width: 2.8rem;
  }
  .sr-ebook-notif__cover-icon {
    width: 1.1rem;
    height: 1.1rem;
  }
  .sr-ebook-notif__kicker {
    font-size: 0.42rem;
  }
  .sr-ebook-notif__title {
    font-size: 0.68rem;
  }
  .sr-ebook-notif__desc {
    display: none;
  }
  .sr-ebook-notif__rating-text {
    font-size: 0.45rem;
  }
  .sr-ebook-notif__cta {
    font-size: 0.52rem;
    padding: 0.35rem 0.75rem;
  }
  .sr-ebook-notif__cta svg {
    width: 0.6rem;
    height: 0.6rem;
  }
  .sr-ebook-notif__close {
    width: 1.2rem;
    height: 1.2rem;
  }
  .sr-ebook-notif__close svg {
    width: 0.6rem;
    height: 0.6rem;
  }
}

@media (max-width: 420px) {
  .sr-ebook-notif__media {
    display: none;
  }
  .sr-ebook-notif__title {
    font-size: 0.6rem;
  }
  .sr-ebook-notif__cta {
    font-size: 0.48rem;
    padding: 0.3rem 0.65rem;
  }
}

/* Ebook CTA star */
.sr-vdm-star--ebook {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.16));
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  position: relative;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1), inset 0 0 20px rgba(251, 191, 36, 0.04);
}
.sr-vdm-star--ebook .sr-vdm-star-node {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.3);
}
.sr-vdm-star--ebook:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(217, 119, 6, 0.26));
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef3c7;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.22), inset 0 0 25px rgba(251, 191, 36, 0.08);
  transform: translateY(-0.5px);
}
a.sr-vdm-drawer-link--ebook {
  color: #fde68a;
  border-left: 2px solid #fbbf24;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), transparent);
}
a.sr-vdm-drawer-link--ebook:hover {
  color: #fef3c7;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), transparent);
}
