/* MindType Liquid Glass v3 — colour + glass skin ONLY. No geometry, text, hover or glow is overridden:
   box-shadow / border / radius / :hover are never set here, so every original glow keeps winning. */
:root { --lg-glass: rgba(58, 50, 132, .34); --lg-glass-solid: rgba(17, 19, 44, .9); }

/* soft aurora gradients (violet, rose, electric blue, cyan) — composited transform only, additive blend so nothing darkens */
.lg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lg-aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .66; filter: blur(64px); mix-blend-mode: screen; will-change: transform; animation: lg-drift 40s ease-in-out infinite alternate; }
.lg-aurora i:nth-child(1) { left: -18vmax; top: -14vmax; background: radial-gradient(circle, rgba(255, 95, 174, .8), rgba(255, 95, 174, 0) 66%); }
.lg-aurora i:nth-child(2) { right: -22vmax; top: 6vmax; background: radial-gradient(circle, rgba(77, 123, 255, .85), rgba(77, 123, 255, 0) 66%); animation-duration: 48s; animation-delay: -12s; }
.lg-aurora i:nth-child(3) { left: 18vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(139, 108, 255, .8), rgba(139, 108, 255, 0) 66%); animation-duration: 54s; animation-delay: -20s; }
.lg-aurora i:nth-child(4) { right: 6vmax; bottom: -22vmax; width: 42vmax; height: 42vmax; opacity: .42; background: radial-gradient(circle, rgba(95, 224, 245, .8), rgba(95, 224, 245, 0) 66%); animation-duration: 44s; animation-delay: -6s; }
@keyframes lg-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); } }
/* home: sits right after the shader layer (z 0) and under .app, which is already positioned */
.lg-aurora.lg-above { z-index: 0; }

/* glass: frosted fill + real blur (fills only; shadows/borders stay the originals) */
body .v51-card, body .sp-card, body .coach-feature-section, body .pph-panel, body .or-promo, body .home-quiz,
body .pg-hero, body .pg-sec, body .pg-sara-card, body .explore-modal-panel, body .signin-modal-panel, body .dm-card,
body .pp-card, body .pp-qcard, body .sara-card, body .accuracy-box, body .capture-box, body .ask-mindtype-card, body .v51-chat {
  background: linear-gradient(150deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 38%, rgba(120, 100, 255, .07)), var(--lg-glass) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
}
body .v51-area, body .v51-cat, body .pph-opt, body button.option, body .pph-prio, body .pph-sara, body .pph-more, body .pg-rel, body .v51-bubble,
body .daily-mind-card, body .profile-block, body .mind-profile-type {
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)) !important;
}
body .site-nav { background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)), rgba(10, 12, 34, .5) !important; -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body .v51-card, body .sp-card, body .coach-feature-section, body .pph-panel, body .or-promo, body .home-quiz, body .pg-hero, body .pg-sec, body .pg-sara-card,
  body .explore-modal-panel, body .signin-modal-panel, body .dm-card, body .pp-card, body .pp-qcard, body .sara-card, body .accuracy-box, body .capture-box,
  body .ask-mindtype-card, body .v51-chat, body .site-nav { background: var(--lg-glass-solid) !important; }
}

/* minimal icons in circular glass containers (same size/position as before) */
body .v51-area svg, body .v51-cat svg, body .v51-chip svg {
  border-radius: 50%; color: #e2dcff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .32), rgba(255, 255, 255, .05) 55%, rgba(139, 108, 255, .22));
  border-color: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 22px -10px rgba(139, 108, 255, .6);
}
/* chips = glass pills (colour only) */
body .v51-livechip, body .v51-chip, body .sara-chip, body .ws-tag, body .sm-hero-tag, body .or-tag, body .daily-mind-day-badge {
  color: #efeaff; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)) !important; border-color: rgba(255, 255, 255, .3) !important;
}
@media (max-width: 700px) { .lg-aurora i { animation: none; filter: blur(48px); width: 90vmax; height: 90vmax; } body .v51-card, body .sp-card, body .coach-feature-section, body .pph-panel { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
@media (prefers-reduced-motion: reduce) { .lg-aurora i { animation: none; } }
@media (forced-colors: active) { .lg-aurora { display: none; } }

/* price line stays centered on phones */
@media (max-width: 700px) { .mt-hero__overlay .mt-hero__micro { text-align: center; } .mt-hero__overlay .mt-hero__price { display: block; margin: 0 0 4px; vertical-align: baseline; } }

/* ---------- BUTTONS: Apple transparent glass (fill + sheen + blur + thin edge). Original glow (box-shadow) and sizes are NOT touched ---------- */
body .v51-cta, body .mt-hero__cta, body .btn-primary, body .btn-ghost, body .pp-cta, body .pp-btn, body .pp-btn-primary, body .pp-btn-ghost,
body .sara-cta, body .sara-btn, body .pg-cta, body .hero-choice-cta, body .strong-mind-cta, body .sm-cta, body .or-cta, body .pph-cta,
body .signin-modal-submit, body .site-nav__cta, body .top-utility-signin, body .coach-sara-play, body .daily-mind-done-btn, body .explore-modal-close,
body .coach-sara-name-btn, body button.sm-cta, body .v51-cta--violet, body .v51-cta--rose, body .v51-cta--ghost {
  background-color: rgba(150, 120, 255, .22) !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(120deg, rgba(255, 95, 174, .22), rgba(139, 108, 255, .18) 55%, rgba(77, 123, 255, .22)) !important;
  border-color: rgba(255, 255, 255, .38) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  text-shadow: 0 1px 2px rgba(8, 4, 40, .45);
}
@media (hover: hover) and (pointer: fine) {
  body .v51-cta:hover, body .mt-hero__cta:hover, body .btn-primary:hover, body .btn-ghost:hover, body .pp-cta:hover, body .pp-btn:hover,
  body .sara-cta:hover, body .sara-btn:hover, body .pg-cta:hover, body .hero-choice-cta:hover, body .sm-cta:hover, body .or-cta:hover,
  body .pph-cta:hover, body .site-nav__cta:hover, body .top-utility-signin:hover { background-color: rgba(170, 140, 255, .34) !important; border-color: rgba(255, 255, 255, .6) !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body .v51-cta, body .mt-hero__cta, body .btn-primary, body .btn-ghost, body .pp-cta, body .pp-btn, body .sara-cta, body .sara-btn, body .pg-cta,
  body .site-nav__cta, body .top-utility-signin { background-color: rgba(58, 48, 120, .92) !important; }
}

/* page base: deep navy-violet instead of flat black, so the gradients read on every page */
html { background: linear-gradient(165deg, #080b2a 0%, #0c0826 52%, #060820 100%) fixed #060820 !important; }
body { background: transparent !important; }

/* LANDING (brain hero): colourful soft-gradient background behind the brain. The brain canvas, copy and layout are untouched. */
.mt-hero { background:
  radial-gradient(ellipse 52% 62% at 72% 46%, rgba(77, 123, 255, .34), transparent 66%),
  radial-gradient(ellipse 46% 56% at 10% 14%, rgba(255, 95, 174, .30), transparent 64%),
  radial-gradient(ellipse 60% 52% at 38% 104%, rgba(139, 108, 255, .42), transparent 66%),
  radial-gradient(ellipse 34% 42% at 96% 94%, rgba(95, 224, 245, .22), transparent 62%),
  #050818 !important; }
.mt-hero::before { content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none; will-change: transform;
  background: radial-gradient(40% 46% at 30% 30%, rgba(255, 120, 200, .20), transparent 70%), radial-gradient(38% 44% at 78% 70%, rgba(110, 150, 255, .22), transparent 70%);
  animation: lg-drift 30s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce), (max-width: 700px) { .mt-hero::before { animation: none; } }
/* let the colourful hero gradient show through the brain canvas's dark clear colour (the brain itself is unchanged) */
#mt-hero-stage { mix-blend-mode: screen; }
.mt-hero { background-blend-mode: normal; }

/* Mind Studio, Workbooks, product pages: same glass cards */
body .ms-audio, body .ms-hub-card, body .pd-card, body .pd-step, body .mindtype-explore-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)) !important;
}
body .pd-final, body .ms-panel, body .ms-hub {
  background: linear-gradient(150deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 38%, rgba(120, 100, 255, .07)), var(--lg-glass) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
}

/* Home sections that had their own dark opaque slab: Daily Mind, final CTA, Best Version, Workbooks -> glass */
body .dm-section, body .v51-final, body .v51-wb, body .wbk {
  background: linear-gradient(150deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 38%, rgba(120, 100, 255, .07)), var(--lg-glass) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body .dm-section, body .v51-final, body .v51-wb, body .wbk { background: var(--lg-glass-solid) !important; } }
/* Mind Studio audio players: pill-shaped glass controls */
body .ms-audio-player audio, body audio { border-radius: 999px; color-scheme: dark; }
body .ms-audio-player { background: transparent; }
