/*
   Newendo — terrain refinement
   A focused layer loaded after the legacy stylesheet. It gives the home page a
   calmer, more local visual language without disturbing the existing tools.
*/

body.newendo-terrain {
    --terrain-basalt: #101714;
    --terrain-forest: #233a31;
    --terrain-moss: #6f9a78;
    --terrain-stone: #e4e1d7;
    --terrain-ash: #a9afa7;
    --terrain-lava: #a64d39;
    --terrain-water: #91b8b2;
    --bg-deep: var(--terrain-basalt);
    --bg-dark: #17221e;
    --bg-surface: #1d2a25;
    --bg-elevated: #293831;
    --bg-parchment: #ece9e0;
    --text-light: #f1eee6;
    --text-body: #cbd1c8;
    --text-muted: #9ca89f;
    --text-faint: #708078;
    --gold-bright: #d3b06a;
    --gold-warm: #bf914f;
    --gold-muted: #9c7544;
    --copper: var(--terrain-lava);
    --copper-dark: #914637;
    --amber: #d3b06a;
    --ember: var(--terrain-lava);
    --teal-deep: #5d9386;
    --teal-glow: rgba(145, 184, 178, 0.2);
    --rose-ancient: var(--terrain-lava);
    --glass-bg: rgba(234, 238, 228, 0.045);
    --glass-bg-hover: rgba(234, 238, 228, 0.08);
    --glass-border: rgba(198, 211, 196, 0.16);
    --glass-border-gold: rgba(211, 176, 106, 0.44);
    --shadow-card: 0 22px 58px rgba(3, 10, 7, 0.38);
    --shadow-glow: 0 0 30px rgba(145, 184, 178, 0.13);
    --glow-gold: 0 0 36px rgba(211, 176, 106, 0.12);
    --font-display: 'EB Garamond', Georgia, serif;
    --font-heading: 'EB Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-accent: 'Inter', system-ui, sans-serif;
    background: var(--terrain-basalt);
    color: var(--text-body);
    font-size: clamp(1rem, 0.97rem + 0.12vw, 1.125rem);
    letter-spacing: 0;
}

[data-theme='light'] body.newendo-terrain {
    --terrain-basalt: #f4f2e9;
    --terrain-forest: #dbe5d9;
    --terrain-moss: #38684b;
    --terrain-stone: #27332e;
    --terrain-ash: #59655e;
    --terrain-lava: #a54c38;
    --terrain-water: #397d77;
    --bg-deep: #f4f2e9;
    --bg-dark: #ebe9df;
    --bg-surface: #e2e7de;
    --bg-elevated: #d7ddd3;
    --bg-parchment: #f4f2e9;
    --text-light: #17221e;
    --text-body: #28372f;
    --text-muted: #58665d;
    --text-faint: #78847c;
    --glass-bg: rgba(31, 53, 43, 0.045);
    --glass-bg-hover: rgba(31, 53, 43, 0.075);
    --glass-border: rgba(37, 67, 52, 0.17);
    --shadow-card: 0 18px 44px rgba(38, 52, 42, 0.1);
}

body.newendo-terrain::before {
    background:
        radial-gradient(58rem 37rem at 0% 0%, rgba(111, 154, 120, 0.12), transparent 69%),
        radial-gradient(46rem 31rem at 100% 20%, rgba(145, 184, 178, 0.08), transparent 72%),
        radial-gradient(38rem 26rem at 52% 100%, rgba(198, 106, 76, 0.07), transparent 76%);
    animation-duration: 42s;
}

body.newendo-terrain::after {
    opacity: 0.23;
}

body.newendo-terrain .site-nav {
    padding-inline: clamp(1rem, 3vw, 3.25rem);
    border-bottom: 1px solid transparent;
}

body.newendo-terrain .site-nav.scrolled {
    background: var(--bg-deep);
    background: color-mix(in srgb, var(--bg-deep) 91%, transparent);
    border-bottom-color: var(--glass-border);
    backdrop-filter: blur(16px);
}

body.newendo-terrain .nav-links {
    gap: clamp(0.55rem, 1.35vw, 1.45rem);
}

body.newendo-terrain .nav-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.11em;
}

body.newendo-terrain .nav-links a:hover,
body.newendo-terrain .nav-links a.is-current,
body.newendo-terrain .nav-links a[aria-current='page'] {
    color: var(--terrain-stone);
}

body.newendo-terrain .nav-links a.is-current::after {
    width: 100%;
    background: var(--terrain-lava);
}

body.newendo-terrain .nav-cta-btn {
    background: rgba(211, 176, 106, 0.91);
    color: #17221e;
    border-color: transparent;
    box-shadow: none;
}

body.newendo-terrain .nav-cta-btn:hover,
body.newendo-terrain .nav-cta-btn:focus-visible {
    background: var(--terrain-stone);
    color: var(--terrain-basalt);
    transform: translateY(-1px);
}

body.newendo-terrain .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

body.newendo-terrain .newendo-alarm-dock-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 34px;
    padding: 0.4rem 0.85rem;
    background: rgba(211, 176, 106, 0.08);
    border: 1px solid rgba(211, 176, 106, 0.28);
    border-radius: 999px;
    color: var(--gold-bright, #d3b06a);
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    text-decoration: none;
}

body.newendo-terrain .newendo-alarm-dock-trigger:hover,
body.newendo-terrain .newendo-alarm-dock-trigger:focus-visible {
    background: rgba(211, 176, 106, 0.2);
    border-color: var(--gold-bright, #d3b06a);
    color: #fff;
    box-shadow: 0 0 16px rgba(211, 176, 106, 0.25);
    transform: translateY(-1px);
}

body.newendo-terrain .newendo-alarm-dock-trigger .alarm-dock-icon-wrap {
    color: var(--gold-bright, #d3b06a);
    font-size: 0.82rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.newendo-terrain .newendo-alarm-dock-trigger:hover .alarm-dock-icon-wrap {
    color: #fff;
}

[data-theme='light'] body.newendo-terrain .newendo-alarm-dock-trigger {
    background: rgba(166, 122, 33, 0.1);
    border-color: rgba(166, 122, 33, 0.35);
    color: #7d5b0d;
}

[data-theme='light'] body.newendo-terrain .newendo-alarm-dock-trigger:hover {
    background: rgba(166, 122, 33, 0.2);
    border-color: #7d5b0d;
    color: #4a3404;
    box-shadow: 0 2px 10px rgba(166, 122, 33, 0.2);
}

[data-theme='light'] body.newendo-terrain .newendo-alarm-dock-trigger .alarm-dock-icon-wrap {
    color: #7d5b0d;
}

[data-theme='light'] body.newendo-terrain .newendo-alarm-dock-trigger:hover .alarm-dock-icon-wrap {
    color: #4a3404;
}

@media (max-width: 1220px) and (min-width: 993px) {
    body.newendo-terrain .alarm-dock-next-label {
        display: none !important;
    }
    body.newendo-terrain .newendo-alarm-dock-trigger {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Hero — the one expressive moment: a soft contour, like a fascia/path line. */
body.newendo-terrain .hero {
    min-height: min(48rem, 92vh);
    isolation: isolate;
    overflow: clip;
    padding-top: clamp(7rem, 13vh, 9.5rem);
    padding-bottom: clamp(3.25rem, 7vh, 5rem);
    background:
        linear-gradient(102deg, rgba(9, 17, 13, 0.93) 0%, rgba(16, 29, 23, 0.83) 49%, rgba(23, 45, 36, 0.46) 100%),
        radial-gradient(circle at 78% 30%, rgba(111, 154, 120, 0.27), transparent 28%),
        var(--bg-deep);
}

[data-theme='light'] body.newendo-terrain .hero {
    background:
        linear-gradient(102deg, rgba(244, 242, 233, 0.97) 0%, rgba(236, 237, 227, 0.91) 49%, rgba(214, 229, 216, 0.76) 100%),
        radial-gradient(circle at 78% 30%, rgba(111, 154, 120, 0.21), transparent 28%),
        var(--bg-deep);
}

body.newendo-terrain .hero::before {
    z-index: -1;
    width: min(70vw, 60rem);
    height: min(58vw, 42rem);
    top: 50%;
    right: -7vw;
    background: radial-gradient(ellipse at center, rgba(145, 184, 178, 0.13), transparent 66%);
    filter: none;
    transform: translateY(-50%);
}

body.newendo-terrain .hero-ornament {
    z-index: -1;
    width: min(58vw, 48rem);
    height: min(45vw, 35rem);
    right: clamp(-9rem, -2vw, -1rem);
    left: auto;
    top: 46%;
    border: 1px solid rgba(145, 184, 178, 0.24);
    border-radius: 46% 54% 47% 53% / 54% 42% 58% 46%;
    opacity: 0.93;
    transform: translateY(-50%) rotate(-11deg);
}

body.newendo-terrain .hero-ornament::before,
body.newendo-terrain .hero-ornament::after {
    content: '';
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(211, 176, 106, 0.18);
    border-radius: 53% 47% 56% 44% / 43% 56% 44% 57%;
    transform: rotate(17deg);
}

body.newendo-terrain .hero-ornament::after {
    inset: 21%;
    border-color: rgba(198, 106, 76, 0.23);
    transform: rotate(-27deg);
}

body.newendo-terrain .hero-content {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
    text-align: left;
}

body.newendo-terrain .hero-place {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
    color: var(--terrain-water);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.newendo-terrain .hero-circadian-clock.circadian-clock-wrapper {
    width: clamp(210px, 24vw, 260px);
    height: clamp(210px, 24vw, 260px);
    margin: 1.25rem auto 2.25rem auto;
    margin-inline: auto;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 165, 57, 0.4);
    background: radial-gradient(circle at center, rgba(212, 165, 57, 0.08) 0%, rgba(18, 18, 20, 0.15) 60%, transparent 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 0 25px rgba(212, 165, 57, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    contain: layout paint;
    contain-intrinsic-size: 260px 260px;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.newendo-terrain .hero-circadian-clock.circadian-clock-wrapper::after {
    will-change: transform;
}

body.newendo-terrain .hero-circadian-clock.circadian-clock-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--gold-bright, #d4a539);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), inset 0 0 35px rgba(212, 165, 57, 0.12);
}

[data-theme="light"] body.newendo-terrain .hero-circadian-clock.circadian-clock-wrapper {
    background: radial-gradient(circle at center, rgba(212, 165, 57, 0.1) 0%, rgba(255, 255, 255, 0.25) 60%, transparent 100%);
    border-color: rgba(184, 134, 11, 0.35);
    box-shadow: 0 8px 24px rgba(100, 70, 30, 0.08), inset 0 0 20px rgba(212, 165, 57, 0.06);
}

body.newendo-terrain .hero-circadian-clock .circadian-clock-center {
    text-align: center;
    padding: 1rem;
    z-index: 2;
    contain: layout paint;
}

body.newendo-terrain .hero-circadian-clock .circadian-time {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3.8vw, 2.75rem);
    color: var(--gold-bright, #d4a539);
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 18px rgba(212, 165, 57, 0.4);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    min-height: 1.15em;
    white-space: nowrap;
}

[data-theme="light"] body.newendo-terrain .hero-circadian-clock .circadian-time {
    color: #976b12;
    text-shadow: 0 0 10px rgba(212, 165, 57, 0.25);
}

body.newendo-terrain .hero-circadian-clock .circadian-phase-title {
    font-family: var(--font-body);
    font-size: clamp(0.78rem, 1.1vw, 0.92rem);
    color: var(--terrain-stone, #f0eee6);
    max-width: 185px;
    margin: 0 auto;
    line-height: 1.35;
    font-style: italic;
    opacity: 0.95;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] body.newendo-terrain .hero-circadian-clock .circadian-phase-title {
    color: #3b3731;
}

body.newendo-terrain .hero-place i {
    color: var(--terrain-lava);
}

body.newendo-terrain .hero-title {
    max-width: 10.5ch;
    color: var(--terrain-stone);
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7.1vw, 6.85rem) !important;
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-transform: none;
    text-wrap: balance;
}

body.newendo-terrain .hero-lede {
    max-width: 39rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.93rem + 0.42vw, 1.28rem);
    font-weight: 400;
    line-height: 1.55;
}

body.newendo-terrain .hero-subtitle {
    margin-top: 0.9rem;
    color: var(--terrain-water);
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.02rem + 0.36vw, 1.42rem);
    letter-spacing: 0.025em;
}

body.newendo-terrain .hero-cta-cluster {
    align-items: flex-start;
    margin-top: clamp(1.75rem, 4vw, 3rem);
}

body.newendo-terrain .hero-cta-main {
    min-height: 3.25rem;
    padding: 0.88rem 1.6rem;
    background: linear-gradient(135deg, #d3b06a 0%, #bf914f 100%);
    border: 1px solid rgba(255, 238, 195, 0.45);
    border-radius: 999px;
    color: #0d1411 !important;
    font-family: var(--font-accent);
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: none;
    box-shadow: 0 10px 28px rgba(211, 176, 106, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.newendo-terrain .hero-cta-main:hover,
body.newendo-terrain .hero-cta-main:focus-visible {
    background: linear-gradient(135deg, #e4c585 0%, #cba058 100%);
    border-color: rgba(255, 245, 220, 0.75);
    color: #080d0b !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(211, 176, 106, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[data-theme="light"] body.newendo-terrain .hero-cta-main {
    background: linear-gradient(135deg, #be8d36 0%, #9e7020 100%);
    border-color: rgba(158, 112, 32, 0.5);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(158, 112, 32, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] body.newendo-terrain .hero-cta-main:hover,
[data-theme="light"] body.newendo-terrain .hero-cta-main:focus-visible {
    background: linear-gradient(135deg, #cb9a3f 0%, #a87926 100%);
    border-color: #a87926;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(158, 112, 32, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.newendo-terrain .hero-cta-secondary {
    margin-top: 0.75rem;
}

body.newendo-terrain .hero-cta-pill {
    min-height: 2.75rem;
    padding: 0.65rem 1.05rem;
    border-color: rgba(145, 184, 178, 0.37);
    border-radius: 999px;
    color: var(--terrain-stone);
    font-family: var(--font-accent);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.015em;
    text-transform: none;
}

body.newendo-terrain .hero-cta-pill:hover,
body.newendo-terrain .hero-cta-pill:focus-visible {
    border-color: var(--terrain-water);
    background: rgba(145, 184, 178, 0.12);
    color: var(--terrain-stone);
}

body.newendo-terrain .hero-cta-pill--practice {
    border-color: rgba(145, 184, 178, 0.55);
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.25) 0%, rgba(26, 68, 58, 0.8) 100%);
    color: #bbf0e8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.newendo-terrain .hero-cta-pill--practice:hover,
body.newendo-terrain .hero-cta-pill--practice:focus-visible {
    border-color: rgba(145, 184, 178, 0.9);
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.45) 0%, rgba(35, 88, 76, 0.95) 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(72, 153, 137, 0.35);
}

body.newendo-terrain .hero-scroll {
    display: inline-flex;
    width: max-content;
    min-height: 44px;
    align-items: center;
    margin-top: clamp(2.25rem, 5vh, 4rem);
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.newendo-terrain .hero-scroll .line {
    width: 4.5rem;
    background: linear-gradient(90deg, var(--terrain-water), transparent);
}

/* Primary choice point */
body.newendo-terrain .pathways {
    position: relative;
    z-index: 1;
    padding: clamp(4.75rem, 10vw, 8rem) max(1.25rem, 5vw);
    background: linear-gradient(180deg, rgba(23, 43, 35, 0.75), rgba(16, 23, 20, 0.15));
    border-top: 1px solid rgba(145, 184, 178, 0.14);
    border-bottom: 1px solid rgba(145, 184, 178, 0.14);
}

[data-theme='light'] body.newendo-terrain .pathways {
    background: linear-gradient(180deg, rgba(219, 229, 217, 0.82), rgba(244, 242, 233, 0.52));
}

body.newendo-terrain .pathways__inner {
    width: min(100%, 72rem);
    margin-inline: auto;
}

body.newendo-terrain .pathways__intro {
    display: grid;
    grid-template-columns: minmax(15rem, 0.85fr) minmax(17rem, 1.15fr);
    gap: 1rem 3rem;
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.newendo-terrain .pathways__intro .section-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
    color: var(--terrain-water);
}

body.newendo-terrain .pathways__intro h2 {
    max-width: 12ch;
    color: var(--terrain-stone);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.6vw, 4.25rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

body.newendo-terrain .pathways__intro p {
    max-width: 33rem;
    margin: 0 0 0.32rem;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.65;
}

body.newendo-terrain .pathways__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

body.newendo-terrain .pathway-card {
    position: relative;
    display: flex;
    min-height: 19.5rem;
    padding: clamp(1.65rem, 3.5vw, 2.75rem);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), 
                border-color 320ms ease, 
                box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1),
                background 320ms ease;
    will-change: transform, box-shadow;
}

/* ══════════════════════════════════════════════════════════════
   CARD 1: SESIÓN PRESENCIAL / PUCÓN (Cálido · Solar · Sólido)
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .pathway-card--session {
    border-radius: 1.25rem 1.25rem 4.5rem 1.25rem !important;
    border: 1px solid rgba(212, 165, 57, 0.35) !important;
    background: radial-gradient(ellipse at 90% 90%, rgba(212, 165, 57, 0.18) 0%, rgba(38, 26, 15, 0.92) 55%, rgba(18, 14, 10, 0.98) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 235, 180, 0.14),
        0 18px 45px rgba(10, 6, 2, 0.55),
        0 0 50px rgba(212, 165, 57, 0.08) !important;
}

[data-theme='light'] body.newendo-terrain .pathway-card--session {
    background: radial-gradient(ellipse at 90% 90%, rgba(252, 240, 215, 0.98) 0%, rgba(245, 233, 206, 0.92) 55%, rgba(238, 224, 196, 0.88) 100%) !important;
    border-color: rgba(166, 122, 33, 0.35) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 18px 40px rgba(166, 122, 33, 0.15),
        0 0 45px rgba(212, 165, 57, 0.1) !important;
}

body.newendo-terrain .pathway-card--session::after {
    content: '';
    position: absolute;
    width: 13rem;
    height: 13rem;
    right: -4rem;
    bottom: -5rem;
    left: auto;
    border: 1px solid rgba(212, 165, 57, 0.32);
    border-radius: 50% 48% 52% 45%;
    transform: rotate(29deg);
    background: radial-gradient(circle, rgba(212, 165, 57, 0.1) 0%, transparent 70%);
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

body.newendo-terrain .pathway-card--session:hover,
body.newendo-terrain .pathway-card--session:focus-visible {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(240, 200, 104, 0.7) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 240, 200, 0.25),
        0 26px 55px rgba(10, 6, 2, 0.75),
        0 0 65px rgba(212, 165, 57, 0.25) !important;
}

body.newendo-terrain .pathway-card--session:hover::after,
body.newendo-terrain .pathway-card--session:focus-visible::after {
    transform: rotate(14deg) scale(1.14);
}

/* ══════════════════════════════════════════════════════════════
   CARD 2: PRÁCTICAS DIGITALES (Fresco · Lunar · Contorno/Cristal)
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .pathway-card--practice {
    border-radius: 1.25rem 1.25rem 1.25rem 4.5rem !important;
    border: 1px solid rgba(145, 184, 178, 0.35) !important;
    background: radial-gradient(ellipse at 10% 90%, rgba(72, 153, 137, 0.2) 0%, rgba(14, 34, 28, 0.92) 55%, rgba(9, 20, 16, 0.98) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(180, 240, 230, 0.14),
        0 18px 45px rgba(2, 10, 8, 0.55),
        0 0 50px rgba(72, 153, 137, 0.08) !important;
}

[data-theme='light'] body.newendo-terrain .pathway-card--practice {
    background: radial-gradient(ellipse at 10% 90%, rgba(218, 239, 233, 0.98) 0%, rgba(206, 229, 223, 0.92) 55%, rgba(196, 221, 214, 0.88) 100%) !important;
    border-color: rgba(43, 90, 80, 0.35) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 18px 40px rgba(43, 90, 80, 0.15),
        0 0 45px rgba(145, 184, 178, 0.1) !important;
}

body.newendo-terrain .pathway-card--practice::after {
    content: '';
    position: absolute;
    width: 13rem;
    height: 13rem;
    left: -4rem;
    bottom: -5rem;
    right: auto;
    border: 1px solid rgba(145, 184, 178, 0.32);
    border-radius: 48% 52% 45% 50%;
    transform: rotate(-25deg);
    background: radial-gradient(circle, rgba(72, 153, 137, 0.1) 0%, transparent 70%);
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

body.newendo-terrain .pathway-card--practice:hover,
body.newendo-terrain .pathway-card--practice:focus-visible {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(145, 184, 178, 0.75) !important;
    box-shadow: 
        inset 0 1px 0 rgba(200, 255, 245, 0.25),
        0 26px 55px rgba(2, 10, 8, 0.75),
        0 0 65px rgba(72, 153, 137, 0.25) !important;
}

body.newendo-terrain .pathway-card--practice:hover::after,
body.newendo-terrain .pathway-card--practice:focus-visible::after {
    transform: rotate(-10deg) scale(1.14);
}

/* ══════════════════════════════════════════════════════════════
   BADGES (EYEBROWS) CON DISEÑO OPUESTO
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .pathway-card__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-family: var(--font-accent);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    transition: all 250ms ease;
}

body.newendo-terrain .pathway-card--session .pathway-card__eyebrow {
    background: rgba(212, 165, 57, 0.15);
    border: 1px solid rgba(212, 165, 57, 0.35);
    color: var(--gold-bright, #f0c868);
}

[data-theme='light'] body.newendo-terrain .pathway-card--session .pathway-card__eyebrow {
    background: rgba(166, 122, 33, 0.12);
    border-color: rgba(166, 122, 33, 0.3);
    color: #8c5d08;
}

body.newendo-terrain .pathway-card--practice .pathway-card__eyebrow {
    background: rgba(145, 184, 178, 0.14);
    border: 1px solid rgba(145, 184, 178, 0.32);
    color: var(--terrain-water, #91b8b2);
}

[data-theme='light'] body.newendo-terrain .pathway-card--practice .pathway-card__eyebrow {
    background: rgba(43, 90, 80, 0.1);
    border-color: rgba(43, 90, 80, 0.28);
    color: #175446;
}

body.newendo-terrain .pathway-card h3 {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
    color: var(--terrain-stone);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.1vw, 2.9rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

body.newendo-terrain .pathway-card p {
    position: relative;
    z-index: 1;
    max-width: 31rem;
    color: var(--text-body);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   BOTONES DE ACCIÓN OPUESTOS (SOLID GOLD vs FROSTED OUTLINE)
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .pathway-card__meta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 1.45rem;
    border-radius: 30px;
    font-family: var(--font-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    width: fit-content;
    transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* BOTÓN 1: SÓLIDO ORO/ÁMBAR (Presencial) */
body.newendo-terrain .pathway-btn--solid {
    background: linear-gradient(135deg, #f0c868 0%, #d4a539 50%, #b88628 100%);
    color: #0b0906 !important;
    border: 1px solid rgba(255, 235, 170, 0.5);
    box-shadow: 0 4px 18px rgba(212, 165, 57, 0.38);
}

body.newendo-terrain .pathway-btn--solid i {
    color: #0b0906;
    font-size: 0.85rem;
    transition: transform 260ms ease;
}

body.newendo-terrain .pathway-card--session:hover .pathway-btn--solid,
body.newendo-terrain .pathway-card--session:focus-visible .pathway-btn--solid {
    background: linear-gradient(135deg, #fff0ad 0%, #f0c868 60%, #d4a539 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 24px rgba(212, 165, 57, 0.58);
}

body.newendo-terrain .pathway-card--session:hover .pathway-btn--solid i,
body.newendo-terrain .pathway-card--session:focus-visible .pathway-btn--solid i {
    transform: translate(2px, -2px) scale(1.1);
}

[data-theme='light'] body.newendo-terrain .pathway-btn--solid {
    background: linear-gradient(135deg, #a67a21 0%, #7d560c 100%);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(166, 122, 33, 0.35);
}

[data-theme='light'] body.newendo-terrain .pathway-btn--solid i {
    color: #ffffff;
}

[data-theme='light'] body.newendo-terrain .pathway-card--session:hover .pathway-btn--solid {
    background: linear-gradient(135deg, #b88628 0%, #8c6007 100%);
    box-shadow: 0 6px 22px rgba(166, 122, 33, 0.5);
}

/* BOTÓN 2: CRISTAL / CONTORNO ESMERALDA-TURQUESA (Digital / Prácticas) */
body.newendo-terrain .pathway-btn--outline {
    background: rgba(145, 184, 178, 0.1);
    color: #bbf0e8 !important;
    border: 1.5px solid rgba(145, 184, 178, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 14px rgba(145, 184, 178, 0.1);
}

body.newendo-terrain .pathway-btn--outline i {
    color: #91b8b2;
    font-size: 0.85rem;
    transition: transform 260ms ease;
}

body.newendo-terrain .pathway-card--practice:hover .pathway-btn--outline,
body.newendo-terrain .pathway-card--practice:focus-visible .pathway-btn--outline {
    background: rgba(145, 184, 178, 0.22);
    border-color: rgba(145, 184, 178, 0.9);
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 24px rgba(72, 153, 137, 0.45), inset 0 0 20px rgba(145, 184, 178, 0.2);
}

body.newendo-terrain .pathway-card--practice:hover .pathway-btn--outline i,
body.newendo-terrain .pathway-card--practice:focus-visible .pathway-btn--outline i {
    color: #ffffff;
    transform: translateY(3px) scale(1.15);
}

[data-theme='light'] body.newendo-terrain .pathway-btn--outline {
    background: rgba(43, 90, 80, 0.08);
    color: #124337 !important;
    border-color: rgba(43, 90, 80, 0.5);
    box-shadow: 0 4px 14px rgba(43, 90, 80, 0.12), inset 0 0 12px rgba(43, 90, 80, 0.05);
}

[data-theme='light'] body.newendo-terrain .pathway-btn--outline i {
    color: #124337;
}

[data-theme='light'] body.newendo-terrain .pathway-card--practice:hover .pathway-btn--outline {
    background: rgba(43, 90, 80, 0.16);
    border-color: rgba(43, 90, 80, 0.85);
    color: #082921 !important;
    box-shadow: 0 6px 20px rgba(43, 90, 80, 0.25);
}

body.newendo-terrain .pathways__note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: 46rem;
    margin: 1.5rem auto 0;
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 0.78rem;
    line-height: 1.55;
}

body.newendo-terrain .pathways__note i {
    margin-top: 0.12rem;
    color: var(--terrain-water);
}

/* Practice navigator & Tu Momento Ahora (Refined Elegance - Green Degrade) */
body.newendo-terrain .circadian-hub-card,
body.newendo-terrain .tools-nav-wrapper {
    position: relative;
    border: 1px solid rgba(145, 184, 178, 0.35) !important;
    border-radius: 1.5rem !important;
    background: radial-gradient(ellipse at 10% 90%, rgba(72, 153, 137, 0.2) 0%, rgba(14, 34, 28, 0.92) 55%, rgba(9, 20, 16, 0.98) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(180, 240, 230, 0.14),
        0 24px 60px rgba(2, 10, 8, 0.55),
        0 0 50px rgba(72, 153, 137, 0.08) !important;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.newendo-terrain .circadian-hub-card {
    max-width: 66rem;
    margin-inline: auto;
}

body.newendo-terrain .tools-nav-wrapper {
    width: min(100% - 2.5rem, 66rem);
    margin: clamp(3.5rem, 7vw, 6rem) auto clamp(2rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3.25rem);
}

[data-theme='light'] body.newendo-terrain .circadian-hub-card,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper {
    background: radial-gradient(ellipse at 10% 90%, rgba(218, 239, 233, 0.98) 0%, rgba(206, 229, 223, 0.92) 55%, rgba(196, 221, 214, 0.88) 100%) !important;
    border-color: rgba(43, 90, 80, 0.35) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 20px 50px rgba(43, 90, 80, 0.15),
        0 0 45px rgba(145, 184, 178, 0.1) !important;
}

/* ════ BOTONES: TU MOMENTO AHORA & PRÁCTICAS GUIADAS (Degradé lineal verde consistente con Biblioteca Guiada) ════ */
body.newendo-terrain .section-practice-green .somatic-inline-btn,
body.newendo-terrain .section-practice-green .somatic-match__btn,
body.newendo-terrain .section-practice-green .circadian-cta-btn,
body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn,
body.newendo-terrain .tools-nav-wrapper .somatic-match__btn,
body.newendo-terrain .circadian-flow-section .circadian-cta-btn,
body.newendo-terrain .somatic-inline-btn--practice-green {
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.35) 0%, rgba(26, 68, 58, 0.85) 100%) !important;
    color: #bbf0e8 !important;
    border: 1.5px solid rgba(145, 184, 178, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 14px rgba(145, 184, 178, 0.1) !important;
    transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.newendo-terrain .section-practice-green .somatic-inline-btn i,
body.newendo-terrain .section-practice-green .somatic-match__btn i,
body.newendo-terrain .section-practice-green .circadian-cta-btn i,
body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn i,
body.newendo-terrain .tools-nav-wrapper .somatic-match__btn i,
body.newendo-terrain .circadian-flow-section .circadian-cta-btn i,
body.newendo-terrain .somatic-inline-btn--practice-green i {
    color: #91b8b2;
    font-size: 0.85rem;
    transition: transform 260ms ease;
}

body.newendo-terrain .section-practice-green .somatic-inline-btn:hover,
body.newendo-terrain .section-practice-green .somatic-inline-btn:focus-visible,
body.newendo-terrain .section-practice-green .somatic-match__btn:hover,
body.newendo-terrain .section-practice-green .somatic-match__btn:focus-visible,
body.newendo-terrain .section-practice-green .circadian-cta-btn:hover,
body.newendo-terrain .section-practice-green .circadian-cta-btn:focus-visible,
body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn:hover,
body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn:focus-visible,
body.newendo-terrain .tools-nav-wrapper .somatic-match__btn:hover,
body.newendo-terrain .tools-nav-wrapper .somatic-match__btn:focus-visible,
body.newendo-terrain .circadian-flow-section .circadian-cta-btn:hover,
body.newendo-terrain .circadian-flow-section .circadian-cta-btn:focus-visible,
body.newendo-terrain .somatic-inline-btn--practice-green:hover,
body.newendo-terrain .somatic-inline-btn--practice-green:focus-visible {
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.55) 0%, rgba(35, 88, 76, 0.95) 100%) !important;
    border-color: rgba(145, 184, 178, 0.9) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 7px 24px rgba(72, 153, 137, 0.45), inset 0 0 20px rgba(145, 184, 178, 0.2) !important;
}

body.newendo-terrain .section-practice-green .somatic-inline-btn:hover i,
body.newendo-terrain .section-practice-green .somatic-match__btn:hover i,
body.newendo-terrain .section-practice-green .circadian-cta-btn:hover i,
body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn:hover i,
body.newendo-terrain .tools-nav-wrapper .somatic-match__btn:hover i,
body.newendo-terrain .circadian-flow-section .circadian-cta-btn:hover i,
body.newendo-terrain .somatic-inline-btn--practice-green:hover i {
    color: #ffffff;
    transform: translateX(3px);
}

[data-theme='light'] body.newendo-terrain .section-practice-green .somatic-inline-btn,
[data-theme='light'] body.newendo-terrain .section-practice-green .somatic-match__btn,
[data-theme='light'] body.newendo-terrain .section-practice-green .circadian-cta-btn,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper .somatic-match__btn,
[data-theme='light'] body.newendo-terrain .circadian-flow-section .circadian-cta-btn,
[data-theme='light'] body.newendo-terrain .somatic-inline-btn--practice-green {
    background: linear-gradient(135deg, rgba(43, 90, 80, 0.12) 0%, rgba(43, 90, 80, 0.24) 100%) !important;
    color: #124337 !important;
    border: 1.5px solid rgba(43, 90, 80, 0.5) !important;
    box-shadow: 0 4px 14px rgba(43, 90, 80, 0.12), inset 0 0 12px rgba(43, 90, 80, 0.05) !important;
}

[data-theme='light'] body.newendo-terrain .section-practice-green .somatic-inline-btn:hover,
[data-theme='light'] body.newendo-terrain .section-practice-green .somatic-inline-btn:focus-visible,
[data-theme='light'] body.newendo-terrain .section-practice-green .somatic-match__btn:hover,
[data-theme='light'] body.newendo-terrain .section-practice-green .somatic-match__btn:focus-visible,
[data-theme='light'] body.newendo-terrain .section-practice-green .circadian-cta-btn:hover,
[data-theme='light'] body.newendo-terrain .section-practice-green .circadian-cta-btn:focus-visible,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn:hover,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper .somatic-inline-btn:focus-visible,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper .somatic-match__btn:hover,
[data-theme='light'] body.newendo-terrain .tools-nav-wrapper .somatic-match__btn:focus-visible,
[data-theme='light'] body.newendo-terrain .circadian-flow-section .circadian-cta-btn:hover,
[data-theme='light'] body.newendo-terrain .circadian-flow-section .circadian-cta-btn:focus-visible,
[data-theme='light'] body.newendo-terrain .somatic-inline-btn--practice-green:hover,
[data-theme='light'] body.newendo-terrain .somatic-inline-btn--practice-green:focus-visible {
    background: linear-gradient(135deg, rgba(43, 90, 80, 0.22) 0%, rgba(43, 90, 80, 0.38) 100%) !important;
    border-color: rgba(43, 90, 80, 0.85) !important;
    color: #082921 !important;
    box-shadow: 0 6px 20px rgba(43, 90, 80, 0.25) !important;
}

body.newendo-terrain .circadian-hub-card::before,
body.newendo-terrain .tools-nav-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(72, 153, 137, 0.08) 0%, transparent 60%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

body.newendo-terrain .tools-nav-label,
body.newendo-terrain .tools-nav-intro,
body.newendo-terrain .practice-routes,
body.newendo-terrain .tools-nav {
    position: relative;
    z-index: 1;
}

body.newendo-terrain .tools-nav-label {
    color: var(--terrain-stone);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    text-align: center;
}

body.newendo-terrain .tools-nav-intro {
    max-width: 32rem;
    margin: 0.6rem auto 2.5rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.55;
    text-align: center;
}

body.newendo-terrain .practice-routes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.25rem;
    max-width: 58rem;
    margin-inline: auto;
}

@media (min-width: 48rem) {
    body.newendo-terrain .practice-routes {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

body.newendo-terrain .practice-routes a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    padding: 1.6rem 1.25rem;
    border: 1px solid rgba(145, 184, 178, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-light);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='light'] body.newendo-terrain .practice-routes a {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(43, 90, 80, 0.22);
    box-shadow: 0 4px 16px rgba(43, 90, 80, 0.06);
}

body.newendo-terrain .practice-routes a:hover,
body.newendo-terrain .practice-routes a:focus-visible,
body.newendo-terrain .practice-routes a.is-active {
    border-color: rgba(145, 184, 178, 0.6);
    background: radial-gradient(circle at 50% 0%, rgba(72, 153, 137, 0.2) 0%, rgba(14, 34, 28, 0.92) 100%);
    color: var(--text-light);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(72, 153, 137, 0.2);
}

[data-theme='light'] body.newendo-terrain .practice-routes a:hover,
[data-theme='light'] body.newendo-terrain .practice-routes a:focus-visible,
[data-theme='light'] body.newendo-terrain .practice-routes a.is-active {
    border-color: rgba(43, 90, 80, 0.55);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(43, 90, 80, 0.15);
}

body.newendo-terrain .practice-routes__icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(145, 184, 178, 0.12);
    border: 1px solid rgba(145, 184, 178, 0.32);
    color: var(--terrain-water, #91b8b2);
    font-size: 1.15rem;
    transition: transform 350ms ease, background 350ms ease, color 350ms ease, border-color 350ms ease;
}

[data-theme='light'] body.newendo-terrain .practice-routes__icon {
    background: rgba(43, 90, 80, 0.1);
    border-color: rgba(43, 90, 80, 0.28);
    color: #175446;
}

body.newendo-terrain .practice-routes a:hover .practice-routes__icon {
    transform: scale(1.08);
    background: rgba(72, 153, 137, 0.3);
    color: #bbf0e8;
    border-color: rgba(145, 184, 178, 0.65);
}

[data-theme='light'] body.newendo-terrain .practice-routes a:hover .practice-routes__icon {
    background: rgba(43, 90, 80, 0.18);
    color: #0d382e;
}

body.newendo-terrain .practice-routes strong,
body.newendo-terrain .practice-routes small {
    display: block;
}

body.newendo-terrain .practice-routes strong {
    color: var(--terrain-stone, #f1eee6);
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

[data-theme='light'] body.newendo-terrain .practice-routes strong {
    color: #1a241f;
}

body.newendo-terrain .practice-routes small {
    color: var(--text-muted, #9ca89f);
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 500;
}

[data-theme='light'] body.newendo-terrain .practice-routes small {
    color: #55635b;
}

body.newendo-terrain .practice-routes > a > i {
    display: none;
}

body.newendo-terrain .tools-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(145, 184, 178, 0.2);
}

[data-theme='light'] body.newendo-terrain .tools-nav {
    border-top-color: rgba(43, 90, 80, 0.2);
}

body.newendo-terrain .tools-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0.45rem 1.05rem;
    border: 1px solid rgba(145, 184, 178, 0.25);
    border-radius: 999px;
    background: rgba(145, 184, 178, 0.06);
    color: #cbd1c8;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 550;
    letter-spacing: 0.015em;
    transition: all 250ms ease;
    text-decoration: none;
}

body.newendo-terrain .tools-nav a i {
    color: var(--terrain-water, #91b8b2);
    font-size: 0.76rem;
    margin-right: 0.45rem;
    opacity: 0.85;
    transition: transform 250ms ease, opacity 250ms ease;
}

body.newendo-terrain .tools-nav a:hover,
body.newendo-terrain .tools-nav a:focus-visible,
body.newendo-terrain .tools-nav a.is-current {
    border-color: rgba(145, 184, 178, 0.6);
    background: rgba(145, 184, 178, 0.18);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(72, 153, 137, 0.25);
}

body.newendo-terrain .tools-nav a:hover i,
body.newendo-terrain .tools-nav a:focus-visible i,
body.newendo-terrain .tools-nav a.is-current i {
    transform: scale(1.15);
    opacity: 1;
}

[data-theme='light'] body.newendo-terrain .tools-nav a {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(43, 90, 80, 0.22);
    color: #1c352d;
}

[data-theme='light'] body.newendo-terrain .tools-nav a i {
    color: #175446;
}

[data-theme='light'] body.newendo-terrain .tools-nav a:hover,
[data-theme='light'] body.newendo-terrain .tools-nav a:focus-visible,
[data-theme='light'] body.newendo-terrain .tools-nav a.is-current {
    background: #ffffff;
    border-color: rgba(43, 90, 80, 0.5);
    color: #082921;
    box-shadow: 0 4px 14px rgba(43, 90, 80, 0.12);
}

/* Typography and calm density through the long page */
body.newendo-terrain .section {
    position: relative;
    padding-block: clamp(4.75rem, 9vw, 7.5rem);
}

body.newendo-terrain .section[id] {
    scroll-margin-top: 5.5rem;
}

body.newendo-terrain .section-title {
    max-width: 16ch;
    margin-inline: auto;
    color: var(--terrain-stone);
    font-family: var(--font-display);
    font-size: clamp(2.55rem, 5vw, 4.4rem);
    font-weight: 500;
    line-height: 0.97;
    letter-spacing: -0.045em;
    text-transform: none;
}

body.newendo-terrain .section-label {
    color: var(--terrain-water);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

body.newendo-terrain .intro-text,
body.newendo-terrain .about-section p {
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: clamp(0.96rem, 0.92rem + 0.12vw, 1.08rem);
    line-height: 1.8;
}

body.newendo-terrain .section-divider .line,
body.newendo-terrain .editorial-divider .line {
    background: linear-gradient(90deg, transparent, var(--terrain-water), transparent);
}

body.newendo-terrain .section-divider .diamond {
    background: var(--terrain-lava);
}

body.newendo-terrain .dionysian-accent::before,
body.newendo-terrain .apollonian-accent::before {
    opacity: 0.36;
}

/* Subpage Editorial Heroes (Apolo & Dionisio) */
body.newendo-terrain .apollonian-hero,
body.newendo-terrain .dionysian-hero {
    min-height: clamp(24rem, 45vh, 32rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: clamp(6.5rem, 13vh, 9rem);
    padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

body.newendo-terrain .apollonian-hero .hero-content,
body.newendo-terrain .dionysian-hero .hero-content {
    width: min(100% - 2rem, 58rem);
    margin-inline: auto;
    text-align: center;
}

body.newendo-terrain .apollonian-hero .hero-title,
body.newendo-terrain .dionysian-hero .hero-title {
    max-width: 100% !important;
    font-size: clamp(2.3rem, 6.2vw, 4.2rem) !important;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12 !important;
    letter-spacing: 0.02em !important;
    color: var(--text-light) !important;
    -webkit-text-fill-color: var(--text-light) !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.25rem !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
    background: none !important;
}

[data-theme='light'] body.newendo-terrain .apollonian-hero .hero-title,
[data-theme='light'] body.newendo-terrain .dionysian-hero .hero-title {
    color: var(--text-light) !important;
    -webkit-text-fill-color: var(--text-light) !important;
    text-shadow: none !important;
}

body.newendo-terrain .apollonian-hero .hero-subtitle,
body.newendo-terrain .dionysian-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.08rem, 1.02rem + 0.38vw, 1.38rem);
    font-style: normal;
    color: var(--gold-bright);
    line-height: 1.6;
    letter-spacing: 0.015em;
    max-width: 44rem;
    margin-inline: auto;
    margin-top: 0.75rem;
    margin-bottom: 0;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
}

[data-theme='light'] body.newendo-terrain .apollonian-hero .hero-subtitle,
[data-theme='light'] body.newendo-terrain .dionysian-hero .hero-subtitle {
    color: var(--terrain-moss);
}

/* Responsive Video Embed Container */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0 1.75rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(145, 184, 178, 0.25);
    background: rgba(16, 23, 20, 0.7);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

[data-theme='light'] .video-embed-wrapper {
    border-color: rgba(37, 67, 52, 0.2);
    background: #e8e6dd;
    box-shadow: 0 8px 24px rgba(38, 52, 42, 0.12);
}

body.newendo-terrain .practice-safety {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    max-width: 53rem;
    margin: 1.45rem auto 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(145, 184, 178, 0.22);
    border-left: 3px solid var(--terrain-water);
    border-radius: 0.55rem;
    background: rgba(145, 184, 178, 0.055);
    color: var(--text-body);
    font-family: var(--font-accent);
    font-size: 0.76rem;
    line-height: 1.6;
}

body.newendo-terrain .practice-safety > i {
    margin-top: 0.2rem;
    color: var(--terrain-water);
}

body.newendo-terrain .practice-safety p {
    margin: 0;
}

body.newendo-terrain .practice-safety--quiet {
    margin-left: 0;
    background: transparent;
}

body.newendo-terrain .practice-safety--quiet i {
    color: var(--terrain-lava);
}

body.newendo-terrain .breathing-hub,
body.newendo-terrain .evaluator-box,
body.newendo-terrain .wh-tool-container,
body.newendo-terrain .air-quality-tool,
body.newendo-terrain .ixo-tool {
    border-color: rgba(145, 184, 178, 0.23);
    box-shadow: 0 18px 46px rgba(3, 12, 8, 0.22);
}

body.newendo-terrain .breathing-tab[aria-selected='true'] {
    border-color: var(--terrain-water);
    background: rgba(145, 184, 178, 0.11);
}

body.newendo-terrain .wh-btn.primary,
body.newendo-terrain .btn-primary {
    border-color: var(--terrain-lava);
    background: var(--terrain-lava);
    color: #fffaf3;
}

body.newendo-terrain .wh-btn .button-icon {
    margin-right: 0.45rem;
}

body.newendo-terrain .med-stepper-btn .button-icon {
    margin: 0;
}

body.newendo-terrain .wh-btn.primary:hover,
body.newendo-terrain .wh-btn.primary:focus-visible,
body.newendo-terrain .btn-primary:hover,
body.newendo-terrain .btn-primary:focus-visible {
    border-color: #913d2d;
    background: #913d2d;
    color: #fff;
}

body.newendo-terrain .eval-result {
    border-color: rgba(145, 184, 178, 0.31);
    background: rgba(145, 184, 178, 0.08);
}

body.newendo-terrain .eval-result h4,
body.newendo-terrain .eval-link {
    color: var(--terrain-water);
}

body.newendo-terrain .conditions-list {
    max-width: 47rem;
    margin: 1.75rem auto 0;
}

body.newendo-terrain .conditions-list li {
    border-color: var(--glass-border);
    color: var(--text-body);
}

body.newendo-terrain .conditions-list li::before {
    color: var(--terrain-lava);
}

body.newendo-terrain .principles-list {
    max-width: 49rem;
    margin-inline: auto;
}

body.newendo-terrain .principles-list li {
    border-left-color: var(--terrain-water);
    color: var(--text-body);
}

body.newendo-terrain .archive-card {
    border-color: var(--glass-border);
    background: var(--bg-surface);
    background: color-mix(in srgb, var(--bg-surface) 87%, transparent);
}

body.newendo-terrain .archive-card:hover {
    border-color: rgba(145, 184, 178, 0.46);
}

body.newendo-terrain .archive-card h3 {
    color: var(--terrain-stone);
    font-family: var(--font-display);
    font-weight: 500;
}

/* ═══ Pilares del Newen (3 Dimensiones) ═══ */
body.newendo-terrain .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

body.newendo-terrain .pillar-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.4rem;
    border-color: var(--glass-border, rgba(212, 165, 57, 0.15));
    border-radius: 10px;
    background: var(--bg-surface);
    background: color-mix(in srgb, var(--bg-surface) 87%, transparent);
    text-align: left;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease, background 0.35s ease;
}

body.newendo-terrain .pillar-card:hover,
body.newendo-terrain .pillar-card:focus-visible {
    border-color: rgba(212, 165, 57, 0.45);
    background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 16px rgba(212, 165, 57, 0.18);
    outline: none;
}

body.newendo-terrain .pillar-card:active {
    transform: translateY(-1px) scale(0.99);
}

body.newendo-terrain .pillar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 165, 57, 0.1);
    border: 1px solid rgba(212, 165, 57, 0.28);
    color: var(--gold-warm);
    font-size: 1.25rem;
    margin: 0;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.newendo-terrain .pillar-card:hover .pillar-badge,
body.newendo-terrain .pillar-card:focus-visible .pillar-badge {
    background: var(--gold-warm);
    color: var(--bg-deep, #080706);
    border-color: var(--gold-warm);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(212, 165, 57, 0.35);
}

body.newendo-terrain .pillar-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

body.newendo-terrain .pillar-card h3 {
    font-family: var(--font-heading, var(--font-display));
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--terrain-stone, var(--text-light));
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.35rem 0;
    transition: color 0.3s ease;
}

body.newendo-terrain .pillar-card:hover h3,
body.newendo-terrain .pillar-card:focus-visible h3 {
    color: var(--gold-warm);
}

body.newendo-terrain .pillar-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

body.newendo-terrain .pillar-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--gold-muted);
    font-size: 0.8rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

body.newendo-terrain .pillar-card:hover .pillar-arrow,
body.newendo-terrain .pillar-card:focus-visible .pillar-arrow {
    opacity: 1;
    color: var(--gold-warm);
    transform: translateX(3px);
}

/* Light theme adaptations */
[data-theme='light'] body.newendo-terrain .pillar-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(180, 140, 60, 0.22);
}

[data-theme='light'] body.newendo-terrain .pillar-card:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(180, 140, 60, 0.5);
    box-shadow: 0 8px 22px rgba(180, 140, 60, 0.15);
}

[data-theme='light'] body.newendo-terrain .pillar-card h3 {
    color: #1a1714;
}

[data-theme='light'] body.newendo-terrain .pillar-card:hover h3 {
    color: #996e1e;
}

[data-theme='light'] body.newendo-terrain .pillar-card p {
    color: #55504a;
}

[data-theme='light'] body.newendo-terrain .pillar-badge {
    background: rgba(180, 140, 60, 0.1);
    border-color: rgba(180, 140, 60, 0.3);
    color: #996e1e;
}

[data-theme='light'] body.newendo-terrain .pillar-card:hover .pillar-badge {
    background: #996e1e;
    color: #ffffff;
    border-color: #996e1e;
}

@media (max-width: 1024px) {
    body.newendo-terrain .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    body.newendo-terrain .pillar-card {
        padding: 1.15rem 1rem;
        gap: 0.9rem;
    }
}

@media (max-width: 860px) {
    body.newendo-terrain .pillars-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-top: 1.75rem;
    }
}

@media (max-width: 768px) {
    body.newendo-terrain .pillars-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-top: 1.5rem;
    }
    body.newendo-terrain .pillar-card {
        padding: 0.75rem 0.9rem;
        gap: 0.85rem;
        border-radius: 8px;
    }
    body.newendo-terrain .pillar-badge {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    body.newendo-terrain .pillar-content h3 {
        font-size: 0.92rem;
        letter-spacing: 0.05em;
        margin-bottom: 0.12rem;
    }
    body.newendo-terrain .pillar-content p {
        font-size: 0.78rem;
        line-height: 1.35;
    }
    body.newendo-terrain .pillar-arrow {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body.newendo-terrain .pillars-grid {
        gap: 0.5rem;
        margin-top: 1.25rem;
    }
    body.newendo-terrain .pillar-card {
        padding: 0.7rem 0.8rem;
        gap: 0.75rem;
    }
    body.newendo-terrain .pillar-badge {
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }
    body.newendo-terrain .pillar-content h3 {
        font-size: 0.88rem;
        margin-bottom: 0.1rem;
    }
    body.newendo-terrain .pillar-content p {
        font-size: 0.74rem;
        line-height: 1.3;
    }
    body.newendo-terrain .pillar-arrow {
        display: none;
    }
}

body.newendo-terrain .archive-card-meta,
body.newendo-terrain .card-link-arrow {
    color: var(--terrain-water);
}

body.newendo-terrain .site-footer {
    border-top-color: rgba(145, 184, 178, 0.18);
}

body.newendo-terrain .floating-whatsapp {
    border: 2px solid var(--bg-deep);
    box-shadow: 0 10px 26px rgba(6, 23, 14, 0.36);
}

body.newendo-terrain .terrain-faq {
    position: relative;
    overflow: hidden;
}

body.newendo-terrain .terrain-faq::before {
    content: '';
    position: absolute;
    inset: 15% auto auto -9rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(145, 184, 178, 0.16);
    border-radius: 50% 50% 48% 52% / 56% 42% 58% 44%;
    pointer-events: none;
}

body.newendo-terrain .terrain-faq__list {
    display: grid;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

body.newendo-terrain .terrain-faq details {
    border: 1px solid rgba(145, 184, 178, 0.25);
    border-radius: 0.7rem 2rem 0.7rem 0.7rem;
    background: rgba(22, 36, 28, 0.54);
    transition: border-color 180ms ease, background 180ms ease;
}

body.newendo-terrain .terrain-faq details[open],
body.newendo-terrain .terrain-faq details:hover {
    border-color: rgba(145, 184, 178, 0.62);
    background: rgba(27, 48, 38, 0.68);
}

body.newendo-terrain .terrain-faq summary {
    align-items: center;
    color: var(--terrain-stone);
    cursor: pointer;
    display: flex;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    gap: 0.9rem;
    line-height: 1.25;
    list-style: none;
    min-height: 4.25rem;
    padding: 1rem 1.25rem;
}

body.newendo-terrain .terrain-faq summary::-webkit-details-marker {
    display: none;
}

body.newendo-terrain .terrain-faq summary::after {
    color: var(--terrain-water);
    content: '+';
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1;
    margin-left: auto;
    transition: transform 180ms ease;
}

body.newendo-terrain .terrain-faq details[open] summary::after {
    transform: rotate(45deg);
}

body.newendo-terrain .terrain-faq p {
    color: var(--terrain-mist);
    font-size: 1.04rem;
    line-height: 1.7;
    margin: 0;
    max-width: 72ch;
    padding: 0 1.25rem 1.3rem;
}

[data-theme='light'] body.newendo-terrain .terrain-faq details {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(36, 85, 68, 0.22);
}

[data-theme='light'] body.newendo-terrain .terrain-faq details[open],
[data-theme='light'] body.newendo-terrain .terrain-faq details:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(36, 85, 68, 0.5);
}

@media (max-width: 900px) {
    body.newendo-terrain .site-nav {
        background: color-mix(in srgb, var(--bg-deep) 90%, transparent);
    }

    body.newendo-terrain .pathways__intro {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    body.newendo-terrain .pathways__intro h2 {
        max-width: 15ch;
    }

    body.newendo-terrain .practice-routes {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }

    body.newendo-terrain .practice-routes a {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 0.65rem 0.95rem;
        gap: 0.8rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    body.newendo-terrain .practice-routes__icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    body.newendo-terrain .practice-routes strong {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
        line-height: 1.15;
    }

    body.newendo-terrain .practice-routes small {
        font-size: 0.74rem;
        line-height: 1.2;
    }

    body.newendo-terrain .practice-routes > a > i {
        display: block;
        margin-left: auto;
        font-size: 0.75rem;
        color: var(--gold-bright, #d3b06a);
        opacity: 0.7;
        padding-left: 0.4rem;
        flex-shrink: 0;
    }
}

@media (max-width: 700px) {
    body.newendo-terrain .hero {
        min-height: max(43rem, 100svh);
        padding-top: max(7rem, calc(env(safe-area-inset-top) + 5rem));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    body.newendo-terrain .hero-content {
        width: min(100% - 2.25rem, 38rem);
    }

    body.newendo-terrain .hero-ornament {
        width: 31rem;
        height: 25rem;
        top: 25%;
        right: -13rem;
        opacity: 0.68;
    }

    body.newendo-terrain .hero-title {
        max-width: 9.2ch;
        font-size: clamp(3.15rem, 15vw, 4.85rem) !important;
    }

    body.newendo-terrain .hero-place {
        max-width: 18rem;
        font-size: 0.75rem;
        line-height: 1.45;
    }

    body.newendo-terrain .hero-cta-cluster,
    body.newendo-terrain .hero-cta-secondary {
        width: 100%;
    }

    body.newendo-terrain .hero-cta-main,
    body.newendo-terrain .hero-cta-pill {
        width: 100%;
        justify-content: center;
    }

    body.newendo-terrain .pathways {
        padding-inline: 1.15rem;
    }

    body.newendo-terrain .pathways__grid {
        grid-template-columns: 1fr;
    }

    body.newendo-terrain .pathway-card {
        min-height: 16.5rem;
    }

    body.newendo-terrain .pathway-card--session {
        border-radius: 1.25rem 1.25rem 3.5rem 1.25rem !important;
    }

    body.newendo-terrain .pathway-card--practice {
        border-radius: 1.25rem 1.25rem 1.25rem 3.5rem !important;
    }

    body.newendo-terrain .tools-nav-wrapper {
        width: min(100% - 1.5rem, 72rem);
        padding: 1.5rem 1.15rem;
        border-radius: 1.25rem;
    }

    body.newendo-terrain .tools-nav {
        max-height: 13rem;
        overflow: auto;
        scrollbar-width: thin;
    }

    body.newendo-terrain .section-title {
        font-size: clamp(2.4rem, 12vw, 3.65rem);
    }

    body.newendo-terrain .practice-safety {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.newendo-terrain .pathway-card,
    body.newendo-terrain .pathway-card::after,
    body.newendo-terrain .practice-routes a,
    body.newendo-terrain .pathway-card__meta i {
        transition: none;
    }

    body.newendo-terrain .pathway-card:hover,
    body.newendo-terrain .pathway-card:focus-visible,
    body.newendo-terrain .practice-routes a:hover,
    body.newendo-terrain .practice-routes a:focus-visible {
        transform: none;
    }
}


/* ══════════════════════════════════════════════════════════════
   MEDITATION TOOL (Organic Design Override for Newendo Terrain)
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .meditation-tool {
    border: none;
    border-radius: 2rem 4rem 3rem 2.5rem / 3rem 2.5rem 4rem 2rem;
    background: radial-gradient(circle at 100% 100%, rgba(29, 42, 37, 0.85) 0%, rgba(23, 34, 29, 0.95) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 30px 60px rgba(4, 14, 9, 0.4),
        0 0 80px rgba(145, 184, 178, 0.05);
    overflow: hidden;
}

[data-theme='light'] body.newendo-terrain .meditation-tool {
    background: radial-gradient(circle at 100% 100%, rgba(236, 238, 229, 0.95) 0%, rgba(225, 228, 218, 0.85) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 30px 60px rgba(198, 211, 196, 0.3),
        0 0 80px rgba(145, 184, 178, 0.1);
}

body.newendo-terrain .meditation-tool::before {
    background: radial-gradient(circle, rgba(145, 184, 178, 0.08) 0%, transparent 70%);
}

body.newendo-terrain .meditation-block {
    border-bottom-color: rgba(145, 184, 178, 0.15);
}

[data-theme='light'] body.newendo-terrain .meditation-block {
    border-bottom-color: rgba(145, 184, 178, 0.25);
}

body.newendo-terrain .meditation-block {
    margin-bottom: 1.6rem;
    padding-bottom: 1.35rem;
}

body.newendo-terrain .meditation-block-header {
    margin-bottom: 0.65rem;
}

body.newendo-terrain .meditation-phase-eyebrow {
    display: inline-block;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terrain-water);
    margin-bottom: 0.2rem;
}

body.newendo-terrain .meditation-block-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    color: var(--tool-text-title);
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.03em;
}

body.newendo-terrain .meditation-block-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--tool-text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

body.newendo-terrain .meditation-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    margin: 0 auto 0.85rem;
}

body.newendo-terrain .med-preset-btn,
body.newendo-terrain .soundscape-btn {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(145, 184, 178, 0.15);
    transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

body.newendo-terrain .med-preset-btn {
    flex: 1 1 120px;
    max-width: 160px;
    min-width: 90px;
    text-align: center;
}

[data-theme="light"] body.newendo-terrain .med-preset-btn,
[data-theme="light"] body.newendo-terrain .soundscape-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(145, 184, 178, 0.25);
}

body.newendo-terrain .med-preset-btn:hover,
body.newendo-terrain .med-preset-btn:focus-visible,
body.newendo-terrain .soundscape-btn:hover,
body.newendo-terrain .soundscape-btn:focus-visible {
    background: rgba(145, 184, 178, 0.08);
    border-color: rgba(145, 184, 178, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

body.newendo-terrain .med-preset-btn.active,
body.newendo-terrain .med-preset-btn[aria-pressed="true"],
body.newendo-terrain .soundscape-btn.active,
body.newendo-terrain .soundscape-btn[aria-checked="true"] {
    background: rgba(145, 184, 178, 0.15);
    border-color: var(--terrain-water);
    box-shadow: 0 0 20px rgba(145, 184, 178, 0.3), inset 0 0 10px rgba(145, 184, 178, 0.1);
    transform: translateY(-2px);
}

[data-theme="light"] body.newendo-terrain .med-preset-btn.active,
[data-theme="light"] body.newendo-terrain .soundscape-btn.active {
    background: rgba(145, 184, 178, 0.25);
    border-color: var(--terrain-water);
}

body.newendo-terrain .med-preset-val,
body.newendo-terrain .soundscape-name {
    color: var(--terrain-water);
    font-family: var(--font-heading, 'Cinzel', serif);
}

body.newendo-terrain .soundscape-badge {
    color: var(--terrain-water);
    background: rgba(145, 184, 178, 0.12);
    border-color: rgba(145, 184, 178, 0.3);
}

body.newendo-terrain .meditation-custom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    background: rgba(145, 184, 178, 0.05);
    border: 1px dashed rgba(145, 184, 178, 0.25);
    margin: 0.75rem auto 0;
    max-width: 480px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

body.newendo-terrain .med-custom-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.85rem;
    color: var(--tool-text-body);
    letter-spacing: 0.04em;
    text-align: center;
    margin: 0;
}

[data-theme="light"] body.newendo-terrain .meditation-custom-row {
    background: rgba(145, 184, 178, 0.05);
}

body.newendo-terrain .med-btn.primary-play {
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(145, 184, 178, 0.8), var(--terrain-water));
    border: 1px solid var(--terrain-water);
    color: var(--bg-deep);
    box-shadow: 0 8px 30px rgba(145, 184, 178, 0.4);
}

body.newendo-terrain .med-btn.primary-play:hover {
    background: linear-gradient(135deg, rgba(145, 184, 178, 0.9), rgba(145, 184, 178, 1));
    box-shadow: 0 12px 35px rgba(145, 184, 178, 0.6);
}

body.newendo-terrain .med-btn.secondary {
    border-color: rgba(145, 184, 178, 0.35);
    color: var(--terrain-water);
    min-width: 44px;
    min-height: 44px;
}

body.newendo-terrain .med-btn.secondary:hover {
    background: rgba(145, 184, 178, 0.15);
    border-color: var(--terrain-water);
    color: var(--terrain-stone);
}

body.newendo-terrain .med-volume-wrap input[type=range] {
    height: 10px;
}

body.newendo-terrain .med-volume-wrap input[type=range]::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    background: var(--terrain-water);
    box-shadow: 0 0 12px rgba(145, 184, 178, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

body.newendo-terrain .med-volume-wrap input[type=range]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: var(--terrain-water);
    box-shadow: 0 0 12px rgba(145, 184, 178, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

body.newendo-terrain .med-progress-fill {
    background: linear-gradient(90deg, rgba(145, 184, 178, 0.5), var(--terrain-water));
    box-shadow: 0 0 10px rgba(145, 184, 178, 0.5);
}

/* Meditation Circle & Clock Enlargement */
body.newendo-terrain .meditation-tool {
    max-width: 900px;
    margin: 2.5rem auto 0;
    box-sizing: border-box;
}

body.newendo-terrain .meditation-player-box {
    margin-top: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.newendo-terrain .meditation-aura-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    max-width: 90vw;
    max-height: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 2.5rem;
}

body.newendo-terrain .meditation-circle-display {
    width: 270px;
    height: 270px;
    max-width: calc(90vw - 20px);
    max-height: calc(90vw - 20px);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    box-sizing: border-box;
    margin: 0 auto;
}

body.newendo-terrain .med-status-badge {
    max-width: 230px;
    font-size: 0.76rem;
    padding: 0.3rem 0.85rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    margin: 0 auto 0.4rem;
}

body.newendo-terrain .med-time-countdown {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin: 0.15rem 0;
    text-align: center;
    width: 100%;
}

body.newendo-terrain .med-frequency-label {
    max-width: 230px;
    font-size: 0.84rem;
    margin: 0.45rem auto 0;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    overflow: visible;
    text-overflow: clip;
}

body.newendo-terrain .med-progress-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 580px;
    margin: 0 auto 2rem;
}

body.newendo-terrain .med-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 2rem;
}

body.newendo-terrain .med-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

/* Mobile Responsiveness (Enlarged Marco & Centered Circle) */
@media (max-width: 768px) {
    body.newendo-terrain .meditation-tool {
        padding: 1.5rem 1rem;
        border-radius: 18px;
        margin-top: 1.5rem;
    }

    body.newendo-terrain .meditation-presets {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 0.55rem;
        width: 100%;
        margin: 0 auto 0.75rem;
    }

    body.newendo-terrain .med-preset-btn {
        flex: 1 1 95px;
        min-width: 85px;
        max-width: 135px;
        text-align: center;
    }

    body.newendo-terrain .meditation-player-box {
        padding: 1.75rem 0.85rem 1.5rem;
        border-radius: 16px;
        width: 100%;
    }

    body.newendo-terrain .meditation-aura-wrapper {
        width: min(250px, 68vw);
        height: min(250px, 68vw);
        margin: 1rem auto 1.75rem;
    }

    body.newendo-terrain .meditation-circle-display {
        width: min(210px, calc(68vw - 20px));
        height: min(210px, calc(68vw - 20px));
        padding: 1rem 0.75rem;
    }

    body.newendo-terrain .med-status-badge {
        max-width: 175px;
        font-size: 0.68rem;
        padding: 0.2rem 0.65rem;
        margin-bottom: 0.25rem;
    }

    body.newendo-terrain .med-time-countdown {
        font-size: clamp(2.1rem, 7vw, 2.6rem);
    }

    body.newendo-terrain .med-frequency-label {
        max-width: 175px;
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    body.newendo-terrain .med-progress-wrap {
        max-width: 440px;
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }

    body.newendo-terrain .med-controls-row {
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }

    body.newendo-terrain .med-btn.primary-play {
        min-height: 44px;
        padding: 0.65rem 1.6rem;
        font-size: 0.82rem;
        gap: 0.5rem;
        letter-spacing: 0.04em;
        border-radius: 2rem;
    }

    body.newendo-terrain .med-btn.secondary {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 0.95rem;
    }

    body.newendo-terrain .med-settings-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 440px;
        gap: 1rem;
    }

    body.newendo-terrain .med-volume-wrap {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        justify-content: center;
    }

    body.newendo-terrain .med-chime-toggle {
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body.newendo-terrain .meditation-tool {
        padding: 1.25rem 0.65rem;
    }

    body.newendo-terrain .meditation-presets {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 0.45rem;
        width: 100%;
        margin: 0 auto 0.65rem;
    }

    body.newendo-terrain .med-preset-btn {
        flex: 1 1 80px;
        min-width: 75px;
        max-width: 120px;
        padding: 0.65rem 0.35rem;
    }

    body.newendo-terrain .meditation-player-box {
        padding: 1.5rem 0.5rem 1.25rem;
    }

    body.newendo-terrain .meditation-aura-wrapper {
        width: min(230px, 66vw);
        height: min(230px, 66vw);
        margin: 0.75rem auto 1.35rem;
    }

    body.newendo-terrain .meditation-circle-display {
        width: min(190px, calc(66vw - 20px));
        height: min(190px, calc(66vw - 20px));
        padding: 0.75rem 0.5rem;
    }

    body.newendo-terrain .med-status-badge {
        max-width: 155px;
        font-size: 0.64rem;
    }

    body.newendo-terrain .med-time-countdown {
        font-size: 2.15rem;
    }

    body.newendo-terrain .med-frequency-label {
        max-width: 155px;
        font-size: 0.7rem;
    }

    body.newendo-terrain .med-btn.primary-play {
        padding: 0.6rem 1.25rem;
        font-size: 0.78rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   MERIDIANOS MIOFASCIALES (Anatomy Trains) PERSISTENT MENU
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .anatomy-trains-container {
    padding: 2.2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

body.newendo-terrain .at-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.newendo-terrain .at-sidebar-label {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright, #d3b06a);
    margin-bottom: 0.25rem;
}

body.newendo-terrain .at-btn {
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 165, 57, 0.18);
    color: var(--text-muted, #9e9484);
    padding: 0.85rem 1rem;
    transition: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme='light'] body.newendo-terrain .at-btn {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(145, 184, 178, 0.25);
}

body.newendo-terrain .at-btn:hover {
    background: rgba(212, 165, 57, 0.08);
    border-color: rgba(212, 165, 57, 0.45);
    color: var(--text-primary, #e8e0d0);
}

body.newendo-terrain .at-btn.active {
    background: rgba(212, 165, 57, 0.14);
    border-color: var(--active-color, #d4a539);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(212, 165, 57, 0.06);
}

[data-theme='light'] body.newendo-terrain .at-btn.active {
    background: rgba(212, 165, 57, 0.2);
    color: #1a1a1a;
}

body.newendo-terrain .at-info {
    border-radius: 1.15rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 165, 57, 0.15);
    padding: 1.85rem;
    margin-top: 0;
}

[data-theme='light'] body.newendo-terrain .at-info {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(145, 184, 178, 0.25);
}

@media (max-width: 960px) {
    body.newendo-terrain .anatomy-trains-container {
        display: flex;
        flex-direction: column;
        padding: 1.4rem 1.15rem;
        gap: 1.25rem;
    }

    body.newendo-terrain .at-sidebar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    body.newendo-terrain .at-sidebar-label {
        width: 100%;
        text-align: left;
    }

    body.newendo-terrain .at-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 130px;
        padding: 0.65rem 0.85rem;
        font-size: 0.72rem;
    }

    body.newendo-terrain .at-info {
        width: 100%;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    body.newendo-terrain .at-btn {
        flex: 1 1 100%;
        min-width: 0;
    }
}


/* ══════════════════════════════════════════════════════════════
   GLOBAL ORGANIC DESIGN (Sitewide Tools, Cards & Containers)
   ══════════════════════════════════════════════════════════════ */
/* Target all main interactive tool containers and structural cards */
body.newendo-terrain .circadian-container,
body.newendo-terrain .wh-tool-container,
body.newendo-terrain .air-quality-tool,
body.newendo-terrain .anatomy-trains-container,
body.newendo-terrain .eval-card,
body.newendo-terrain .eval-results-card,
body.newendo-terrain .archive-card,
body.newendo-terrain .blog-card {
    position: relative;
    border: none !important;
    border-radius: 2rem 3rem 2.5rem 3.5rem / 3rem 2.5rem 4rem 2rem;
    background: radial-gradient(circle at 0% 100%, rgba(29, 42, 37, 0.85) 0%, rgba(23, 34, 29, 0.95) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(4, 14, 9, 0.35),
        0 0 60px rgba(145, 184, 178, 0.03);
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme='light'] body.newendo-terrain .circadian-container,
[data-theme='light'] body.newendo-terrain .wh-tool-container,
[data-theme='light'] body.newendo-terrain .air-quality-tool,
[data-theme='light'] body.newendo-terrain .anatomy-trains-container,
[data-theme='light'] body.newendo-terrain .eval-card,
[data-theme='light'] body.newendo-terrain .eval-results-card,
[data-theme='light'] body.newendo-terrain .archive-card,
[data-theme='light'] body.newendo-terrain .blog-card {
    background: radial-gradient(circle at 0% 100%, rgba(236, 238, 229, 0.95) 0%, rgba(225, 228, 218, 0.85) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 20px 40px rgba(198, 211, 196, 0.3),
        0 0 60px rgba(145, 184, 178, 0.08);
}

/* Base Ambient Glow pseudo-element for all organic containers */
body.newendo-terrain .circadian-container::before,
body.newendo-terrain .wh-tool-container::before,
body.newendo-terrain .air-quality-tool::before,
body.newendo-terrain .anatomy-trains-container::before,
body.newendo-terrain .eval-card::before,
body.newendo-terrain .eval-results-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(145, 184, 178, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure contents stay above the ambient glow */
body.newendo-terrain .circadian-container > *,
body.newendo-terrain .wh-tool-container > *,
body.newendo-terrain .air-quality-tool > *,
body.newendo-terrain .anatomy-trains-container > *,
body.newendo-terrain .eval-card > *,
body.newendo-terrain .eval-results-card > *,
body.newendo-terrain .pathway-card > *,
body.newendo-terrain .archive-card > *,
body.newendo-terrain .blog-card > * {
    position: relative;
    z-index: 1;
}

/* Hover effect specifically for interactable cards (Blog, Archive) */
body.newendo-terrain .archive-card:hover,
body.newendo-terrain .blog-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 50px rgba(4, 14, 9, 0.45),
        0 0 80px rgba(145, 184, 178, 0.06);
}

[data-theme='light'] body.newendo-terrain .archive-card:hover,
[data-theme='light'] body.newendo-terrain .blog-card:hover {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 30px 50px rgba(198, 211, 196, 0.35),
        0 0 80px rgba(145, 184, 178, 0.12);
}

/* Unify specific inner elements (Icons, Progress, Buttons) across all organic tools */
body.newendo-terrain .wh-step-card,
body.newendo-terrain .eval-question-group,
body.newendo-terrain .sun-moon-card {
    border-radius: 1.5rem 1.5rem 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(145, 184, 178, 0.1);
}

[data-theme='light'] body.newendo-terrain .wh-step-card,
[data-theme='light'] body.newendo-terrain .eval-question-group,
[data-theme='light'] body.newendo-terrain .sun-moon-card {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(145, 184, 178, 0.2);
}

/* Primary actions across the site */
body.newendo-terrain .wh-btn.primary,
body.newendo-terrain .eval-submit-btn,
body.newendo-terrain .aqi-refresh-btn,
body.newendo-terrain .blog-card-read-btn {
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(145, 184, 178, 0.8), var(--terrain-water));
    border: 1px solid var(--terrain-water) !important;
    color: var(--bg-deep) !important;
    box-shadow: 0 8px 30px rgba(145, 184, 178, 0.4);
    transition: all 300ms ease;
}

body.newendo-terrain .wh-btn.primary:hover,
body.newendo-terrain .eval-submit-btn:hover,
body.newendo-terrain .aqi-refresh-btn:hover,
body.newendo-terrain .blog-card-read-btn:hover {
    background: linear-gradient(135deg, rgba(145, 184, 178, 0.9), rgba(145, 184, 178, 1));
    box-shadow: 0 12px 35px rgba(145, 184, 178, 0.6);
    transform: translateY(-2px);
}

/* Secondary & Danger buttons styling to fit organic theme */
body.newendo-terrain .wh-btn.danger {
    border-radius: 2rem;
    background: rgba(231, 156, 131, 0.15); /* Soft terra cotta red */
    border: 1px solid rgba(231, 156, 131, 0.35);
    color: #e79c83;
}
body.newendo-terrain .wh-btn.danger:hover {
    background: rgba(231, 156, 131, 0.25);
    border-color: #e79c83;
}

/* Update structural typography to match water/terrain */
body.newendo-terrain .tool-heading,
body.newendo-terrain .eval-card h3,
body.newendo-terrain .blog-card-title,
body.newendo-terrain .sun-moon-card strong {
    color: var(--terrain-stone) !important;
}

body.newendo-terrain .blog-card-category,
body.newendo-terrain .archive-card-meta {
    color: var(--terrain-water) !important;
}

/* Adjust the Blog List Container itself */
body.newendo-terrain .blog-list-container {
    gap: 2.5rem;
}

body.newendo-terrain .blog-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

body.newendo-terrain .blog-card-actions {
    border-top: 1px solid rgba(145, 184, 178, 0.15) !important;
    margin-top: auto;
    padding-top: 1.5rem;
}

body.newendo-terrain .blog-card-save-btn {
    border-radius: 50% !important;
    border-color: rgba(145, 184, 178, 0.3) !important;
    color: var(--terrain-water) !important;
}
body.newendo-terrain .blog-card-save-btn:hover,
body.newendo-terrain .blog-card-save-btn.saved {
    background: rgba(145, 184, 178, 0.15) !important;
    border-color: var(--terrain-water) !important;
}


/* Progress bars in tools */
body.newendo-terrain .wh-progress-fill,
body.newendo-terrain .eval-progress-fill {
    background: linear-gradient(90deg, rgba(145, 184, 178, 0.5), var(--terrain-water)) !important;
    box-shadow: 0 0 10px rgba(145, 184, 178, 0.5) !important;
    border-radius: 10px !important;
}

body.newendo-terrain .wh-progress-bar,
body.newendo-terrain .eval-progress-bar {
    border-color: rgba(145, 184, 178, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme='light'] body.newendo-terrain .wh-progress-bar,
[data-theme='light'] body.newendo-terrain .eval-progress-bar {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(145, 184, 178, 0.3) !important;
}

/* Tab buttons for Breathing tools */
body.newendo-terrain .breathing-tab {
    border-radius: 2rem !important;
    border: 1px solid rgba(145, 184, 178, 0.2) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
}

body.newendo-terrain .breathing-tab:hover {
    border-color: rgba(145, 184, 178, 0.35) !important;
    background: rgba(145, 184, 178, 0.08) !important;
    color: var(--terrain-stone) !important;
}

body.newendo-terrain .breathing-tab.active {
    border-color: var(--terrain-water) !important;
    background: rgba(145, 184, 178, 0.15) !important;
    color: var(--terrain-stone) !important;
    box-shadow: 0 0 15px rgba(145, 184, 178, 0.2) !important;
}

[data-theme='light'] body.newendo-terrain .breathing-tab.active {
    background: rgba(145, 184, 178, 0.25) !important;
}

/* Ixofillmogen toggle cards */
body.newendo-terrain .ixo-practice-card {
    border-radius: 2rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(145, 184, 178, 0.1) !important;
}

body.newendo-terrain .ixo-card-icon-wrap {
    background: rgba(145, 184, 178, 0.12) !important;
    color: var(--terrain-water) !important;
}

body.newendo-terrain input[type="radio"]:checked + .ixo-practice-card {
    border-color: var(--terrain-water) !important;
    background: rgba(145, 184, 178, 0.1) !important;
    box-shadow: 0 10px 25px rgba(145, 184, 178, 0.15) !important;
}

/* Ixo interactive visual element */
body.newendo-terrain .ixo-visual-element {
    border-radius: 50% !important;
    border-color: var(--terrain-water) !important;
    box-shadow: 0 0 40px rgba(145, 184, 178, 0.2) !important;
}


/* ══════════════════════════════════════════════════════════════
   FAQ ACCORDION (Organic Design)
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .terrain-faq details {
    position: relative;
    border: none !important;
    border-radius: 2rem 3.5rem 2.5rem 3rem / 3rem 2.5rem 4rem 2rem !important;
    background: radial-gradient(circle at 0% 100%, rgba(29, 42, 37, 0.75) 0%, rgba(23, 34, 29, 0.85) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 15px 35px rgba(4, 14, 9, 0.2),
        0 0 50px rgba(145, 184, 178, 0.02) !important;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1) !important;
    margin-bottom: 1.5rem;
}

[data-theme='light'] body.newendo-terrain .terrain-faq details {
    background: radial-gradient(circle at 0% 100%, rgba(236, 238, 229, 0.85) 0%, rgba(225, 228, 218, 0.75) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 15px 35px rgba(198, 211, 196, 0.2),
        0 0 50px rgba(145, 184, 178, 0.05) !important;
}

body.newendo-terrain .terrain-faq details[open],
body.newendo-terrain .terrain-faq details:hover {
    transform: translateY(-2px);
    background: radial-gradient(circle at 0% 100%, rgba(29, 42, 37, 0.95) 0%, rgba(23, 34, 29, 1) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(4, 14, 9, 0.35),
        0 0 60px rgba(145, 184, 178, 0.05) !important;
}

[data-theme='light'] body.newendo-terrain .terrain-faq details[open],
[data-theme='light'] body.newendo-terrain .terrain-faq details:hover {
    background: radial-gradient(circle at 0% 100%, rgba(236, 238, 229, 0.98) 0%, rgba(225, 228, 218, 0.9) 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 20px 40px rgba(198, 211, 196, 0.3),
        0 0 60px rgba(145, 184, 178, 0.1) !important;
}

body.newendo-terrain .terrain-faq summary {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    padding: 1.5rem 2rem;
    transition: color 300ms ease;
}

body.newendo-terrain .terrain-faq details[open] summary {
    color: var(--terrain-water);
    border-bottom: 1px solid rgba(145, 184, 178, 0.1);
}

[data-theme='light'] body.newendo-terrain .terrain-faq details[open] summary {
    border-bottom: 1px solid rgba(145, 184, 178, 0.2);
}

body.newendo-terrain .terrain-faq p {
    padding: 1.5rem 2rem 2rem;
    font-size: 1.05rem;
    color: var(--text-body);
}


/* ══════════════════════════════════════════════════════════════
   VOICE SEARCH (Organic Design)
   ══════════════════════════════════════════════════════════════ */
body.newendo-terrain .sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
}

body.newendo-terrain .voice-search-btn {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--terrain-mist);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 300ms ease;
    z-index: 3;
}

body.newendo-terrain .voice-search-btn:hover {
    color: var(--terrain-water);
    background: rgba(145, 184, 178, 0.1);
}

body.newendo-terrain .voice-search-btn.listening {
    color: #e79c83; /* Soft terra cotta / danger color */
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    background: rgba(231, 156, 131, 0.15);
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 156, 131, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(231, 156, 131, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 156, 131, 0); }
}

body.newendo-terrain .sidebar-search input#blog-search {
    padding-right: 3rem !important; /* Make room for the mic button */
}

/* ══════════════════════════════════════════════════════════════
   PWA UI COMPONENTS (Banner, Update Toast, Offline States)
   ══════════════════════════════════════════════════════════════ */
.pwa-install-banner {
    position: fixed;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 1.5rem));
    background: rgba(16, 14, 11, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 165, 57, 0.4);
    border-radius: 18px;
    padding: 0.85rem 1.15rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 165, 57, 0.15);
    z-index: 9999;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-banner.visible {
    display: flex;
    animation: pwaSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pwa-install-banner.hiding {
    opacity: 0;
    transform: translate(-50%, 25px);
    pointer-events: none;
}

[data-theme="light"] .pwa-install-banner {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(166, 122, 33, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 0 25px rgba(212, 165, 57, 0.15);
}

@keyframes pwaSlideUp {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.pwa-banner-icon {
    flex-shrink: 0;
}

.pwa-banner-icon img {
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    display: block;
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pwa-banner-text .pwa-banner-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold-bright, #f0c868);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .pwa-banner-text .pwa-banner-title {
    color: #4a3406;
}

.pwa-banner-text .pwa-banner-sub {
    font-size: 0.78rem;
    color: var(--text-muted, #a89f91);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-btn-install {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #d4a539 0%, #a67c21 100%);
    color: #080706;
    border: none;
    padding: 0.5rem 1.15rem;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(212, 165, 57, 0.25);
    white-space: nowrap;
}

.pwa-btn-install:hover {
    background: linear-gradient(135deg, #f0c868 0%, #d4a539 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 165, 57, 0.35);
}

.pwa-btn-install:active {
    transform: translateY(1px);
}

.pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted, #a89f91);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pwa-btn-dismiss:hover {
    color: var(--gold-bright, #f0c868);
    background: rgba(212, 165, 57, 0.1);
}

@media (max-width: 440px) {
    .pwa-install-banner {
        padding: 0.75rem 0.9rem;
        gap: 0.65rem;
    }

    .pwa-banner-icon img {
        width: 38px;
        height: 38px;
    }

    .pwa-banner-text .pwa-banner-title {
        font-size: 0.84rem;
    }

    .pwa-banner-text .pwa-banner-sub {
        font-size: 0.72rem;
    }

    .pwa-btn-install {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
}

/* ═══════════════════════════════════════════
   PWA UPDATE TOAST / BANNER NOTIFICATION
   ═══════════════════════════════════════════ */
.pwa-update-toast {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    width: min(94vw, 560px);
    background: rgba(12, 14, 13, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 165, 57, 0.4);
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    z-index: 10005;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 28px rgba(212, 165, 57, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-update-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.pwa-update-toast.hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}

[data-theme="light"] .pwa-update-toast {
    background: rgba(246, 243, 235, 0.96);
    border-color: rgba(166, 122, 33, 0.45);
    box-shadow: 0 14px 36px rgba(40, 55, 47, 0.18), 0 0 20px rgba(212, 165, 57, 0.15);
}

.pwa-update-toast-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 15% 50%, rgba(212, 165, 57, 0.12), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.pwa-update-toast-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 165, 57, 0.12);
    border: 1px solid rgba(212, 165, 57, 0.3);
    color: var(--gold-bright, #d4a539);
    flex-shrink: 0;
}

.pwa-update-toast-icon svg {
    width: 24px;
    height: 24px;
}

.pwa-update-toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.pwa-update-toast-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-bright, #f0c868);
    letter-spacing: 0.03em;
    line-height: 1.25;
}

[data-theme="light"] .pwa-update-toast-title {
    color: var(--gold-bright, #91681a);
}

.pwa-update-toast-desc {
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 0.76rem;
    color: var(--text-muted, #a9afa7);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .pwa-update-toast-desc {
    color: var(--text-body, #384840);
}

.pwa-update-toast-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-btn-update {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--gold-warm, #d4a539), var(--gold-bright, #f0c868));
    color: #0d0c0a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.45rem 0.95rem;
    font-family: var(--font-accent, system-ui, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 165, 57, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    min-height: 36px;
}

.pwa-btn-update:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 18px rgba(212, 165, 57, 0.5);
    background: linear-gradient(135deg, #e5c979, #f7d885);
}

.pwa-btn-update:active {
    transform: translateY(0) scale(0.98);
}

.pwa-btn-update.is-updating {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.pwa-btn-update-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(212, 165, 57, 0.2);
    color: var(--text-muted, #a9afa7);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pwa-btn-update-dismiss:hover {
    background: rgba(212, 165, 57, 0.12);
    border-color: rgba(212, 165, 57, 0.45);
    color: var(--gold-bright, #f0c868);
    transform: scale(1.05);
}

.pwa-spin {
    animation: pwaSpin 0.9s linear infinite;
}

@keyframes pwaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .pwa-update-toast {
        top: auto;
        bottom: 1rem;
        width: calc(100vw - 1.5rem);
        padding: 0.75rem 0.9rem;
        gap: 0.65rem;
    }

    .pwa-update-toast-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .pwa-update-toast-icon svg {
        width: 20px;
        height: 20px;
    }

    .pwa-update-toast-title {
        font-size: 0.82rem;
    }

    .pwa-update-toast-desc {
        font-size: 0.72rem;
    }

    .pwa-btn-update {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        min-height: 34px;
    }
}

/* Legacy Update Bar Compatibility */
.pwa-update-bar {
    display: none !important;
}

/* PWA Toasts */
.pwa-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 9998;
    pointer-events: none;
}

.pwa-toast {
    background: rgba(18, 15, 12, 0.95);
    color: #f0eae1;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 165, 57, 0.3);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease-out;
    pointer-events: auto;
    max-width: 360px;
}

.pwa-toast-offline {
    border-color: rgba(231, 156, 131, 0.4);
    color: #f7dcd5;
}

.pwa-toast-online {
    border-color: rgba(145, 184, 178, 0.5);
    color: #e2f0ee;
}

.pwa-toast-success {
    border-color: rgba(212, 165, 57, 0.6);
    color: #f0c868;
}

.pwa-toast.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Standalone app styling adjustments */
html.pwa-standalone body {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

html.pwa-standalone input,
html.pwa-standalone textarea,
html.pwa-standalone [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

/* PWA Navigation Pill Button */
.pwa-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(212, 165, 57, 0.12);
    border: 1px solid rgba(212, 165, 57, 0.35);
    color: var(--gold-bright, #f0c868);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
    font-family: inherit;
}

.pwa-nav-btn:hover {
    background: rgba(212, 165, 57, 0.25);
    border-color: var(--gold, #d4a539);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 57, 0.2);
}

[data-theme="light"] .pwa-nav-btn {
    background: rgba(166, 122, 33, 0.1);
    border-color: rgba(166, 122, 33, 0.3);
    color: #6d4f10;
}

[data-theme="light"] .pwa-nav-btn:hover {
    background: rgba(166, 122, 33, 0.18);
    color: #4a3406;
}

/* PWA Installation Guide Modal */
.pwa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 3, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pwa-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.pwa-modal-card {
    position: relative;
    background: #100e0b;
    border: 1px solid rgba(212, 165, 57, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 165, 57, 0.1);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme="light"] .pwa-modal-card {
    background: #ffffff;
    border-color: rgba(166, 122, 33, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(212, 165, 57, 0.08);
}

.pwa-modal-backdrop.active .pwa-modal-card {
    transform: translateY(0) scale(1);
}

.pwa-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted, #a89f91);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pwa-modal-close:hover {
    color: var(--gold-bright, #f0c868);
}

.pwa-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.pwa-modal-icon img {
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    display: block;
}

.pwa-modal-titles .pwa-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-bright, #f0c868);
    background: rgba(212, 165, 57, 0.12);
    border: 1px solid rgba(212, 165, 57, 0.25);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
}

.pwa-modal-titles h3 {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.35rem;
    color: var(--gold-bright, #f0c868);
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.02em;
}

[data-theme="light"] .pwa-modal-titles h3 {
    color: #4a3406;
}

.pwa-modal-titles p {
    font-size: 0.85rem;
    color: var(--text-muted, #a89f91);
    margin: 0;
    line-height: 1.45;
}

.pwa-platform-guide {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(212, 165, 57, 0.2);
    border-radius: 14px;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .pwa-platform-guide {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(166, 122, 33, 0.2);
}

.pwa-step-box {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.pwa-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a539 0%, #a67c21 100%);
    color: #080706;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pwa-step-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
}

.pwa-step-info strong {
    color: var(--text, #f0eae1);
    font-weight: 600;
}

[data-theme="light"] .pwa-step-info strong {
    color: #1a1612;
}

.pwa-step-info span {
    color: var(--text-muted, #a89f91);
    line-height: 1.4;
}

.pwa-step-info svg {
    display: inline-block;
    vertical-align: middle;
    color: var(--gold-bright, #f0c868);
    margin: 0 2px;
}

.pwa-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.pwa-btn-done {
    background: linear-gradient(135deg, #d4a539 0%, #a67c21 100%);
    color: #080706;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-btn-done:hover {
    background: linear-gradient(135deg, #f0c868 0%, #d4a539 100%);
    transform: translateY(-1px);
}



/* Meditation Habit & Reminder UI Refinement */
.meditation-habit-block {
    position: relative;
}

.med-habit-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.1rem 0 1.25rem 0;
}

@media (max-width: 640px) {
    .med-habit-dashboard {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
        margin: 0.9rem 0 1rem 0;
    }
}

/* Mi práctica de hoy */
body.newendo-terrain .daily-practice {
    position: relative;
    z-index: 1;
    margin: 1.25rem auto 0;
    padding: 1.25rem 1.35rem;
    max-width: 54rem;
    border: 1px solid rgba(145, 184, 178, 0.3);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(145, 184, 178, 0.11), rgba(212, 165, 57, 0.06));
    box-shadow: 0 12px 30px rgba(3, 10, 7, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.newendo-terrain .daily-practice.has-selection {
    border-color: rgba(212, 165, 57, 0.45);
}

.daily-practice__header,
.daily-practice__meta,
.daily-practice__actions,
.daily-practice__eyebrow,
.daily-practice__time {
    display: flex;
    align-items: center;
}

.daily-practice__header {
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid rgba(212, 165, 57, 0.16);
}

.daily-practice__eyebrow {
    gap: 0.4rem;
    color: var(--gold-bright, #d3b06a);
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.daily-practice__eyebrow i {
    color: var(--terrain-water, #91b8b2);
}

.daily-practice h3,
.daily-practice__title {
    color: var(--text-light, #f1eee6);
    font-family: var(--font-heading, Georgia, serif);
}

.daily-practice h3 {
    margin: 0.22rem 0 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.15;
}

.daily-practice__status {
    flex: 0 0 auto;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(145, 184, 178, 0.3);
    border-radius: 999px;
    color: var(--terrain-water, #91b8b2);
    background: rgba(145, 184, 178, 0.08);
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.daily-practice__meta {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.42rem;
}

.daily-practice__time {
    gap: 0.28rem;
    color: var(--gold-bright, #d3b06a);
    font-size: 0.76rem;
    font-weight: 700;
}

.daily-practice__category {
    color: var(--terrain-water, #91b8b2);
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.daily-practice__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.3;
}

.daily-practice__desc {
    max-width: 66ch;
    margin: 0.35rem 0 0;
    color: var(--text-muted, #9ca89f);
    font-size: 0.88rem;
    line-height: 1.55;
}

.daily-practice__actions {
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.daily-practice__btn,
.daily-practice__change {
    min-height: 2.55rem;
    border-radius: 0.6rem;
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.daily-practice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--gold-bright, #d3b06a);
    color: #16150f;
    background: linear-gradient(135deg, #e1c078, var(--gold-bright, #d3b06a));
    box-shadow: 0 5px 16px rgba(212, 165, 57, 0.18);
}

.daily-practice__change {
    padding: 0.65rem 0.2rem;
    border: 0;
    color: var(--text-muted, #9ca89f);
    background: transparent;
}

.daily-practice__btn:hover,
.daily-practice__btn:focus-visible,
.daily-practice__change:hover,
.daily-practice__change:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.daily-practice__btn:hover,
.daily-practice__btn:focus-visible {
    box-shadow: 0 8px 20px rgba(212, 165, 57, 0.3);
}

.daily-practice__change:hover,
.daily-practice__change:focus-visible {
    color: var(--text-light, #f1eee6);
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

[data-theme='light'] body.newendo-terrain .daily-practice {
    background: linear-gradient(135deg, rgba(57, 125, 119, 0.09), rgba(184, 134, 11, 0.08));
    border-color: rgba(57, 125, 119, 0.28);
    box-shadow: 0 12px 28px rgba(38, 52, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

[data-theme='light'] .daily-practice h3,
[data-theme='light'] .daily-practice__title {
    color: #17221e;
}

[data-theme='light'] .daily-practice__desc,
[data-theme='light'] .daily-practice__change {
    color: #59655e;
}

[data-theme='light'] .daily-practice__change:hover,
[data-theme='light'] .daily-practice__change:focus-visible {
    color: #17221e;
}

@media (max-width: 600px) {
    body.newendo-terrain .daily-practice {
        padding: 1rem;
    }

    .daily-practice__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .daily-practice__actions,
    .daily-practice__btn {
        width: 100%;
    }

    .daily-practice__change {
        width: auto;
        align-self: center;
    }
}

.med-habit-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.85rem 1.15rem;
    background: rgba(212, 165, 57, 0.05);
    border: 1px solid rgba(212, 165, 57, 0.18);
    border-radius: 14px;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .med-habit-stat {
        padding: 0.55rem 0.5rem;
        border-radius: 10px;
        text-align: center;
        align-items: center;
    }
}

.med-habit-stat:hover {
    border-color: rgba(212, 165, 57, 0.4);
    background: rgba(212, 165, 57, 0.08);
    transform: translateY(-2px);
}

[data-theme="light"] .med-habit-stat {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(166, 122, 33, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .med-habit-stat:hover {
    background: #fff;
    border-color: rgba(166, 122, 33, 0.45);
    box-shadow: 0 4px 12px rgba(166, 122, 33, 0.1);
}

.med-habit-stat__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.med-habit-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tool-text-muted);
    font-weight: 600;
}

@media (max-width: 640px) {
    .med-habit-stat__label {
        font-size: 0.62rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }
}

.med-habit-stat__value {
    font-size: 1.2rem;
    font-family: var(--font-heading, 'Cinzel', serif);
    color: var(--gold-bright);
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .med-habit-stat__value {
        font-size: 0.98rem;
    }
}

.med-habit-stat__value small {
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 400;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .med-habit-stat__value small {
        font-size: 0.68rem;
    }
}

[data-theme="light"] .med-habit-stat__value {
    color: #4a3406;
}

.meditation-reminder-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.15rem;
    background: linear-gradient(145deg, rgba(14, 12, 10, 0.6) 0%, rgba(20, 18, 15, 0.8) 100%);
    border: 1px solid rgba(212, 165, 57, 0.2);
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.02), 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .meditation-reminder-row {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 242, 235, 0.9) 100%);
    border-color: rgba(166, 122, 33, 0.25);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.05);
}

.med-reminder-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    width: 100%;
}

.med-reminder-time .med-custom-label {
    font-size: 0.85rem;
    color: var(--tool-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.med-reminder-time .med-custom-label::before {
    content: '\f017'; /* fa-clock */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: var(--gold-bright);
}

[data-theme="light"] .med-reminder-time .med-custom-label::before {
    color: #a67a21;
}

.med-reminder-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.med-reminder-time input[type="time"] {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 165, 57, 0.4);
    color: var(--gold-bright);
    padding: 0.65rem 1.15rem 0.65rem 2.85rem;
    border-radius: 14px;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    min-width: 180px;
    width: 195px;
    max-width: 100%;
    text-align: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.med-reminder-input-wrapper::before {
    content: '\f0f3'; /* fa-bell */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    color: var(--gold-bright);
    opacity: 0.8;
    pointer-events: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .med-reminder-time input[type="time"] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(166, 122, 33, 0.45);
    color: #4a3406;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .med-reminder-input-wrapper::before {
    color: #a67a21;
}

.med-reminder-time input[type="time"]:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 4px rgba(212, 165, 57, 0.2);
    background: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .med-reminder-time input[type="time"]:focus {
    background: #fff;
    border-color: #a67a21;
    box-shadow: 0 0 0 4px rgba(166, 122, 33, 0.18);
}

.med-reminder-time input[type="time"]:focus + .med-reminder-input-wrapper::before {
    opacity: 1;
}

.med-reminder-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    width: 100%;
}

.btn-set-reminder-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.4rem;
    background: linear-gradient(135deg, rgba(212, 165, 57, 0.15) 0%, rgba(212, 165, 57, 0.04) 100%);
    border: 1px solid var(--gold-bright);
    color: var(--gold-bright);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    flex: 0 0 auto;
}

.btn-set-reminder-styled.is-active {
    background: var(--gold-bright);
    color: #080706;
    box-shadow: 0 4px 14px rgba(212, 165, 57, 0.35);
}

[data-theme="light"] .btn-set-reminder-styled {
    background: linear-gradient(135deg, rgba(166, 122, 33, 0.12) 0%, rgba(166, 122, 33, 0.04) 100%);
    border-color: #a67a21;
    color: #4a3406;
}

[data-theme="light"] .btn-set-reminder-styled.is-active {
    background: #a67a21;
    color: #fff;
    box-shadow: 0 4px 14px rgba(166, 122, 33, 0.35);
}

.btn-set-reminder-styled:hover {
    background: var(--gold-bright);
    color: #080706;
    box-shadow: 0 4px 15px rgba(212, 165, 57, 0.3);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-set-reminder-styled:hover {
    background: #a67a21;
    color: #fff;
    box-shadow: 0 4px 15px rgba(166, 122, 33, 0.3);
}

.btn-set-reminder-styled:active {
    transform: translateY(1px);
}

.btn-secondary-reminder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.05rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 165, 57, 0.25);
    color: var(--text-light, #e8e1d5);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

[data-theme="light"] .btn-secondary-reminder {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(166, 122, 33, 0.25);
    color: #3b2c0a;
}

.btn-secondary-reminder:hover {
    background: rgba(212, 165, 57, 0.15);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary-reminder:hover {
    background: rgba(166, 122, 33, 0.1);
    border-color: #a67a21;
    color: #a67a21;
}

/* Active Reminder Banner */
.med-reminder-active-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding: 0.85rem 1.2rem;
    background: rgba(212, 165, 57, 0.1);
    border: 1px solid rgba(212, 165, 57, 0.35);
    border-radius: 12px;
    text-align: center;
    animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .med-reminder-active-banner {
    background: rgba(166, 122, 33, 0.08);
    border-color: rgba(166, 122, 33, 0.3);
}

.med-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--gold-bright);
    font-weight: 500;
    text-align: center;
}

[data-theme="light"] .med-active-badge {
    color: #4a3406;
}

.med-active-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2s infinite ease-in-out;
}

.btn-cancel-reminder-link {
    background: transparent;
    border: none;
    color: var(--tool-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-cancel-reminder-link:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.med-reminder-status {
    margin-top: 0.85rem;
    animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(212, 165, 57, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold-bright);
    font-size: 0.86rem;
    color: var(--gold-bright);
    text-align: center;
}

[data-theme="light"] .med-reminder-status {
    background: rgba(166, 122, 33, 0.08);
    border-left-color: #a67a21;
    color: #4a3406 !important; /* Override inline style */
}

/* In-App Daily Alert Toast */
.med-inapp-alert-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    max-width: 380px;
    width: calc(100vw - 2.5rem);
    animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.med-inapp-toast-inner {
    background: linear-gradient(135deg, rgba(20, 17, 14, 0.96) 0%, rgba(32, 26, 20, 0.98) 100%);
    border: 1px solid var(--gold-bright);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 165, 57, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .med-inapp-toast-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 236, 0.98) 100%);
    border-color: #a67a21;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 20px rgba(166, 122, 33, 0.15);
}

.med-inapp-toast-icon {
    width: 42px;
    height: 42px;
    background: rgba(212, 165, 57, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: pulse 1.8s infinite ease-in-out;
}

[data-theme="light"] .med-inapp-toast-icon {
    background: rgba(166, 122, 33, 0.12);
    color: #a67a21;
}

.med-inapp-toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.med-inapp-toast-body strong {
    font-size: 0.92rem;
    color: var(--gold-bright);
    font-family: var(--font-heading, 'Cinzel', serif);
    line-height: 1.3;
}

[data-theme="light"] .med-inapp-toast-body strong {
    color: #4a3406;
}

.med-inapp-toast-body p {
    font-size: 0.82rem;
    color: var(--tool-text-muted);
    margin: 0;
    line-height: 1.4;
}

.med-inapp-toast-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.toast-btn-start {
    background: var(--gold-bright);
    color: #0c0a08;
    border: none;
    border-radius: 20px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toast-btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 57, 0.35);
}

[data-theme="light"] .toast-btn-start {
    background: #a67a21;
    color: #fff;
}

.toast-btn-dismiss {
    background: transparent;
    border: none;
    color: var(--tool-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.toast-btn-dismiss:hover {
    color: var(--text-light, #e8e1d5);
}

/* ══════════════════════════════════════════════════════════════════════════════
   WELCOME ONBOARDING MODAL
   ══════════════════════════════════════════════════════════════════════════════ */
body.welcome-modal-open {
    overflow: hidden;
}

.welcome-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 3, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.welcome-modal-card {
    position: relative;
    background: linear-gradient(150deg, #13100c 0%, #0a0907 100%);
    border: 1px solid rgba(212, 165, 57, 0.28);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 165, 57, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .welcome-modal-card {
    background: linear-gradient(150deg, #ffffff 0%, #faf8f5 100%);
    border-color: rgba(166, 122, 33, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(212, 165, 57, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.welcome-modal-backdrop.is-active .welcome-modal-card {
    transform: translateY(0) scale(1);
}

/* Close Button */
.welcome-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 165, 57, 0.15);
    color: var(--text-muted, #a89f91);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

[data-theme="light"] .welcome-modal-close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(166, 122, 33, 0.2);
    color: #635747;
}

.welcome-modal-close:hover {
    color: var(--gold-bright, #f0c868);
    border-color: var(--gold-bright, #f0c868);
    background: rgba(212, 165, 57, 0.12);
    transform: rotate(90deg);
}

[data-theme="light"] .welcome-modal-close:hover {
    color: #4a3406;
    border-color: #a67a21;
    background: rgba(166, 122, 33, 0.12);
}

/* Header */
.welcome-modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.welcome-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-bright, #f0c868);
    background: rgba(212, 165, 57, 0.1);
    border: 1px solid rgba(212, 165, 57, 0.25);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

[data-theme="light"] .welcome-modal-badge {
    color: #78530b;
    background: rgba(166, 122, 33, 0.1);
    border-color: rgba(166, 122, 33, 0.22);
}

.welcome-modal-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    font-weight: 700;
    color: var(--gold-bright, #f0c868);
    letter-spacing: 0.02em;
    margin: 0 0 0.6rem 0;
}

[data-theme="light"] .welcome-modal-title {
    color: #3b2803;
}

.welcome-modal-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted, #bfb7aa);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 480px;
}

[data-theme="light"] .welcome-modal-desc {
    color: #594d3f;
}

/* Step Cards */
.welcome-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.85rem;
}

.welcome-step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 165, 57, 0.12);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] .welcome-step-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(166, 122, 33, 0.15);
}

.welcome-step-card:hover {
    background: rgba(212, 165, 57, 0.05);
    border-color: rgba(212, 165, 57, 0.25);
    transform: translateX(3px);
}

[data-theme="light"] .welcome-step-card:hover {
    background: rgba(166, 122, 33, 0.04);
    border-color: rgba(166, 122, 33, 0.3);
}

.welcome-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 165, 57, 0.2) 0%, rgba(212, 165, 57, 0.05) 100%);
    border: 1px solid rgba(212, 165, 57, 0.3);
    color: var(--gold-bright, #f0c868);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

[data-theme="light"] .welcome-step-icon {
    background: linear-gradient(135deg, rgba(166, 122, 33, 0.18) 0%, rgba(166, 122, 33, 0.06) 100%);
    border-color: rgba(166, 122, 33, 0.3);
    color: #78530b;
}

.welcome-step-body {
    flex: 1;
}

.welcome-step-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text, #f5efe6);
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.02em;
}

[data-theme="light"] .welcome-step-title {
    color: #2b2114;
}

.welcome-step-text {
    font-family: var(--font-body);
    font-size: 0.87rem;
    color: var(--text-muted, #a89f91);
    line-height: 1.5;
    margin: 0;
}

[data-theme="light"] .welcome-step-text {
    color: #5c5040;
}

.welcome-step-text strong {
    color: var(--text, #f0eae1);
    font-weight: 600;
}

[data-theme="light"] .welcome-step-text strong {
    color: #1a1612;
}

/* Actions */
.welcome-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.welcome-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #d4a539 0%, #a67c21 100%);
    color: #080706;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(212, 165, 57, 0.35);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1 1 200px;
    text-align: center;
}

.welcome-btn-primary:hover {
    background: linear-gradient(135deg, #f0c868 0%, #d4a539 100%);
    box-shadow: 0 6px 24px rgba(212, 165, 57, 0.5);
    transform: translateY(-2px);
    color: #000;
}

.welcome-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 165, 57, 0.4);
    color: var(--gold-bright, #f0c868);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1 1 180px;
    text-align: center;
}

[data-theme="light"] .welcome-btn-secondary {
    background: rgba(166, 122, 33, 0.04);
    border-color: rgba(166, 122, 33, 0.4);
    color: #634306;
}

.welcome-btn-secondary:hover {
    background: rgba(212, 165, 57, 0.12);
    border-color: var(--gold-bright, #f0c868);
    color: #fff;
    transform: translateY(-2px);
}

[data-theme="light"] .welcome-btn-secondary:hover {
    background: rgba(166, 122, 33, 0.12);
    border-color: #78530b;
    color: #1a1612;
}

/* Footer Note */
.welcome-modal-footer-note {
    text-align: center;
}

.welcome-note-text {
    font-size: 0.78rem;
    color: var(--text-muted, #8e8679);
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

[data-theme="light"] .welcome-note-text {
    color: #7a6e60;
}

@media (max-width: 600px) {
    .welcome-modal-card {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }
    
    .welcome-step-card {
        padding: 0.85rem 1rem;
        gap: 0.8rem;
    }

    .welcome-step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }
    
    .welcome-modal-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .welcome-btn-primary,
    .welcome-btn-secondary {
        width: 100%;
        flex: 1 1 auto;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRACTICE CELEBRATION & RECOGNITION POPUP
   ══════════════════════════════════════════════════════════════════════════════ */
.celebration-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10005;
}

.practice-celebration-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 2, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 10006;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-celebration-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.practice-celebration-card {
    position: relative;
    background: linear-gradient(160deg, #15120c 0%, #0d0b08 100%);
    border: 1px solid rgba(212, 165, 57, 0.38);
    border-radius: 24px;
    padding: 2.25rem 2rem 1.85rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.85),
        0 0 45px rgba(212, 165, 57, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(30px) scale(0.92);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

[data-theme="light"] .practice-celebration-card {
    background: linear-gradient(160deg, #ffffff 0%, #faf6ee 100%);
    border-color: rgba(166, 122, 33, 0.35);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 35px rgba(212, 165, 57, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.practice-celebration-backdrop.is-active .practice-celebration-card {
    transform: translateY(0) scale(1);
}

/* Close Button */
.celebration-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 165, 57, 0.15);
    color: var(--text-muted, #a89f91);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .celebration-close-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(166, 122, 33, 0.2);
    color: #635747;
}

.celebration-close-btn:hover {
    color: var(--gold-bright, #f0c868);
    border-color: var(--gold-bright, #f0c868);
    background: rgba(212, 165, 57, 0.15);
    transform: scale(1.08);
}

/* Icon & Glow */
.celebration-badge-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    position: relative;
}

.celebration-badge-glow::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 57, 0.45) 0%, rgba(212, 165, 57, 0) 70%);
    animation: celebrationPulse 2.5s ease-in-out infinite alternate;
}

.practice-celebration-backdrop.is-active .celebration-badge-glow::before {
    animation: celebrationGlowBurst 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, celebrationPulse 2.5s 0.8s ease-in-out infinite alternate;
}

.celebration-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 165, 57, 0.3) 0%, rgba(212, 165, 57, 0.08) 100%);
    border: 2px solid var(--gold-bright, #f0c868);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright, #f0c868);
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(212, 165, 57, 0.4);
    opacity: 0;
    transform: scale(0.4);
}

.practice-celebration-backdrop.is-active .celebration-icon-ring {
    animation: celebrationIconPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s forwards;
}

[data-theme="light"] .celebration-icon-ring {
    background: linear-gradient(135deg, rgba(166, 122, 33, 0.25) 0%, rgba(166, 122, 33, 0.08) 100%);
    border-color: #a67a21;
    color: #78530b;
    box-shadow: 0 0 20px rgba(166, 122, 33, 0.25);
}

@keyframes celebrationIconPop {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-20deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.22) rotate(6deg);
    }
    82% {
        transform: scale(0.95) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes celebrationGlowBurst {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.5);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes celebrationTextEnter {
    0% {
        opacity: 0;
        transform: scale(0.86) translateY(14px);
    }
    70% {
        opacity: 1;
        transform: scale(1.03) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes celebrationPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.9; }
}

@keyframes celebrationFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.celebration-phase-tag {
    display: inline-block;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright, #f0c868);
    margin-bottom: 0.35rem;
    opacity: 0;
    transform: scale(0.9) translateY(8px);
}

.practice-celebration-backdrop.is-active .celebration-phase-tag {
    animation: celebrationTextEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

[data-theme="light"] .celebration-phase-tag {
    color: #78530b;
}

.celebration-title {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: var(--text, #f7f1e6);
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: scale(0.88) translateY(12px);
}

.practice-celebration-backdrop.is-active .celebration-title {
    animation: celebrationTextEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

[data-theme="light"] .celebration-title {
    color: #261e12;
}

.celebration-practice-name {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-bright, #f0c868);
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: scale(0.88) translateY(12px);
}

.practice-celebration-backdrop.is-active .celebration-practice-name {
    animation: celebrationTextEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

[data-theme="light"] .celebration-practice-name {
    color: #8c6007;
}

.celebration-message {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-muted, #bfb7aa);
    line-height: 1.55;
    margin: 0 auto 1.35rem;
    max-width: 400px;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
}

.practice-celebration-backdrop.is-active .celebration-message {
    animation: celebrationTextEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

[data-theme="light"] .celebration-message {
    color: #574b3d;
}

/* Streak & Habit Stats Pill */
.celebration-stats-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 165, 57, 0.2);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: scale(0.92) translateY(10px);
}

.practice-celebration-backdrop.is-active .celebration-stats-pill {
    animation: celebrationTextEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

[data-theme="light"] .celebration-stats-pill {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(166, 122, 33, 0.2);
}

.celebration-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text, #ede5d8);
}

[data-theme="light"] .celebration-stat-item {
    color: #3b3022;
}

.celebration-stat-item i {
    color: var(--gold-bright, #f0c868);
    font-size: 0.95rem;
}

[data-theme="light"] .celebration-stat-item i {
    color: #a67a21;
}

.celebration-stat-item strong {
    font-weight: 500;
    color: var(--text-muted, #a89f91);
}

[data-theme="light"] .celebration-stat-item strong {
    color: #6b5e4e;
}

.celebration-stat-item em {
    font-style: normal;
    font-weight: 700;
    color: var(--gold-bright, #f0c868);
}

[data-theme="light"] .celebration-stat-item em {
    color: #78530b;
}

.celebration-stat-divider {
    width: 1px;
    height: 22px;
    background: rgba(212, 165, 57, 0.2);
}

[data-theme="light"] .celebration-stat-divider {
    background: rgba(166, 122, 33, 0.2);
}

/* Celebration Hydration Reminder (Post-Breathing Care) */
.celebration-hydration-reminder {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(56, 128, 185, 0.12);
    border: 1px solid rgba(100, 181, 246, 0.28);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    margin: 0 auto 1.35rem;
    text-align: left;
    max-width: 440px;
    width: 100%;
    opacity: 0;
    transform: scale(0.94) translateY(8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-celebration-backdrop.is-active .celebration-hydration-reminder {
    animation: celebrationTextEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.44s forwards;
}

[data-theme="light"] .celebration-hydration-reminder {
    background: rgba(225, 238, 252, 0.72);
    border-color: rgba(60, 125, 185, 0.32);
}

.celebration-hydration-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(100, 181, 246, 0.18);
    border: 1px solid rgba(100, 181, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90caf9;
    font-size: 1.05rem;
}

[data-theme="light"] .celebration-hydration-icon-wrap {
    background: rgba(25, 118, 210, 0.15);
    border-color: rgba(25, 118, 210, 0.35);
    color: #1565c0;
}

.celebration-droplet-icon {
    animation: celebrationDropletBob 2.8s ease-in-out infinite;
}

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

.celebration-hydration-body {
    flex: 1;
    min-width: 0;
}

.celebration-hydration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #90caf9;
    margin-bottom: 0.2rem;
}

[data-theme="light"] .celebration-hydration-badge {
    color: #1565c0;
}

.celebration-hydration-text {
    font-family: var(--font-body);
    font-size: 0.84rem;
    line-height: 1.45;
    color: #d6e2f0;
    margin: 0;
}

[data-theme="light"] .celebration-hydration-text {
    color: #243b53;
}

.celebration-hydration-action-btn {
    align-self: center;
    flex-shrink: 0;
    min-height: 38px;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(100, 181, 246, 0.16);
    border: 1px solid rgba(100, 181, 246, 0.35);
    color: #90caf9;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.22s ease;
}

[data-theme="light"] .celebration-hydration-action-btn {
    background: rgba(25, 118, 210, 0.12);
    border-color: rgba(25, 118, 210, 0.35);
    color: #1565c0;
}

.celebration-hydration-action-btn:hover {
    background: rgba(100, 181, 246, 0.28);
    color: #ffffff;
    border-color: rgba(100, 181, 246, 0.6);
    transform: translateY(-1px);
}

[data-theme="light"] .celebration-hydration-action-btn:hover {
    background: rgba(25, 118, 210, 0.22);
    color: #0d47a1;
}

.celebration-hydration-action-btn.is-checked {
    background: rgba(46, 125, 50, 0.25);
    border-color: rgba(129, 199, 132, 0.6);
    color: #a5d6a7;
    pointer-events: none;
}

[data-theme="light"] .celebration-hydration-action-btn.is-checked {
    background: rgba(46, 125, 50, 0.18);
    border-color: rgba(46, 125, 50, 0.45);
    color: #1b5e20;
}

.celebration-hydration-reminder.is-confirmed {
    border-color: rgba(129, 199, 132, 0.4);
    background: rgba(46, 125, 50, 0.14);
}

@media (max-width: 480px) {
    .celebration-hydration-reminder {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.85rem;
    }
    .celebration-hydration-action-btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }
}

/* Celebration Actions */
.celebration-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    opacity: 0;
    transform: scale(0.92) translateY(10px);
}

.practice-celebration-backdrop.is-active .celebration-actions {
    animation: celebrationTextEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.celebration-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #d4a539 0%, #a67c21 100%);
    color: #080706;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(212, 165, 57, 0.35);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-btn-primary:hover {
    background: linear-gradient(135deg, #f0c868 0%, #d4a539 100%);
    box-shadow: 0 6px 24px rgba(212, 165, 57, 0.5);
    transform: translateY(-2px);
    color: #000;
}

/* Auto-dismiss progress bar */
.celebration-auto-dismiss-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.celebration-auto-dismiss-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #d4a539, #f0c868);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 6s linear;
}

[data-theme="light"] .celebration-auto-dismiss-fill {
    background: linear-gradient(90deg, #8c6007, #d4a539);
}

.practice-celebration-card:hover .celebration-auto-dismiss-fill {
    transition-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .celebration-icon-ring,
    .celebration-phase-tag,
    .celebration-title,
    .celebration-practice-name,
    .celebration-message,
    .celebration-stats-pill,
    .celebration-actions {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .celebration-badge-glow::before {
        animation: none !important;
    }
}

/* Universal scroll-margin-top for smooth mobile and desktop navigation */
#sesiones,
#herramientas,
#mapa-fascial,
#ixofillmogen,
#calidad-aire,
section[id],
div[id].tools-nav-wrapper {
    scroll-margin-top: calc(75px + env(safe-area-inset-top, 0px)) !important;
}

/* ═══════════════════════════════════════════════════════════
   MEJORA UX/UI 5: BARRA DE NAVEGACIÓN INFERIOR MÓVIL (THUMB ZONE)
   ═══════════════════════════════════════════════════════════ */

.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1080 !important;
        pointer-events: auto !important;
        background: rgba(14, 18, 16, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(212, 165, 57, 0.25);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
        padding-top: 0.35rem;
        padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
    }

    [data-theme="light"] .mobile-bottom-bar {
        background: rgba(246, 243, 235, 0.94);
        border-top-color: rgba(184, 134, 11, 0.28);
        box-shadow: 0 -4px 20px rgba(70, 50, 20, 0.12);
    }

    .mobile-bottom-bar__inner {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 560px;
        margin: 0 auto;
        padding: 0 0.15rem;
        align-items: center;
        gap: 0.1rem;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-height: 48px;
        padding: 0.25rem 0.05rem;
        color: var(--text-muted, #9ea69e);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        cursor: pointer;
    }

    [data-theme="light"] .mobile-nav-item {
        color: #636b63;
    }

    .mobile-nav-icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 1.05rem;
        transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    }

    .mobile-nav-label {
        font-family: var(--font-heading, "Cinzel", serif);
        font-size: clamp(0.52rem, 1.85vw, 0.64rem);
        font-weight: 600;
        letter-spacing: 0.01em;
        text-transform: none;
        white-space: nowrap;
        transition: color 0.25s ease, font-weight 0.25s ease;
        line-height: 1.1;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus-visible {
        color: var(--gold-bright, #d4a539);
        outline: none;
    }

    .mobile-nav-item:active .mobile-nav-icon-wrap {
        transform: scale(0.88);
    }

    /* Active / Current State */
    .mobile-nav-item.is-current,
    .mobile-nav-item.is-active,
    .mobile-nav-item[aria-current="page"],
    .mobile-nav-item[aria-current="location"] {
        color: var(--gold-bright, #f0c868);
    }

    [data-theme="light"] .mobile-nav-item.is-current,
    [data-theme="light"] .mobile-nav-item.is-active,
    [data-theme="light"] .mobile-nav-item[aria-current="page"],
    [data-theme="light"] .mobile-nav-item[aria-current="location"] {
        color: #8c5d08;
    }

    .mobile-nav-item.is-current .mobile-nav-icon-wrap,
    .mobile-nav-item.is-active .mobile-nav-icon-wrap,
    .mobile-nav-item[aria-current="page"] .mobile-nav-icon-wrap,
    .mobile-nav-item[aria-current="location"] .mobile-nav-icon-wrap {
        background: rgba(212, 165, 57, 0.16);
        color: var(--gold-bright, #f0c868);
        border: 1px solid rgba(212, 165, 57, 0.35);
        box-shadow: 0 0 14px rgba(212, 165, 57, 0.3);
        transform: translateY(-2px);
    }

    [data-theme="light"] .mobile-nav-item.is-current .mobile-nav-icon-wrap,
    [data-theme="light"] .mobile-nav-item.is-active .mobile-nav-icon-wrap,
    [data-theme="light"] .mobile-nav-item[aria-current="page"] .mobile-nav-icon-wrap,
    [data-theme="light"] .mobile-nav-item[aria-current="location"] .mobile-nav-icon-wrap {
        background: rgba(184, 134, 11, 0.12);
        color: #8c5d08;
        border-color: rgba(184, 134, 11, 0.38);
        box-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
    }

    .mobile-nav-item.is-current .mobile-nav-label,
    .mobile-nav-item.is-active .mobile-nav-label,
    .mobile-nav-item[aria-current="page"] .mobile-nav-label,
    .mobile-nav-item[aria-current="location"] .mobile-nav-label {
        font-weight: 700;
    }

    /* Active Indicator Dot */
    .mobile-nav-item.is-current::after,
    .mobile-nav-item.is-active::after,
    .mobile-nav-item[aria-current="page"]::after,
    .mobile-nav-item[aria-current="location"]::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gold-bright, #d4a539);
        box-shadow: 0 0 6px rgba(212, 165, 57, 0.8);
    }

    [data-theme="light"] .mobile-nav-item.is-current::after,
    [data-theme="light"] .mobile-nav-item.is-active::after,
    [data-theme="light"] .mobile-nav-item[aria-current="page"]::after,
    [data-theme="light"] .mobile-nav-item[aria-current="location"]::after {
        background: #8c5d08;
        box-shadow: 0 0 6px rgba(140, 93, 8, 0.5);
    }

    /* Floating elements repositioning on mobile to avoid overlap and align perfectly */
    .floating-whatsapp {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px) + 0.75rem) !important;
        right: max(1.25rem, env(safe-area-inset-right)) !important;
        width: 56px !important;
        height: 56px !important;
        z-index: 1090 !important;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
        will-change: transform, opacity;
    }

    .floating-share {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px) + 0.75rem) !important;
        left: max(1.25rem, env(safe-area-inset-left, 1.25rem)) !important;
        right: auto !important;
        width: 56px !important;
        z-index: 1090 !important;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
        will-change: transform, opacity;
    }

    .floating-share-toggle {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }

    /* Auto-hide / Auto-reveal states on mobile scroll */
    .mobile-bottom-bar.mobile-hidden-scroll,
    body.mobile-floating-hidden .mobile-bottom-bar {
        transform: translateY(calc(100% + 24px)) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.38s !important;
    }

    .floating-whatsapp.mobile-hidden-scroll,
    body.mobile-floating-hidden .floating-whatsapp {
        transform: translateY(120px) scale(0.8) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.38s !important;
    }

    .floating-share.mobile-hidden-scroll,
    body.mobile-floating-hidden .floating-share {
        transform: translateY(120px) scale(0.8) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.38s !important;
    }

    @media (max-width: 480px) {
        .floating-whatsapp {
            bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 0.65rem) !important;
            right: max(1rem, env(safe-area-inset-right)) !important;
            width: 52px !important;
            height: 52px !important;
        }

        .floating-share {
            bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 0.65rem) !important;
            left: max(1rem, env(safe-area-inset-left, 1rem)) !important;
            right: auto !important;
            width: 52px !important;
        }

        .floating-share-toggle {
            width: 52px !important;
            height: 52px !important;
            min-width: 52px !important;
            min-height: 52px !important;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-bottom-bar,
        .floating-whatsapp,
        .floating-share {
            transition: opacity 0.2s ease !important;
            transform: none !important;
        }

        .mobile-bottom-bar.mobile-hidden-scroll,
        body.mobile-floating-hidden .mobile-bottom-bar,
        .floating-whatsapp.mobile-hidden-scroll,
        body.mobile-floating-hidden .floating-whatsapp,
        .floating-share.mobile-hidden-scroll,
        body.mobile-floating-hidden .floating-share {
            transform: none !important;
            opacity: 0 !important;
        }
    }
}

/* ═══════════════════════════════════════════════════════════
   MEJORA UX/UI 1: SELECTOR DE PULSO SOMÁTICO EN EL HERO
   ═══════════════════════════════════════════════════════════ */

.hero-somatic-pulse {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1.6rem;
    border-radius: 22px;
    background: radial-gradient(130% 120% at 20% 0%, rgba(20, 48, 39, 0.85) 0%, rgba(10, 24, 20, 0.94) 100%);
    border: 1px solid rgba(145, 184, 178, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(180, 240, 230, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 720px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .hero-somatic-pulse {
    background: radial-gradient(130% 120% at 20% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(228, 241, 237, 0.92) 100%);
    border-color: rgba(43, 90, 80, 0.3);
    box-shadow: 0 14px 35px rgba(43, 90, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-somatic-pulse__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
}

.hero-somatic-pulse__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terrain-water, #91b8b2);
    width: fit-content;
}

[data-theme="light"] .hero-somatic-pulse__badge {
    color: #175446;
}

.hero-somatic-pulse__question {
    font-family: var(--font-heading, "Cinzel", serif);
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    font-weight: 600;
    color: var(--text-light, #f1eee6);
    margin: 0;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

[data-theme="light"] .hero-somatic-pulse__question {
    color: #1a2420;
}

/* Chips Grid – now a vertical stack of groups */
.hero-somatic-chips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ═══ Somatic Group (collapsible category) ═══ */
.somatic-group {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(145, 184, 178, 0.16);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.somatic-group:hover {
    border-color: rgba(145, 184, 178, 0.32);
}

[data-theme="light"] .somatic-group {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(43, 90, 80, 0.14);
}

[data-theme="light"] .somatic-group:hover {
    border-color: rgba(43, 90, 80, 0.28);
}

/* Group toggle button (header) */
.somatic-group__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 2rem 0.9rem 1.15rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-accent, 'Inter', sans-serif);
    color: var(--text-body, #cbd1c8);
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.somatic-group__toggle:hover {
    background: rgba(145, 184, 178, 0.06);
}

.somatic-group__toggle[aria-expanded="true"] {
    border-bottom: 1px solid rgba(145, 184, 178, 0.18);
    margin-bottom: 0.25rem;
}

[data-theme="light"] .somatic-group__toggle[aria-expanded="true"] {
    border-bottom-color: rgba(43, 90, 80, 0.18);
}

.somatic-group__toggle:focus-visible {
    outline: 2px solid var(--terrain-water, #91b8b2);
    outline-offset: -2px;
    border-radius: 8px;
}

[data-theme="light"] .somatic-group__toggle:hover {
    background: rgba(43, 90, 80, 0.05);
}

[data-theme="light"] .somatic-group__toggle:focus-visible {
    outline-color: #175446;
}

.somatic-group__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(145, 184, 178, 0.12);
    color: var(--terrain-water, #91b8b2);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

[data-theme="light"] .somatic-group__icon {
    background: rgba(43, 90, 80, 0.1);
    color: #175446;
}

.somatic-group__label {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.somatic-group__count {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted, rgba(203, 209, 200, 0.55));
    opacity: 0.7;
    margin-right: 0.2rem;
}

[data-theme="light"] .somatic-group__count {
    color: rgba(59, 71, 64, 0.5);
}

.somatic-group__chevron {
    font-size: 0.65rem;
    color: var(--text-muted, rgba(203, 209, 200, 0.55));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

/* Chevron rotation when collapsed */
.somatic-group__toggle[aria-expanded="false"] .somatic-group__chevron {
    transform: rotate(-90deg);
}

/* Items container */
.somatic-group__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 0.55rem;
    padding: 0.75rem 0.85rem 0.85rem;
    max-height: 800px;
    overflow: hidden;
    visibility: visible;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                visibility 0.4s;
    opacity: 1;
}

/* Collapsed state */
.somatic-group__items.is-collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    opacity: 0;
    visibility: hidden;
}

/* Active group highlight – when a chip inside is selected */
.somatic-group.has-active-chip {
    border-color: rgba(145, 184, 178, 0.45);
    box-shadow: 0 0 20px rgba(72, 153, 137, 0.15);
}

[data-theme="light"] .somatic-group.has-active-chip {
    border-color: rgba(43, 90, 80, 0.4);
    box-shadow: 0 0 15px rgba(43, 90, 80, 0.08);
}

.somatic-group.has-active-chip .somatic-group__icon {
    background: var(--terrain-water, #91b8b2);
    color: #082921;
    box-shadow: 0 0 8px rgba(72, 153, 137, 0.5);
}

[data-theme="light"] .somatic-group.has-active-chip .somatic-group__icon {
    background: #175446;
    color: #ffffff;
}

.somatic-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(145, 184, 178, 0.18);
    color: var(--text-body, #cbd1c8);
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.82rem;
    font-weight: 550;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

[data-theme="light"] .somatic-chip {
    background: rgba(0, 0, 0, 0.025);
    border-color: rgba(43, 90, 80, 0.18);
    color: #2b3b33;
}

.somatic-chip:hover {
    background: rgba(145, 184, 178, 0.12);
    border-color: rgba(145, 184, 178, 0.45);
    color: var(--text-light, #f1eee6);
    transform: translateY(-2px);
}

[data-theme="light"] .somatic-chip:hover {
    background: rgba(43, 90, 80, 0.08);
    border-color: rgba(43, 90, 80, 0.4);
    color: #0b241c;
}

.somatic-chip:active {
    transform: scale(0.97);
}

.somatic-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(145, 184, 178, 0.12);
    color: var(--terrain-water, #91b8b2);
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

[data-theme="light"] .somatic-chip__icon {
    background: rgba(43, 90, 80, 0.1);
    color: #175446;
}

.somatic-chip__text {
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

/* Selected State */
.somatic-chip.is-selected {
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.35) 0%, rgba(14, 34, 28, 0.85) 100%);
    border-color: rgba(145, 184, 178, 0.85);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(72, 153, 137, 0.35), inset 0 1px 0 rgba(180, 240, 230, 0.2);
    transform: translateY(-2px);
}

[data-theme="light"] .somatic-chip.is-selected {
    background: linear-gradient(135deg, rgba(218, 239, 233, 0.95) 0%, rgba(196, 221, 214, 0.85) 100%);
    border-color: #2b5a50;
    color: #082921;
    box-shadow: 0 4px 15px rgba(43, 90, 80, 0.18);
}

.somatic-chip.is-selected .somatic-chip__icon {
    background: var(--terrain-water, #91b8b2);
    color: #082921;
    box-shadow: 0 0 10px rgba(72, 153, 137, 0.6);
}

[data-theme="light"] .somatic-chip.is-selected .somatic-chip__icon {
    background: #175446;
    color: #ffffff;
}

/* Match Card - Adaptado dinámicamente al tamaño del texto */
.hero-somatic-match {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
    animation: somaticMatchEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes somaticMatchEnter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.somatic-match__card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.95rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.75rem 1.05rem;
    border-radius: 12px;
    background: rgba(145, 184, 178, 0.08);
    border: 1px solid rgba(145, 184, 178, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

[data-theme="light"] .somatic-match__card {
    background: rgba(43, 90, 80, 0.05);
    border-color: rgba(43, 90, 80, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.somatic-match__body {
    flex: 0 1 auto;
    min-width: 0;
}

.somatic-match__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.somatic-match__time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #91b8b2;
    background: rgba(145, 184, 178, 0.14);
    border: 1px solid rgba(145, 184, 178, 0.3);
    padding: 0.12rem 0.45rem;
    border-radius: 14px;
    line-height: 1.2;
}

[data-theme="light"] .somatic-match__time {
    color: #20534c;
    background: rgba(43, 90, 80, 0.1);
    border-color: rgba(43, 90, 80, 0.25);
}

.somatic-match__category {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--terrain-water, #91b8b2);
    line-height: 1.2;
}

[data-theme="light"] .somatic-match__category {
    color: #2b6b60;
}

.somatic-match__title {
    font-family: var(--font-heading, "Cinzel", serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light, #f1eee6);
    margin: 0 0 0.15rem 0;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

[data-theme="light"] .somatic-match__title {
    color: #17221e;
}

.somatic-match__desc {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca89f);
    line-height: 1.35;
    margin: 0;
    max-width: 52ch;
}

[data-theme="light"] .somatic-match__desc {
    color: #55625a;
}

.somatic-match__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.52rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.35) 0%, rgba(26, 68, 58, 0.85) 100%);
    color: #bbf0e8 !important;
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid rgba(145, 184, 178, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 14px rgba(145, 184, 178, 0.1);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    white-space: nowrap;
}

.somatic-match__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 24px rgba(72, 153, 137, 0.45), inset 0 0 20px rgba(145, 184, 178, 0.2);
    border-color: rgba(145, 184, 178, 0.9);
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.55) 0%, rgba(35, 88, 76, 0.95) 100%);
    color: #ffffff !important;
}

.somatic-match__btn:active {
    transform: scale(0.97);
}

@media (max-width: 600px) {
    .hero-somatic-pulse {
        padding: 1.1rem 0.95rem;
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-somatic-chips {
        gap: 0.4rem;
    }

    .somatic-group__toggle {
        padding: 0.75rem 1.6rem 0.75rem 0.9rem;
    }

    .somatic-group__toggle[aria-expanded="true"] {
        border-bottom: 1px solid rgba(212, 165, 57, 0.12);
        margin-bottom: 0.2rem;
    }

    .somatic-group__label {
        font-size: 0.82rem;
    }

    .somatic-group__items {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        padding: 0.65rem 0.65rem 0.65rem;
    }

    .somatic-chip {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        min-height: 44px;
        height: 100%;
        box-sizing: border-box;
    }

    .somatic-match__card {
        padding: 0.8rem 0.9rem;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .somatic-match__desc {
        max-width: 100%;
    }

    .somatic-match__btn {
        width: 100%;
        padding: 0.6rem 1rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   SOMATIC INLINE PREVIEW (Panel Flotante Transformable a la Altura del Botón)
   ══════════════════════════════════════════════════════════════ */
.somatic-inline-preview {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    width: calc(100% - 2.5rem);
    z-index: 35;
    pointer-events: auto;
    animation: somaticMorphExpand 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes somaticMorphExpand {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(-4px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.somatic-inline-card {
    position: relative;
    width: 100%;
    padding: 1.2rem 1.35rem 1.15rem;
    border-radius: 18px;
    background: radial-gradient(130% 120% at 20% 0%, rgba(20, 32, 27, 0.98) 0%, rgba(10, 15, 13, 0.99) 100%);
    border: 1.5px solid rgba(145, 184, 178, 0.4);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.75), 0 0 25px rgba(72, 153, 137, 0.15), inset 0 1px 0 rgba(180, 240, 230, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-light, #f1eee6);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

/* Indicador de punta/origen de transformación anclada al botón */
.somatic-inline-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: var(--chip-arrow-x, 50%);
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1.5px solid rgba(145, 184, 178, 0.45);
    border-top: 1.5px solid rgba(145, 184, 178, 0.45);
    z-index: 1;
}

[data-theme="light"] .somatic-inline-card {
    background: radial-gradient(130% 120% at 20% 0%, rgba(255, 255, 255, 0.99) 0%, rgba(246, 243, 235, 0.98) 100%);
    border-color: rgba(43, 90, 80, 0.35);
    box-shadow: 0 14px 32px rgba(43, 90, 80, 0.12), 0 0 20px rgba(145, 184, 178, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #17241e;
}

[data-theme="light"] .somatic-inline-card::before {
    border-left-color: rgba(43, 90, 80, 0.35);
    border-top-color: rgba(43, 90, 80, 0.35);
}

.somatic-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.somatic-inline-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.somatic-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(145, 184, 178, 0.16);
    color: var(--terrain-water, #91b8b2);
    font-size: 0.85rem;
}

[data-theme="light"] .somatic-inline-icon {
    background: rgba(43, 90, 80, 0.12);
    color: #20534c;
}

.somatic-inline-header-right {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.somatic-inline-category {
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--terrain-water, #91b8b2);
}

[data-theme="light"] .somatic-inline-category {
    color: #20534c;
}

.somatic-inline-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    color: #91b8b2;
    background: rgba(145, 184, 178, 0.14);
    border: 1px solid rgba(145, 184, 178, 0.3);
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
}

[data-theme="light"] .somatic-inline-time {
    color: #20534c;
    background: rgba(43, 90, 80, 0.1);
    border-color: rgba(43, 90, 80, 0.25);
}

.somatic-inline-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted, #a8a096);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: auto;
}

.somatic-inline-close:hover,
.somatic-inline-close:active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: scale(1.05);
}

[data-theme="light"] .somatic-inline-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #5a6660;
}

[data-theme="light"] .somatic-inline-close:hover,
[data-theme="light"] .somatic-inline-close:active {
    background: rgba(0, 0, 0, 0.1);
    color: #17241e;
}

.somatic-inline-title {
    font-family: var(--font-heading, "Cinzel", serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light, #f1eee6);
    margin: 0;
    line-height: 1.3;
}

[data-theme="light"] .somatic-inline-title {
    color: #17241e;
}

.somatic-inline-desc {
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 0.84rem;
    line-height: 1.48;
    color: var(--text-muted, #cbd1c8);
    margin: 0;
}

[data-theme="light"] .somatic-inline-desc {
    color: #4a5750;
}

.somatic-inline-actions {
    margin-top: 0.35rem;
    display: flex;
    width: 100%;
}

.somatic-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.35) 0%, rgba(26, 68, 58, 0.85) 100%);
    color: #bbf0e8 !important;
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid rgba(145, 184, 178, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 14px rgba(145, 184, 178, 0.1);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.somatic-inline-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 184, 178, 0.9);
    background: linear-gradient(135deg, rgba(72, 153, 137, 0.55) 0%, rgba(35, 88, 76, 0.95) 100%);
    color: #ffffff !important;
    box-shadow: 0 7px 24px rgba(72, 153, 137, 0.45), inset 0 0 20px rgba(145, 184, 178, 0.2);
}

.somatic-inline-btn:active {
    transform: scale(0.98);
}

[data-theme='light'] .somatic-inline-btn {
    background: linear-gradient(135deg, rgba(43, 90, 80, 0.1) 0%, rgba(43, 90, 80, 0.2) 100%);
    color: #124337 !important;
    border-color: rgba(43, 90, 80, 0.5);
    box-shadow: 0 4px 14px rgba(43, 90, 80, 0.12), inset 0 0 12px rgba(43, 90, 80, 0.05);
}

[data-theme='light'] .somatic-inline-btn:hover {
    background: linear-gradient(135deg, rgba(43, 90, 80, 0.18) 0%, rgba(43, 90, 80, 0.32) 100%);
    border-color: rgba(43, 90, 80, 0.85);
    color: #082921 !important;
    box-shadow: 0 6px 20px rgba(43, 90, 80, 0.25);
}

@media (max-width: 600px) {
    .somatic-inline-preview {
        left: 0.75rem;
        right: 0.75rem;
        width: calc(100% - 1.5rem);
    }
    .somatic-inline-card {
        padding: 1rem 1.1rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   SOMATIC PARAMETRIC ROUTER & READY FOCUS GLOW
   ══════════════════════════════════════════════════════════════ */
.somatic-ready-focus {
    animation: somaticReadyGlow 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite !important;
    position: relative !important;
    z-index: 10 !important;
}

@keyframes somaticReadyGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 165, 57, 0.7), 0 4px 18px rgba(212, 165, 57, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 165, 57, 0), 0 6px 24px rgba(212, 165, 57, 0.65);
        transform: scale(1.025);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 57, 0), 0 4px 18px rgba(212, 165, 57, 0.4);
        transform: scale(1);
    }
}

.somatic-sync-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    visibility: hidden;
    background: rgba(18, 28, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 165, 57, 0.45);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 165, 57, 0.2);
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-light, #f1eee6);
    font-family: var(--font-accent, 'Inter', sans-serif);
    font-size: 0.84rem;
    font-weight: 600;
    z-index: 100050;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.somatic-sync-toast.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.somatic-sync-toast i {
    color: var(--gold-bright, #d4a539);
    font-size: 0.95rem;
}

[data-theme="light"] .somatic-sync-toast {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(184, 134, 11, 0.4);
    box-shadow: 0 12px 35px rgba(70, 50, 20, 0.2), 0 0 16px rgba(184, 134, 11, 0.15);
    color: #17241e;
}

/* ══════════════════════════════════════════════════════════════
   WIM HOF SOMATIC BREATHING SECTION · LUXURY UX/UI REFINEMENT
   ══════════════════════════════════════════════════════════════ */


/* Panel Header & Badge Group */
.wh-panel-header {
    margin-bottom: 2rem;
    text-align: center;
}

.wh-panel-badge-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.wh-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(92, 184, 178, 0.12);
    border: 1px solid rgba(92, 184, 178, 0.35);
    color: #6ed1cb;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-theme="light"] .wh-badge-pill {
    background: rgba(46, 125, 120, 0.1);
    border-color: rgba(46, 125, 120, 0.3);
    color: #1a6b66;
}

/* Somatic Safety Advisory Box */
.wh-safety-advisory {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    max-width: 680px;
    margin: 1.5rem auto 0;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(135deg, rgba(212, 165, 57, 0.08) 0%, rgba(92, 184, 178, 0.06) 100%);
    border: 1px solid rgba(212, 165, 57, 0.25);
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--tool-text-body, #e0d8c8);
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .wh-safety-advisory {
    background: linear-gradient(135deg, rgba(212, 165, 57, 0.08) 0%, rgba(92, 184, 178, 0.08) 100%);
    border-color: rgba(184, 134, 11, 0.28);
    color: #38423d;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.wh-safety-advisory i {
    font-size: 1.25rem;
    color: var(--gold-bright, #d4a539);
    flex-shrink: 0;
}

[data-theme="light"] .wh-safety-advisory i {
    color: #a67a21;
}

/* Tool Stage Header */
.wh-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 580px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(212, 165, 57, 0.15);
}

[data-theme="light"] .wh-stage-header {
    border-bottom-color: rgba(184, 134, 11, 0.18);
}

.wh-phase-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--gold-bright, #d4a539);
    letter-spacing: 0.04em;
}

[data-theme="light"] .wh-phase-indicator {
    color: #8c5d08;
}

.wh-phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-bright, #d4a539);
    box-shadow: 0 0 10px var(--gold-bright, #d4a539);
    animation: whPulseDot 2s infinite ease-in-out;
}

@keyframes whPulseDot {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 14px var(--gold-bright, #d4a539); }
}

.wh-round-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 57, 0.2);
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.78rem;
    color: var(--tool-text-muted, #a39c8e);
    letter-spacing: 0.03em;
}

[data-theme="light"] .wh-round-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(184, 134, 11, 0.2);
    color: #5c5549;
}

/* Aura Rings & Orb Visualizer */
.wh-circle-wrapper {
    position: relative;
    width: 290px;
    height: 290px;
    margin: 2.2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wh-aura-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-aura-ring--outer {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(92, 184, 178, 0.12) 0%, rgba(212, 165, 57, 0.05) 50%, transparent 70%);
    filter: blur(8px);
    opacity: 0.6;
    animation: whAuraFloat 8s ease-in-out infinite alternate;
}

.wh-aura-ring--middle {
    width: 82%;
    height: 82%;
    border: 1px solid rgba(92, 184, 178, 0.25);
    opacity: 0.7;
    animation: whAuraSpin 45s linear infinite;
}

[data-theme="light"] .wh-aura-ring--outer {
    background: radial-gradient(circle, rgba(92, 184, 178, 0.15) 0%, rgba(184, 134, 11, 0.08) 50%, transparent 70%);
}

@keyframes whAuraFloat {
    0% { transform: scale(0.94); opacity: 0.45; }
    100% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes whAuraSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wh-circle-bg {
    position: absolute;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    border: 1.5px dashed rgba(212, 165, 57, 0.35);
    transition: border-color 0.5s ease;
}

[data-theme="light"] .wh-circle-bg {
    border-color: rgba(184, 134, 11, 0.35);
}

/* Main Glowing Breathing Orb */
.wh-circle {
    position: absolute;
    width: 115px;
    height: 115px;
    background: radial-gradient(circle at 35% 35%, #fde68a 0%, #d4a539 55%, #92701f 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 35px rgba(212, 165, 57, 0.55),
        0 0 70px rgba(92, 184, 178, 0.25),
        inset 0 2px 15px rgba(255, 255, 255, 0.6),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #12100b;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: 0.04em;
    user-select: none;
    z-index: 2;
    transition: width 0.12s linear, height 0.12s linear, box-shadow 0.35s ease, background 0.45s ease;
}

[data-theme="light"] .wh-circle {
    background: radial-gradient(circle at 35% 35%, #fff3cf 0%, #e2b34a 60%, #b8860b 100%);
    box-shadow: 
        0 0 30px rgba(184, 134, 11, 0.45),
        0 0 55px rgba(92, 184, 178, 0.2),
        inset 0 2px 12px rgba(255, 255, 255, 0.8),
        inset 0 -3px 8px rgba(0, 0, 0, 0.15);
    color: #18150f;
}

/* ─── Action Cue Pill (Hidden to eliminate visual clutter) ─── */
.wh-action-cue,
.wh-cue-pill {
    display: none !important;
}

/* ─── Tool Spacing & Cycle Indicators (Evita choque entre botón y ciclos) ─── */
.wh-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 2.25rem !important;
    width: 100%;
}

.coherence-progress-wrapper,
.wh-progress-wrapper {
    width: 100%;
    max-width: 580px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.coherence-cycle-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1.15rem !important;
    padding: 0.65rem 0.85rem !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border-radius: 14px;
    border: 1px solid rgba(212, 165, 57, 0.15);
    max-width: 100%;
}

[data-theme="light"] .coherence-cycle-dots {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(184, 134, 11, 0.18);
}

/* ══════════════════════════════════════════════════════════════
   PANTALLA FLOTANTE DE PRÁCTICA — PORTAL OVERLAY
   Usa un div #wh-practice-overlay a nivel de <body> para evitar
   que backdrop-filter/transform en ancestros rompa position:fixed.
   El JS mueve el .wh-tool-container al portal al iniciar.
   ══════════════════════════════════════════════════════════════ */

body.wh-practice-modal-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* The portal overlay — lives directly on <body> */
#wh-practice-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at 50% 35%, rgba(10, 16, 14, 0.97) 0%, rgba(4, 6, 5, 0.99) 100%);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
}

[data-theme="light"] #wh-practice-overlay {
    background: radial-gradient(circle at 50% 35%, rgba(255, 252, 245, 0.98) 0%, rgba(240, 236, 225, 0.99) 100%);
}

#wh-practice-overlay.is-visible {
    display: flex;
    animation: whOverlayFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes whOverlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* The tool container when it's inside the overlay portal */
#wh-practice-overlay > .wh-tool-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: clamp(1rem, 3.5vh, 2.5rem) clamp(1rem, 4vw, 2.5rem) !important;
    animation: whContentSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes whContentSlideIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating Exit / Close Button — only shown inside overlay */
.wh-floating-close-btn {
    display: none !important;
}

#wh-practice-overlay .wh-floating-close-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    position: fixed;
    top: max(1.2rem, env(safe-area-inset-top, 1.2rem));
    right: max(1.2rem, env(safe-area-inset-right, 1.2rem));
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 165, 57, 0.3);
    border-radius: 50px;
    color: var(--text-light, #f1eee6);
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] #wh-practice-overlay .wh-floating-close-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(184, 134, 11, 0.35);
    color: #2b1f09;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#wh-practice-overlay .wh-floating-close-btn:hover {
    background: rgba(229, 115, 115, 0.25);
    border-color: #e57373;
    color: #ff9e9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 115, 115, 0.3);
}

/* Content sizing inside overlay */
#wh-practice-overlay .wh-stage-header {
    max-width: 480px;
    width: 100%;
    margin-bottom: 0.6rem;
    padding-bottom: 0.45rem;
}

#wh-practice-overlay .wh-status-text {
    font-size: clamp(1.35rem, 4vw, 2rem);
    margin-bottom: 0.25rem;
    min-height: auto;
}

#wh-practice-overlay .wh-timer-text {
    font-size: clamp(0.92rem, 2.5vw, 1.15rem);
    margin-bottom: 0.8rem;
    min-height: auto;
}

#wh-practice-overlay .wh-circle-wrapper {
    width: clamp(210px, 42vw, 290px);
    height: clamp(210px, 42vw, 290px);
    margin: 0.6rem auto 0.8rem auto;
}

#wh-practice-overlay .coherence-progress-wrapper,
#wh-practice-overlay .wh-progress-wrapper {
    max-width: 460px;
    width: 100%;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

#wh-practice-overlay .coherence-cycle-dots {
    margin-top: 0.5rem !important;
    padding: 0.4rem 0.6rem !important;
    max-height: 85px;
    overflow-y: auto;
}

#wh-practice-overlay .wh-controls {
    margin-top: 1.2rem !important;
}

/* Compact screens & short viewports */
@media (max-height: 740px), (max-width: 600px) {
    #wh-practice-overlay > .wh-tool-container {
        justify-content: flex-start !important;
        padding-top: max(3.8rem, env(safe-area-inset-top, 3.8rem)) !important;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem)) !important;
    }
    
    #wh-practice-overlay .wh-circle-wrapper {
        width: 185px;
        height: 185px;
        margin: 0.4rem auto 0.5rem auto;
    }

    #wh-practice-overlay .wh-circle,
    #wh-practice-overlay .coherence-circle {
        width: 88px !important;
        height: 88px !important;
        font-size: 0.95rem !important;
    }
    
    #wh-practice-overlay .wh-circle .circle-phase {
        font-size: 0.92rem;
    }

    #wh-practice-overlay .wh-circle .circle-seconds {
        font-size: 0.78rem;
    }

    #wh-practice-overlay .wh-status-text {
        font-size: 1.2rem;
    }

    #wh-practice-overlay .wh-timer-text {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    #wh-practice-overlay .wh-controls {
        margin-top: 0.75rem !important;
    }

    #wh-practice-overlay .wh-btn {
        min-height: 42px;
        padding: 0.65rem 1.6rem;
        font-size: 0.82rem;
    }
}

/* ─── Ixofillmogen Practice Inside Fullscreen Overlay ─── */
#wh-practice-overlay #ixo-app {
    text-align: center;
    max-width: 650px !important;
    margin: 0 auto !important;
}

#wh-practice-overlay #ixo-app .wh-stage-header {
    max-width: 440px;
    width: 100%;
    margin: 0 auto 0.45rem auto;
    padding-bottom: 0.4rem;
}

#wh-practice-overlay #ixo-app .ixo-modal-guide-text {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 0.2rem auto 0.6rem auto;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 57, 0.25);
    border-radius: 30px;
    font-size: 0.92rem;
    color: var(--text-light, #f1eee6);
    line-height: 1.5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] #wh-practice-overlay #ixo-app .ixo-modal-guide-text {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(184, 134, 11, 0.3);
    color: #2b1f09;
}

#wh-practice-overlay #ixo-app .ixo-breathing-guide {
    max-width: 400px;
    width: 100%;
    margin: 0.5rem auto 0.8rem auto;
}

#wh-practice-overlay #ixo-app .wh-circle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wh-practice-overlay #ixo-circle {
    width: clamp(120px, 25vw, 150px) !important;
    height: clamp(120px, 25vw, 150px) !important;
    font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
    font-family: var(--font-heading, 'Cinzel', serif) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at 35% 35%, #2a3d31 0%, #15221b 60%, #0d1612 100%) !important;
    border: 2px solid rgba(212, 165, 57, 0.5) !important;
    box-shadow: 0 0 35px rgba(212, 165, 57, 0.35), inset 0 0 15px rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
}

[data-theme="light"] #wh-practice-overlay #ixo-circle {
    background: radial-gradient(circle at 35% 35%, #fffbf2 0%, #ede3cc 60%, #dcd0b3 100%) !important;
    color: #1a2a22 !important;
    border-color: rgba(184, 134, 11, 0.6) !important;
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.8) !important;
}

/* ─── Generic & Portal Breathing Tool Dynamic Aura & Visualizer States ─── */
.wh-tool-container.wh-state-inhaling .wh-aura-ring--outer,
#wh-practice-overlay .wh-state-inhaling .wh-aura-ring--outer,
#coherence-app.coh-state-inhaling .wh-aura-ring--outer,
#antistress-app.anti-state-inhaling .wh-aura-ring--outer,
#wh-app.wh-state-inhaling .wh-aura-ring--outer {
    transform: scale(1.22);
    opacity: 0.95;
    background: radial-gradient(circle, rgba(92, 184, 178, 0.4) 0%, rgba(92, 184, 178, 0.1) 60%, transparent 80%);
    box-shadow: 0 0 45px rgba(92, 184, 178, 0.4);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, background 0.3s ease;
}

.wh-tool-container.wh-state-inhaling .wh-aura-ring--middle,
#wh-practice-overlay .wh-state-inhaling .wh-aura-ring--middle {
    transform: scale(1.14);
    opacity: 0.8;
    background: radial-gradient(circle, rgba(212, 165, 57, 0.28) 0%, rgba(212, 165, 57, 0.05) 60%, transparent 80%);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.wh-tool-container.wh-state-holding .wh-aura-ring--outer,
#wh-practice-overlay .wh-state-holding .wh-aura-ring--outer,
#coherence-app.coh-state-holding .wh-aura-ring--outer,
#antistress-app.anti-state-holding .wh-aura-ring--outer,
#wh-app.wh-state-holding .wh-aura-ring--outer {
    transform: scale(1.16);
    opacity: 0.88;
    background: radial-gradient(circle, rgba(157, 141, 241, 0.38) 0%, rgba(157, 141, 241, 0.08) 60%, transparent 80%);
    box-shadow: 0 0 40px rgba(157, 141, 241, 0.35);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.wh-tool-container.wh-state-exhaling .wh-aura-ring--outer,
#wh-practice-overlay .wh-state-exhaling .wh-aura-ring--outer,
#coherence-app.coh-state-exhaling .wh-aura-ring--outer,
#antistress-app.anti-state-exhaling .wh-aura-ring--outer,
#wh-app.wh-state-exhaling .wh-aura-ring--outer {
    transform: scale(0.92);
    opacity: 0.55;
    background: radial-gradient(circle, rgba(212, 165, 57, 0.25) 0%, rgba(212, 165, 57, 0.05) 60%, transparent 80%);
    box-shadow: 0 0 25px rgba(212, 165, 57, 0.25);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, background 0.3s ease;
}

.wh-tool-container.wh-state-exhaling .wh-aura-ring--middle,
#wh-practice-overlay .wh-state-exhaling .wh-aura-ring--middle {
    transform: scale(0.9);
    opacity: 0.4;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.wh-tool-container.wh-state-hold-empty .wh-aura-ring--outer,
#wh-practice-overlay .wh-state-hold-empty .wh-aura-ring--outer {
    transform: scale(0.86);
    opacity: 0.45;
    background: radial-gradient(circle, rgba(92, 124, 184, 0.28) 0%, rgba(92, 124, 184, 0.05) 60%, transparent 80%);
    box-shadow: 0 0 25px rgba(92, 124, 184, 0.2);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Coherence & Antistress Circle Visual Polish */
.coherence-circle {
    position: absolute;
    width: 115px;
    height: 115px;
    background: radial-gradient(circle at 35% 35%, #5cb8b2 0%, #2a6964 60%, #153c39 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(92, 184, 178, 0.55), inset 0 2px 14px rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ffffff;
    font-family: var(--font-heading, 'Cinzel', serif);
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
    user-select: none;
    transition: width 0.12s linear, height 0.12s linear, box-shadow 0.35s ease, background 0.45s ease;
}

[data-theme="light"] .coherence-circle {
    background: radial-gradient(circle at 35% 35%, #8de4df 0%, #3ca099 60%, #1d605b 100%);
    box-shadow: 0 0 35px rgba(92, 184, 178, 0.45), inset 0 2px 10px rgba(255, 255, 255, 0.7);
    color: #0d2825;
}

.coherence-circle .circle-phase {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.coherence-circle .circle-seconds {
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.95;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

/* Cycle Dots Luxury Visualizer */
.coherence-cycle-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(212, 165, 57, 0.12);
}

[data-theme="light"] .coherence-cycle-dots {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(184, 134, 11, 0.12);
}

.coherence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .coherence-dot {
    background: rgba(0, 0, 0, 0.12);
}

.coherence-dot.completed {
    background: #5cb8b2;
    box-shadow: 0 0 6px rgba(92, 184, 178, 0.7);
}

.coherence-dot.active {
    background: var(--gold-bright, #d4a539);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--gold-bright, #d4a539);
    animation: whPulseDot 1.5s infinite ease-in-out;
}

/* Progress Fill Enhancements */
.coherence-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 57, 0.2);
}

[data-theme="light"] .coherence-progress-bar {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(184, 134, 11, 0.2);
}

.coherence-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5cb8b2, var(--gold-bright, #d4a539));
    border-radius: 8px;
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(92, 184, 178, 0.6);
}

/* Dynamic State Themes on #wh-app */
#wh-app.wh-state-inhaling .wh-aura-ring--outer {
    transform: scale(1.15);
    opacity: 0.9;
    background: radial-gradient(circle, rgba(92, 184, 178, 0.28) 0%, rgba(92, 184, 178, 0.08) 60%, transparent 80%);
}

#wh-app.wh-state-exhaling .wh-aura-ring--outer {
    transform: scale(0.95);
    opacity: 0.55;
    background: radial-gradient(circle, rgba(212, 165, 57, 0.2) 0%, rgba(212, 165, 57, 0.05) 60%, transparent 80%);
}

#wh-app.wh-state-retention .wh-circle {
    background: radial-gradient(circle at 40% 40%, #5cb8b2 0%, #1e5a56 70%, #0d2c2a 100%);
    box-shadow: 0 0 45px rgba(92, 184, 178, 0.65), inset 0 0 20px rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

[data-theme="light"] #wh-app.wh-state-retention .wh-circle {
    background: radial-gradient(circle at 40% 40%, #8ae0db 0%, #2f837d 70%, #174e4a 100%);
    color: #ffffff;
}

#wh-app.wh-state-recovery .wh-circle {
    background: radial-gradient(circle at 35% 35%, #fff1a8 0%, #f59e0b 60%, #b45309 100%);
    box-shadow: 0 0 55px rgba(245, 158, 11, 0.75), inset 0 0 25px rgba(255, 255, 255, 0.7);
    color: #1a0f00;
}

/* Enhanced Recovery Button ("Necesito Respirar") */
.wh-btn.wh-btn--recovery {
    background: linear-gradient(135deg, #1f6b65 0%, #5cb8b2 100%) !important;
    border: 1.5px solid #7fe5df !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    padding: 0.95rem 2.4rem !important;
    box-shadow: 0 6px 25px rgba(92, 184, 178, 0.45) !important;
    animation: whPulseRecovery 2.2s infinite ease-in-out;
}

.wh-btn.wh-btn--recovery:hover {
    background: linear-gradient(135deg, #288079 0%, #6ce2dc 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 32px rgba(92, 184, 178, 0.65) !important;
}

@keyframes whPulseRecovery {
    0%, 100% { box-shadow: 0 6px 20px rgba(92, 184, 178, 0.4); transform: scale(1); }
    50% { box-shadow: 0 10px 30px rgba(92, 184, 178, 0.7); transform: scale(1.02); }
}

/* Somatic Step Flow Cards (Protocolo 3 Fases) */
.wh-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    width: 100%;
}

.wh-step-card {
    position: relative;
    background: var(--tool-bg, rgba(20, 24, 22, 0.75));
    border: 1px solid var(--tool-border, rgba(212, 165, 57, 0.2));
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .wh-step-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.wh-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-bright, #d4a539);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(212, 165, 57, 0.1);
}

[data-theme="light"] .wh-step-card:hover {
    box-shadow: 0 12px 30px rgba(184, 134, 11, 0.15);
}

.wh-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.wh-step-number {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-bright, #d4a539);
    opacity: 0.85;
    letter-spacing: 0.05em;
    line-height: 1;
}

[data-theme="light"] .wh-step-number {
    color: #9c6c10;
}

.wh-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(92, 184, 178, 0.12);
    border: 1px solid rgba(92, 184, 178, 0.3);
    color: #5cb8b2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

[data-theme="light"] .wh-step-icon {
    background: rgba(46, 125, 120, 0.1);
    border-color: rgba(46, 125, 120, 0.25);
    color: #1a6b66;
}

.wh-step-content h4 {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-bright, #d4a539);
    margin: 0 0 0.45rem;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

[data-theme="light"] .wh-step-content h4 {
    color: #8c5d08;
}

.wh-step-lead {
    font-family: var(--font-heading, 'Cinzel', serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: #5cb8b2;
    margin: 0 0 0.85rem;
    letter-spacing: 0.03em;
}

[data-theme="light"] .wh-step-lead {
    color: #1e706a;
}

.wh-step-content p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--tool-text-body, #c9c3b4);
    margin: 0 0 1.15rem;
}

[data-theme="light"] .wh-step-content p {
    color: #4a544f;
}

.wh-step-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: rgba(212, 165, 57, 0.06);
    border: 1px solid rgba(212, 165, 57, 0.18);
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--tool-text-muted, #a39c8e);
    margin-top: auto;
}

[data-theme="light"] .wh-step-tip {
    background: rgba(184, 134, 11, 0.06);
    border-color: rgba(184, 134, 11, 0.18);
    color: #5c5549;
}

.wh-step-tip i {
    color: var(--gold-bright, #d4a539);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

[data-theme="light"] .wh-step-tip i {
    color: #a67a21;
}

/* Responsive adjustments for Wim Hof Section */
@media (max-width: 992px) {
    .wh-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .wh-circle-wrapper {
        width: 240px;
        height: 240px;
    }
    .wh-circle {
        font-size: 1.4rem;
    }
    .wh-stage-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .wh-safety-advisory {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .wh-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Air Quality Location Button Refinement */
.air-quality-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0.85rem auto 2rem !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.air-quality-actions .wh-btn,
#air-quality-location-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    padding: 0.85rem 1.85rem !important;
    min-height: 48px !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-family: var(--font-heading) !important;
    letter-spacing: 0.04em !important;
    background: rgba(212, 165, 57, 0.12) !important;
    border: 1.5px solid rgba(212, 165, 57, 0.45) !important;
    color: var(--text-light, var(--tool-text-title)) !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    text-decoration: none !important;
}
.air-quality-actions .wh-btn:hover,
#air-quality-location-button:hover,
.air-quality-actions .wh-btn:focus-visible,
#air-quality-location-button:focus-visible {
    background: rgba(212, 165, 57, 0.25) !important;
    border-color: var(--gold-bright) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(212, 165, 57, 0.32) !important;
    outline: none !important;
}
.air-quality-actions .wh-btn:active,
#air-quality-location-button:active {
    transform: translateY(0) !important;
}
.air-quality-actions .wh-btn i,
#air-quality-location-button i {
    color: var(--gold-bright) !important;
    font-size: 1em !important;
    transition: transform 0.3s ease !important;
}
.air-quality-actions .wh-btn:hover i,
#air-quality-location-button:hover i {
    transform: scale(1.18) rotate(-12deg) !important;
}
[data-theme="light"] .air-quality-actions .wh-btn,
[data-theme="light"] #air-quality-location-button {
    background: rgba(166, 122, 33, 0.1) !important;
    border-color: rgba(166, 122, 33, 0.4) !important;
    color: var(--terrain-stone, #27332e) !important;
}
[data-theme="light"] .air-quality-actions .wh-btn:hover,
[data-theme="light"] #air-quality-location-button:hover {
    background: rgba(166, 122, 33, 0.2) !important;
    border-color: var(--gold-warm) !important;
    color: var(--terrain-basalt, #101714) !important;
    box-shadow: 0 6px 18px rgba(166, 122, 33, 0.25) !important;
}
@media (max-width: 768px) {
    .air-quality-actions {
        margin: 0.75rem auto 1.5rem !important;
    }
    .air-quality-actions .wh-btn,
    #air-quality-location-button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Sun, Moon & UV Rhythm Panel Refinement */
.sun-moon-info {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    margin-top: 1.75rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="light"] .sun-moon-info {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}
.sun-moon-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.1rem 0.65rem !important;
    text-align: center !important;
}
.sun-moon-card-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.65rem !important;
    font-size: 1.25rem !important;
    transition: all 0.3s ease !important;
}
.sun-moon-card.sunrise .sun-moon-card-icon-wrap {
    background: rgba(255, 183, 77, 0.15) !important;
    color: #ffb74d !important;
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.25) !important;
}
.sun-moon-card.sunset .sun-moon-card-icon-wrap {
    background: rgba(224, 123, 84, 0.15) !important;
    color: #e07b54 !important;
    box-shadow: 0 0 15px rgba(224, 123, 84, 0.25) !important;
}
.sun-moon-card.moon .sun-moon-card-icon-wrap {
    background: rgba(155, 142, 196, 0.15) !important;
    color: #9b8ec4 !important;
    box-shadow: 0 0 15px rgba(155, 142, 196, 0.25) !important;
}
.sun-moon-card.uv-index .sun-moon-card-icon-wrap {
    background: rgba(234, 179, 8, 0.18) !important;
    color: #facc15 !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3) !important;
}
[data-theme="light"] .sun-moon-card.uv-index .sun-moon-card-icon-wrap {
    background: rgba(202, 138, 4, 0.18) !important;
    color: #ca8a04 !important;
    box-shadow: 0 0 15px rgba(202, 138, 4, 0.25) !important;
}
@media (max-width: 900px) {
    .sun-moon-info {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
}
@media (max-width: 520px) {
    .sun-moon-info {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ESTABILIZACIÓN DE CONTENEDORES DINÁMICOS Y PREVENCIÓN DE REFLUJO (CLS)
   ═══════════════════════════════════════════════════════════════════ */

/* Regla universal para atributos hidden para evitar renderizado prematuro */
[hidden] {
    display: none !important;
}

/* Animación Shimmer Translúcida para Skeletons y Carga Asíncrona */
@keyframes newendo-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(212, 165, 57, 0.12) 50%,
        rgba(255, 255, 255, 0.04) 75%
    ) !important;
    background-size: 200% 100% !important;
    animation: newendo-shimmer 2s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 6px;
}

[data-theme="light"] .skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 25%,
        rgba(166, 122, 33, 0.1) 50%,
        rgba(0, 0, 0, 0.04) 75%
    ) !important;
    background-size: 200% 100% !important;
}

/* 1. Estabilización: Panel de Práctica Diaria (Hero Somatic Pulse) */
body.newendo-terrain .daily-practice {
    min-height: 255px;
    contain: layout style;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.daily-practice__actions {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    body.newendo-terrain .daily-practice {
        min-height: 295px;
    }
}

/* 2. Estabilización: Widget de Calidad del Aire (Entorno y Biorritmos) */
body.newendo-terrain .air-quality-tool {
    min-height: auto;
    max-width: 740px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
}

.air-quality-result {
    min-height: auto !important;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.air-quality-result.is-loading {
    position: relative;
    overflow: hidden;
}

.air-quality-result.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 165, 57, 0.08) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: newendo-shimmer 1.8s infinite;
    pointer-events: none;
    border-radius: 20px;
}

@media (max-width: 768px) {
    body.newendo-terrain .air-quality-tool {
        min-height: auto;
    }
    .air-quality-result {
        min-height: auto;
    }
}

/* 3. Estabilización: Acordeón de Preguntas Frecuentes (FAQ) */
body.newendo-terrain .terrain-faq__list {
    min-height: 390px;
    contain: layout style;
}

/* Skeleton Placeholder para FAQs dinámicas */
.faq-skeleton-item {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[data-theme="light"] .faq-skeleton-item {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

.faq-skeleton-title {
    height: 1.25rem;
    width: 65%;
}

.faq-skeleton-line {
    height: 0.85rem;
    width: 90%;
}

.faq-skeleton-line.short {
    width: 45%;
}

/* Supresión defensiva absoluta de elementos de pasaporte somático */
.nav-passport-btn,
#nav-passport-btn,
[data-passport-btn],
.somatic-route-dock,
.somatic-passport-modal,
.somatic-passport-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
