/* Gabinet Świadomości - Main Stylesheet */
/* Apple-inspired Design */

:root {
    --primary: #f8f5ff;
    --secondary: #1d1633;
    --accent: #5b3df5;
    --accent-dark: #4020d4;
    --accent-soft: #f04e98;
    --gray-light: #fbfbfe;
    --gray: #7f7d8f;
    --gray-dark: #49445f;
    --border: rgba(115, 96, 184, 0.18);
    --white: #ffffff;
    --black: #000000;

    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'Monaco', 'Menlo', monospace;

    --shadow-sm: 0 10px 25px rgba(70, 41, 130, 0.08);
    --shadow-md: 0 16px 40px rgba(76, 46, 138, 0.14);
    --shadow-lg: 0 24px 60px rgba(63, 35, 123, 0.18);
    --shadow-xl: 0 30px 80px rgba(42, 24, 82, 0.24);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xlg: 24px;

    --motion-pointer-x: 0;
    --motion-pointer-y: 0;
    --motion-scroll-progress: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-hidden {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(91, 61, 245, 0);
    }
    50% {
        box-shadow: 0 0 28px rgba(91, 61, 245, 0.26);
    }
}

@keyframes auroraShift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.82;
    }
    50% {
        transform: translate3d(2%, -2%, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes cinematicBeam {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scaleY(1);
        opacity: 0.18;
    }
    50% {
        transform: translate3d(4%, -3%, 0) rotate(4deg) scaleY(1.08);
        opacity: 0.34;
    }
}

@keyframes cinematicOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(4%, -5%, 0) scale(1.1);
    }
}

@keyframes sectionVeil {
    0% {
        opacity: 0.15;
        transform: translateY(18px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cinematicGrain {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-1%, 1%);
    }
    50% {
        transform: translate(1%, -1%);
    }
    75% {
        transform: translate(1%, 1%);
    }
}

@keyframes sheenSweep {
    0% {
        transform: translateX(-180%) skewX(-24deg);
        opacity: 0;
    }
    30% {
        opacity: 0.18;
    }
    100% {
        transform: translateX(260%) skewX(-24deg);
        opacity: 0;
    }
}

@keyframes routeBloomPulse {
    0% {
        opacity: 0;
        transform: scale(0.42);
    }
    38% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@keyframes routeDirectionalSweep {
    0% {
        opacity: 0;
        transform: translate3d(-120%, 0, 0) skewX(-22deg);
    }
    28% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate3d(180%, 0, 0) skewX(-22deg);
    }
}

@keyframes gradientTextShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes spectraDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(4%, -5%, 0) scale(1.08);
    }
}

@keyframes beamTraverse {
    0% {
        transform: translate3d(-140%, 0, 0) rotate(18deg);
        opacity: 0;
    }
    22% {
        opacity: 0.22;
    }
    100% {
        transform: translate3d(260%, 0, 0) rotate(18deg);
        opacity: 0;
    }
}

@keyframes trailerTitlePulse {
    0%, 100% {
        text-shadow: 0 16px 40px rgba(13, 9, 33, 0.18), 0 0 24px rgba(255,255,255,0.08);
        filter: saturate(1) brightness(1);
    }
    50% {
        text-shadow: 0 24px 58px rgba(13, 9, 33, 0.28), 0 0 34px rgba(255,255,255,0.14);
        filter: saturate(1.12) brightness(1.04);
    }
}

@keyframes trailerSectionSweep {
    0% {
        transform: translate3d(-150%, 0, 0) rotate(16deg);
        opacity: 0;
    }
    24% {
        opacity: 0.16;
    }
    100% {
        transform: translate3d(230%, 0, 0) rotate(16deg);
        opacity: 0;
    }
}

@keyframes trailerOrbBreathe {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate3d(4%, -6%, 0) scale(1.12);
        opacity: 0.34;
    }
}

@keyframes buttonGlowPulse {
    0%, 100% {
        opacity: 0.42;
        transform: scale(0.92);
    }
    50% {
        opacity: 0.88;
        transform: scale(1.08);
    }
}

@keyframes badgeBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes progressGlow {
    0% {
        opacity: 0.2;
        transform: translateX(-18%);
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 0.2;
        transform: translateX(18%);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes logoHalo {
    0%, 100% {
        filter: drop-shadow(0 10px 24px rgba(244, 190, 72, 0.18));
    }
    50% {
        filter: drop-shadow(0 16px 32px rgba(244, 190, 72, 0.32));
    }
}

@keyframes auraPulse {
    0%, 100% {
        transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0) scale(1);
        opacity: 0.42;
    }
    50% {
        transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0) scale(1.08);
        opacity: 0.65;
    }
}

@keyframes rippleBurst {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.55;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes sparkFly {
    0% {
        transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg)) translateX(0) scale(0.8);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg)) translateX(var(--spark-distance, 48px)) scale(0.1);
        opacity: 0;
    }
}

.fade-hidden {
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    transform: translateY(24px) scale(0.985);
    will-change: transform, opacity;
}

.fade-hidden.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.home-premium-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 18%, rgba(244, 190, 72, 0.11), transparent 18%),
        radial-gradient(circle at 82% 22%, rgba(240, 78, 152, 0.1), transparent 20%),
        radial-gradient(circle at 52% 74%, rgba(91, 61, 245, 0.12), transparent 24%);
    opacity: 0.9;
    z-index: 0;
}

body.is-preloading {
    overflow: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

.page-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.page-atmosphere-orb,
.page-atmosphere-grid,
.page-atmosphere-noise {
    position: absolute;
    inset: auto;
}

.page-atmosphere-orb {
    width: 36vw;
    max-width: 520px;
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.6;
    animation: atmosphericFloat 18s ease-in-out infinite;
}

.page-atmosphere-orb-one {
    top: -8%;
    left: -10%;
    background: radial-gradient(circle, rgba(244, 190, 72, 0.24), rgba(244, 190, 72, 0));
}

.page-atmosphere-orb-two {
    right: -6%;
    top: 14%;
    background: radial-gradient(circle, rgba(91, 61, 245, 0.2), rgba(91, 61, 245, 0));
    animation-duration: 22s;
}

.page-atmosphere-orb-three {
    left: 28%;
    bottom: -16%;
    background: radial-gradient(circle, rgba(240, 78, 152, 0.16), rgba(240, 78, 152, 0));
    animation-duration: 26s;
}

.page-atmosphere-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.9), rgba(0,0,0,0) 78%);
    opacity: 0.35;
}

.page-atmosphere-noise {
    inset: -20%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 22%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.06), transparent 18%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05), transparent 16%);
    mix-blend-mode: screen;
    opacity: 0.28;
    animation: cinematicGrain 16s steps(4) infinite;
}

.page-atmosphere-orb-one {
    translate: calc(var(--motion-pointer-x, 0) * -42px) calc(var(--motion-scroll-progress, 0) * -44px);
}

.page-atmosphere-orb-two {
    translate: calc(var(--motion-pointer-x, 0) * 38px) calc(var(--motion-scroll-progress, 0) * 28px);
}

.page-atmosphere-orb-three {
    translate: calc(var(--motion-pointer-y, 0) * -34px) calc(var(--motion-scroll-progress, 0) * 36px);
}

.page-atmosphere-grid {
    transform: translate3d(calc(var(--motion-pointer-x, 0) * 18px), calc(var(--motion-pointer-y, 0) * -12px), 0);
    transition: transform 0.9s ease-out;
}

.page-atmosphere-noise {
    transform: translate3d(calc(var(--motion-pointer-x, 0) * -12px), calc(var(--motion-pointer-y, 0) * 12px), 0);
}

@keyframes atmosphericFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(2.5%, -3%, 0) scale(1.08);
    }
}

.page-preloader {
    --page-preloader-overlay-duration: 1.1s;
    --page-preloader-door-duration: 1.9s;
    --page-preloader-core-duration: 1.15s;
    --page-preloader-exit-delay: 0.9s;
    --page-preloader-glow-primary: rgba(244, 190, 72, 0.28);
    --page-preloader-glow-secondary: rgba(240, 78, 152, 0.12);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 24% 18%, var(--page-preloader-glow-primary), rgba(255,255,255,0) 28%),
        radial-gradient(circle at 74% 24%, var(--page-preloader-glow-secondary), rgba(255,255,255,0) 26%),
        radial-gradient(circle at 50% 32%, rgba(97, 66, 175, 0.28), rgba(26, 13, 49, 0.98) 58%, rgba(15, 8, 29, 1) 100%);
    transition: opacity var(--page-preloader-overlay-duration) ease, visibility var(--page-preloader-overlay-duration) ease;
}

.page-route-transition {
    --route-origin-x: 50%;
    --route-origin-y: 50%;
    --route-direction: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.015);
}

.page-route-transition[data-transition-variant='live'],
.page-preloader[data-transition-variant='live'] {
    --page-preloader-glow-primary: rgba(117, 210, 255, 0.3);
    --page-preloader-glow-secondary: rgba(240, 78, 152, 0.18);
}

.page-route-transition[data-transition-variant='editorial'],
.page-preloader[data-transition-variant='editorial'] {
    --page-preloader-glow-primary: rgba(245, 191, 116, 0.3);
    --page-preloader-glow-secondary: rgba(93, 123, 237, 0.24);
}

.page-route-transition[data-transition-variant='admin'],
.page-preloader[data-transition-variant='admin'] {
    --page-preloader-glow-primary: rgba(160, 215, 242, 0.28);
    --page-preloader-glow-secondary: rgba(108, 91, 230, 0.22);
}

.page-route-transition[data-transition-variant='auth'],
.page-preloader[data-transition-variant='auth'] {
    --page-preloader-glow-primary: rgba(255, 205, 121, 0.28);
    --page-preloader-glow-secondary: rgba(90, 128, 228, 0.22);
}

.page-route-transition[data-transition-variant='booking'],
.page-preloader[data-transition-variant='booking'] {
    --page-preloader-glow-primary: rgba(248, 191, 111, 0.28);
    --page-preloader-glow-secondary: rgba(92, 117, 236, 0.2);
}

.page-route-transition::before,
.page-route-transition::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.page-route-transition::before {
    inset: -12%;
    background: radial-gradient(circle at var(--route-origin-x) var(--route-origin-y), rgba(255,255,255,0.26), rgba(244, 190, 72, 0.16) 12%, rgba(255,255,255,0) 38%);
    opacity: 0;
    transform: scale(0.56);
}

.page-route-transition::after {
    top: -18%;
    bottom: -18%;
    left: -28%;
    width: 42%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.24), rgba(255,255,255,0));
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(calc((-120% + (var(--route-direction) * 24%))), 0, 0) skewX(-22deg);
}

.page-route-transition[data-transition-direction*='from-right']::after,
.page-preloader[data-transition-direction*='from-right']::after {
    left: auto;
    right: -28%;
    transform: translate3d(calc((120% + (var(--route-direction) * 24%))), 0, 0) skewX(22deg);
}

.page-route-transition[data-transition-direction*='from-top']::before,
.page-preloader[data-transition-direction*='from-top']::before {
    transform-origin: center top;
}

.page-route-transition[data-transition-direction*='from-bottom']::before,
.page-preloader[data-transition-direction*='from-bottom']::before {
    transform-origin: center bottom;
}

.page-route-transition[data-transition-variant='live'] .page-preloader-door,
.page-preloader[data-transition-variant='live'] .page-preloader-door {
    background: linear-gradient(180deg, rgba(10, 26, 45, 0.98), rgba(13, 8, 34, 0.98));
}

.page-route-transition[data-transition-variant='editorial'] .page-preloader-door,
.page-preloader[data-transition-variant='editorial'] .page-preloader-door {
    background: linear-gradient(180deg, rgba(52, 36, 18, 0.98), rgba(23, 12, 29, 0.98));
}

.page-route-transition[data-transition-variant='admin'] .page-preloader-door,
.page-preloader[data-transition-variant='admin'] .page-preloader-door {
    background: linear-gradient(180deg, rgba(20, 24, 47, 0.98), rgba(12, 12, 28, 0.98));
}

.page-route-transition[data-transition-variant='auth'] .page-preloader-door,
.page-preloader[data-transition-variant='auth'] .page-preloader-door {
    background: linear-gradient(180deg, rgba(44, 27, 59, 0.98), rgba(17, 10, 34, 0.98));
}

.page-route-transition[data-transition-variant='live'] .page-preloader-core strong,
.page-preloader[data-transition-variant='live'] .page-preloader-core strong,
.page-route-transition[data-transition-variant='editorial'] .page-preloader-core strong,
.page-preloader[data-transition-variant='editorial'] .page-preloader-core strong,
.page-route-transition[data-transition-variant='admin'] .page-preloader-core strong,
.page-preloader[data-transition-variant='admin'] .page-preloader-core strong,
.page-route-transition[data-transition-variant='auth'] .page-preloader-core strong,
.page-preloader[data-transition-variant='auth'] .page-preloader-core strong,
.page-route-transition[data-transition-variant='booking'] .page-preloader-core strong,
.page-preloader[data-transition-variant='booking'] .page-preloader-core strong {
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientTextShift 12s linear infinite;
}

.page-route-transition[data-transition-variant='live'] .page-preloader-core strong,
.page-preloader[data-transition-variant='live'] .page-preloader-core strong {
    background-image: linear-gradient(120deg, #ffffff 0%, #8fe5ff 22%, #ffffff 44%, #ffcae0 62%, #ffffff 100%);
}

.page-route-transition[data-transition-variant='editorial'] .page-preloader-core strong,
.page-preloader[data-transition-variant='editorial'] .page-preloader-core strong {
    background-image: linear-gradient(125deg, #fff6e0 0%, #ffd78c 24%, #ffffff 44%, #b9c8ff 70%, #ffffff 100%);
}

.page-route-transition[data-transition-variant='admin'] .page-preloader-core strong,
.page-preloader[data-transition-variant='admin'] .page-preloader-core strong {
    background-image: linear-gradient(125deg, #dff2ff 0%, #ffffff 22%, #b2b8ff 54%, #ffffff 100%);
}

.page-route-transition[data-transition-variant='auth'] .page-preloader-core strong,
.page-preloader[data-transition-variant='auth'] .page-preloader-core strong,
.page-route-transition[data-transition-variant='booking'] .page-preloader-core strong,
.page-preloader[data-transition-variant='booking'] .page-preloader-core strong {
    background-image: linear-gradient(125deg, #ffffff 0%, #ffd99b 22%, #ffffff 44%, #e4baff 72%, #ffffff 100%);
}

.page-route-transition .page-preloader-door-left {
    transform: translateX(-102%);
}

.page-route-transition .page-preloader-door-right {
    transform: translateX(102%);
}

.page-route-transition .page-preloader-core {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.page-route-transition.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.page-route-transition.is-active::before {
    animation: routeBloomPulse 0.82s cubic-bezier(0.18, 0.82, 0.18, 1) forwards;
}

.page-route-transition.is-active::after {
    animation: routeDirectionalSweep 0.84s cubic-bezier(0.16, 0.84, 0.18, 1) forwards;
}

.page-route-transition.is-active .page-preloader-door-left,
.page-route-transition.is-active .page-preloader-door-right {
    transform: translateX(0);
}

.page-route-transition.is-active .page-preloader-core {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.is-route-transitioning {
    overflow: hidden;
}

body.is-route-transitioning > *:not(.page-route-transition):not(script):not(style) {
    opacity: 0;
    filter: blur(14px);
    transform: scale(0.985);
    transition: opacity 0.22s ease, filter 0.28s ease, transform 0.28s ease;
}

body.is-history-restore > *:not(script):not(style) {
    animation: sectionVeil 0.48s ease both;
}

.page-preloader-door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background: linear-gradient(180deg, rgba(31, 16, 59, 0.98), rgba(17, 10, 34, 0.98));
    transition: transform var(--page-preloader-door-duration) cubic-bezier(0.16, 0.86, 0.18, 1);
}

.page-preloader-door::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.page-preloader-door-left {
    left: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.page-preloader-door-right {
    right: 0;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.page-preloader-core {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    text-align: center;
    color: #fff;
    transition: opacity calc(var(--page-preloader-core-duration) * 0.78) ease, transform var(--page-preloader-core-duration) ease;
}

.page-preloader-core::before {
    content: '';
    position: absolute;
    inset: -18% -12%;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    z-index: -1;
    box-shadow: 0 18px 60px rgba(5, 3, 15, 0.32);
}

.page-preloader-kicker {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.76);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.page-preloader-logo-shell {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(128px, 18vw, 220px);
    aspect-ratio: 1;
}

.page-preloader-logo-shell::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 190, 72, 0.28), rgba(240, 78, 152, 0.12) 44%, rgba(255, 255, 255, 0) 72%);
    filter: blur(12px);
}

.page-preloader-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 48px rgba(8, 4, 18, 0.42));
}

.page-preloader-core strong {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 3.35rem);
    line-height: 0.94;
    max-width: 15ch;
}

.page-preloader-author {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.68);
}

.page-preloader-author::before {
    content: '•';
    display: inline-block;
    margin-right: 0.55rem;
    color: rgba(255,255,255,0.42);
}

.page-preloader-line {
    width: min(260px, 52vw);
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.95), rgba(255,255,255,0));
    position: relative;
    overflow: hidden;
}

.page-preloader-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(244,190,72,0.95), rgba(255,255,255,0));
    animation: progressGlow 1.2s ease-in-out infinite;
}

.home-premium-page header,
.home-premium-page .hero-shell > * {
    transition: opacity 0.9s ease, transform 1s cubic-bezier(0.18, 0.82, 0.2, 1), filter 1s ease;
}

.content-page,
.auth-page,
.booking-page {
    background:
        radial-gradient(circle at top left, rgba(255, 211, 125, 0.14), transparent 22%),
        radial-gradient(circle at 86% 18%, rgba(91, 61, 245, 0.08), transparent 24%),
        linear-gradient(180deg, #f8f5ff, #fbfbfe 28%, #f6f2ff 100%);
}

.content-page > *:not(.page-atmosphere),
.auth-page > *:not(.page-atmosphere),
.booking-page > *:not(.page-atmosphere) {
    position: relative;
    z-index: 1;
}

.luxe-surface {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.luxe-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255,0.26), rgba(255,255,255,0.04) 38%, rgba(255,255,255,0));
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

.luxe-surface::after {
    content: '';
    position: absolute;
    top: -130%;
    left: -55%;
    width: 44%;
    height: 280%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.38), rgba(255,255,255,0));
    transform: rotate(18deg);
    opacity: 0;
    pointer-events: none;
}

.luxe-surface:hover::after,
.luxe-surface:focus-within::after {
    animation: luxeSweep 1.45s ease forwards;
    animation-delay: var(--luxe-delay, 0ms);
}

@keyframes luxeSweep {
    0% {
        transform: translate3d(0, 0, 0) rotate(18deg);
        opacity: 0;
    }
    20% {
        opacity: 0.28;
    }
    100% {
        transform: translate3d(340%, 0, 0) rotate(18deg);
        opacity: 0;
    }
}

.content-page .card,
.content-page .dashboard-resource-card,
.content-page .editorial-hero,
.content-page .premium-client-card,
.content-page .content-hero,
.auth-page .auth-card,
.auth-page .auth-story,
.booking-page .card,
.booking-page .video-card {
    border: 1px solid rgba(143, 122, 198, 0.18);
    box-shadow: 0 20px 48px rgba(79, 48, 134, 0.12), inset 0 1px 0 rgba(255,255,255,0.45);
    backdrop-filter: blur(10px);
}

.content-page .section,
.auth-page .auth-shell,
.booking-page .video-page {
    animation: sectionVeil 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-premium-page.is-preloading header {
    opacity: 0;
    transform: translateY(-18px);
}

.home-premium-page.is-preloading .hero-copy {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 48px, 0) scale(0.98);
}

.home-premium-page.is-preloading .hero-visual {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(18px, 54px, 0) scale(0.96);
}

.home-premium-page.is-loaded .page-preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: var(--page-preloader-exit-delay);
}

.home-premium-page.is-loaded .page-preloader-core {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.home-premium-page.is-loaded .page-preloader-door-left {
    transform: translateX(-108%);
}

.home-premium-page.is-loaded .page-preloader-door-right {
    transform: translateX(108%);
}

.home-premium-page.is-loaded header,
.home-premium-page.is-loaded .hero-copy,
.home-premium-page.is-loaded .hero-visual {
    opacity: 1;
    filter: blur(0);
}

.cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transform: translate3d(-999px, -999px, 0);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 22%, rgba(240, 78, 152, 0.12) 42%, rgba(91, 61, 245, 0.06) 60%, rgba(91, 61, 245, 0) 74%);
    mix-blend-mode: screen;
    filter: blur(10px);
    animation: auraPulse 3.2s ease-in-out infinite;
}

.hero-cinematic {
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-cinematic-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.92;
}

.cinematic-orb,
.cinematic-beam,
.cinematic-grain {
    position: absolute;
}

.cinematic-orb {
    width: 34vw;
    height: 34vw;
    min-width: 280px;
    min-height: 280px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.42;
    animation: cinematicOrb 14s ease-in-out infinite;
}

.cinematic-orb-one {
    top: -8%;
    right: -8%;
    background: radial-gradient(circle, rgba(244, 190, 72, 0.34), rgba(244, 190, 72, 0));
}

.cinematic-orb-two {
    left: -10%;
    bottom: -12%;
    animation-delay: 2.8s;
    background: radial-gradient(circle, rgba(240, 78, 152, 0.22), rgba(91, 61, 245, 0));
}

.cinematic-beam {
    width: 24vw;
    min-width: 220px;
    height: 120%;
    top: -10%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
    filter: blur(4px);
    mix-blend-mode: screen;
    animation: cinematicBeam 12s ease-in-out infinite;
}

.cinematic-beam-one {
    left: 56%;
    transform: rotate(10deg);
}

.cinematic-beam-two {
    left: 72%;
    animation-delay: 2s;
    transform: rotate(-8deg);
}

.cinematic-grain {
    inset: -20%;
    opacity: 0.08;
    background-image: radial-gradient(rgba(255,255,255,0.7) 0.55px, transparent 0.55px);
    background-size: 14px 14px;
    mix-blend-mode: soft-light;
    animation: cinematicGrain 0.45s steps(2) infinite;
}

.hero-shell > * {
    position: relative;
}

.quote-ribbon {
    margin-top: 2rem;
    max-width: 560px;
}

.premium-cta,
.action-cta {
    will-change: transform;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.2rem 0 0;
    max-width: 680px;
}

.hero-metric-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 40px rgba(14, 8, 33, 0.14);
    backdrop-filter: blur(16px);
}

.hero-metric-card::after {
    content: '';
    position: absolute;
    inset: -120% auto auto -40%;
    width: 44%;
    height: 280%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.24), rgba(255,255,255,0));
    transform: rotate(18deg);
    opacity: 0;
}

.hero-metric-card:hover::after {
    opacity: 1;
    animation: sheenSweep 0.95s ease;
}

.hero-metric-value,
.hero-metric-label {
    display: block;
}

.hero-metric-value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 0.9;
    color: #fff;
}

.hero-metric-label {
    margin-top: 0.45rem;
    color: rgba(255,255,255,0.74);
    font-size: 0.92rem;
    max-width: 22ch;
}

.hero-cinematic-note {
    margin-top: 1rem;
    margin-left: auto;
    max-width: 360px;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    box-shadow: 0 22px 40px rgba(14, 8, 33, 0.18);
}

.hero-cinematic-note-label {
    display: inline-flex;
    margin-bottom: 0.65rem;
    color: rgba(255,255,255,0.62);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-cinematic-note strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.45;
}

.section-transition {
    position: relative;
    isolation: isolate;
}

.section-transition::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
    opacity: 0;
    pointer-events: none;
}

.section-transition.fade-in::before {
    animation: sectionVeil 1s ease both;
}

.memory-depth-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(244, 190, 72, 0.12), transparent 18%),
        radial-gradient(circle at 82% 26%, rgba(240, 78, 152, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(30, 14, 55, 0.98), rgba(18, 9, 33, 1));
    color: #fff;
}

.memory-depth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
    pointer-events: none;
}

.memory-depth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
    gap: clamp(1.8rem, 4vw, 4rem);
    align-items: start;
}

.memory-depth-copy {
    position: sticky;
    top: 7.5rem;
    display: grid;
    gap: 1.35rem;
}

.memory-depth-copy h2 {
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 0.95;
}

.memory-depth-copy p {
    color: rgba(255,255,255,0.78);
    max-width: 46ch;
}

.memory-depth-notes {
    display: grid;
    gap: 0.85rem;
}

.memory-depth-note {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
}

.memory-depth-note strong,
.memory-depth-note span {
    display: block;
}

.memory-depth-note strong {
    margin-bottom: 0.35rem;
    color: #fff6dc;
}

.memory-depth-note span {
    color: rgba(255,255,255,0.74);
}

.memory-depth-stage {
    min-height: 185vh;
}

.memory-depth-sticky {
    position: sticky;
    top: 6rem;
    height: calc(100vh - 7rem);
    display: grid;
    place-items: center;
}

.memory-depth-scene {
    --depth-progress: 0;
    --depth-tilt: 0deg;
    position: relative;
    width: min(100%, 780px);
    height: min(76vh, 720px);
    perspective: 1600px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
}

.depth-orbit {
    position: absolute;
    inset: 12% 9%;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    transform-style: preserve-3d;
}

.depth-orbit-one {
    transform: rotateX(76deg) rotateZ(calc(8deg + var(--depth-progress) * 20deg));
    opacity: 0.45;
}

.depth-orbit-two {
    inset: 20% 16%;
    border-color: rgba(244, 190, 72, 0.18);
    transform: rotateX(78deg) rotateZ(calc(-12deg - var(--depth-progress) * 16deg));
    opacity: 0.34;
}

.depth-plane {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100%, 470px);
    padding: 1.4rem 1.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    box-shadow: 0 34px 80px rgba(10, 4, 21, 0.34);
    backdrop-filter: blur(16px);
    transform-style: preserve-3d;
}

.depth-plane-kicker {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.depth-plane h3 {
    color: #fff;
    font-size: clamp(1.8rem, 2.7vw, 2.6rem);
    line-height: 0.96;
}

.depth-plane p {
    margin-top: 0.8rem;
    color: rgba(255,255,255,0.78);
}

.depth-plane-back {
    background: linear-gradient(180deg, rgba(69, 49, 124, 0.28), rgba(255,255,255,0.05));
    transform: translate3d(-50%, calc(-50% + 10px), -220px) rotateX(74deg) rotateZ(-16deg) scale(0.88);
}

.depth-plane-mid {
    background: linear-gradient(180deg, rgba(240, 78, 152, 0.18), rgba(255,255,255,0.07));
    transform: translate3d(-50%, -50%, -60px) rotateX(58deg) rotateZ(8deg) scale(0.95);
}

.depth-plane-front {
    background: linear-gradient(180deg, rgba(244, 190, 72, 0.18), rgba(255,255,255,0.08));
    transform: translate3d(-50%, calc(-50% + 34px), 110px) rotateX(40deg) rotateZ(-6deg);
}

.depth-core-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    height: 42%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.34), rgba(244,190,72,0.14) 34%, rgba(240,78,152,0.08) 54%, rgba(255,255,255,0) 72%);
    filter: blur(16px);
    transform: translate(-50%, -50%) translateZ(calc(60px + var(--depth-progress) * 60px));
}

.memory-depth-scene.is-ready .depth-plane-back {
    transform: translate3d(-50%, calc(-50% + 10px + var(--depth-progress) * -32px), calc(-220px + var(--depth-progress) * -60px)) rotateX(calc(74deg - var(--depth-progress) * 10deg)) rotateY(calc(var(--depth-tilt) * 0.45)) rotateZ(calc(-16deg + var(--depth-progress) * 10deg)) scale(calc(0.88 + var(--depth-progress) * 0.05));
}

.memory-depth-scene.is-ready .depth-plane-mid {
    transform: translate3d(-50%, calc(-50% + var(--depth-progress) * -18px), calc(-60px + var(--depth-progress) * 90px)) rotateX(calc(58deg - var(--depth-progress) * 18deg)) rotateY(calc(var(--depth-tilt) * 0.7)) rotateZ(calc(8deg - var(--depth-progress) * 14deg)) scale(calc(0.95 + var(--depth-progress) * 0.04));
}

.memory-depth-scene.is-ready .depth-plane-front {
    transform: translate3d(-50%, calc(-50% + 34px + var(--depth-progress) * -64px), calc(110px + var(--depth-progress) * 180px)) rotateX(calc(40deg - var(--depth-progress) * 24deg)) rotateY(calc(var(--depth-tilt) * 0.95)) rotateZ(calc(-6deg + var(--depth-progress) * 6deg));
}

.home-preview-card-featured .home-preview-image {
    transition: transform 1.1s ease;
}

.home-preview-card-featured:hover .home-preview-image {
    transform: scale(1.05);
}

.ui-ripple,
.ui-spark {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 32;
}

.ui-ripple {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 0 0 1px rgba(244, 190, 72, 0.16), 0 0 24px rgba(255, 255, 255, 0.18);
    animation: rippleBurst 850ms cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

.ui-spark {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(244,190,72,0.88));
    box-shadow: 0 0 18px rgba(255,255,255,0.42);
    animation: sparkFly 760ms ease-out forwards;
}

@media (max-width: 920px) {
    .hero-cinematic {
        min-height: auto;
    }

    .quote-ribbon {
        margin-top: 1.4rem;
    }
}

@media (pointer: coarse) {
    .cursor-aura,
    .ui-ripple,
    .ui-spark {
        display: none;
    }
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(240, 78, 152, 0.15), transparent 28%),
        radial-gradient(circle at top right, rgba(91, 61, 245, 0.18), transparent 30%),
        linear-gradient(180deg, #fbf8ff 0%, #f6f7ff 44%, #ffffff 100%);
    color: var(--secondary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

.auth-page,
.booking-page,
.admin-premium-page {
    position: relative;
    overflow-x: hidden;
}

.auth-orb,
.booking-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    overflow-x: hidden;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

.auth-orb-one,
.booking-orb-one {
    top: -90px;
    left: -60px;
    background: radial-gradient(circle, rgba(240,78,152,0.65), rgba(240,78,152,0.08) 70%);
}

.auth-orb-two,
.booking-orb-two {
    right: -80px;
    bottom: 0;
    background: radial-gradient(circle, rgba(91,61,245,0.55), rgba(91,61,245,0.06) 68%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.9fr);
    gap: 2rem;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.auth-shell-register {
    grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1fr);
}

.auth-story {
    padding: 2rem;
    border-radius: 36px;
    box-shadow: var(--shadow-xl);
}

.auth-story h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.98;
    color: #fff;
    max-width: 10ch;
}

.auth-story p {
    color: rgba(255,255,255,0.86);
    max-width: 52ch;
}

.auth-seal {
    width: 96px;
    height: 96px;
    margin-bottom: 1.2rem;
    border-radius: 28px;
}

.auth-seal-lockup {
    width: min(220px, 72%);
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 18px 32px rgba(17, 10, 31, 0.2));
}

.auth-seal-large {
    width: 120px;
    height: 120px;
}

.auth-quote {
    margin: 1.6rem 0 0 0;
    padding: 1.2rem 1.3rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.92);
}

.auth-card {
    border-radius: 36px;
    padding: 2.2rem;
    position: relative;
    z-index: 1;
}

.auth-card-wide {
    max-width: 620px;
}

.auth-card-top {
    margin-bottom: 1.4rem;
}

.auth-card-top h2 {
    font-family: var(--font-display);
    font-size: 3rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(240,78,152,0.12), rgba(91,61,245,0.12));
    color: #5a4487;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.auth-alert {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.auth-alert-error {
    background: rgba(255, 232, 236, 0.96);
    color: #962d44;
}

.auth-alert-success {
    background: rgba(230, 252, 239, 0.96);
    color: #1d7048;
}

.auth-submit {
    margin-top: 0.75rem;
    min-height: 58px;
}

.auth-links-row {
    margin-bottom: 0;
}

.auth-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.booking-luxury-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.booking-side-panel {
    border-radius: 36px;
    padding: 2rem;
    position: sticky;
    top: 110px;
    box-shadow: var(--shadow-xl);
}

.booking-side-panel h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
}

.booking-side-panel p,
.booking-side-points span {
    color: rgba(255,255,255,0.84);
}

.booking-side-points {
    display: grid;
    gap: 1rem;
    margin: 1.4rem 0;
}

.booking-side-points strong,
.booking-side-points span {
    display: block;
}

.booking-side-points strong {
    color: #fff;
    margin-bottom: 0.2rem;
}

.booking-side-image {
    width: 100%;
    border-radius: 28px;
    margin-top: 1rem;
    background: rgba(255,255,255,0.08);
}

.booking-luxury-card {
    box-shadow: var(--shadow-xl);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250,247,255,0.97));
}

.booking-intro {
    margin-bottom: 1rem;
}

.admin-hero-band {
    padding: 1.5rem 0 0;
}

.admin-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 34px;
    box-shadow: var(--shadow-xl);
}

.admin-hero-card h1 {
    font-family: var(--font-display);
    font-size: 3.7rem;
    line-height: 0.98;
    color: #fff;
    max-width: 12ch;
}

.admin-hero-card p {
    color: rgba(255,255,255,0.84);
    max-width: 56ch;
}

.admin-hero-art img {
    width: 100%;
    border-radius: 30px;
}

.premium-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.premium-client-card {
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(246,241,255,0.96));
    border: 1px solid rgba(116, 89, 190, 0.12);
    box-shadow: var(--shadow-md);
}

.premium-client-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.premium-client-top h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.3rem;
}

.premium-client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d28d9, #f04e98);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(91,61,245,0.22);
}

.premium-client-meta {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: #60597a;
    font-weight: 600;
}

/* Typography */
h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.hero h1,
.hero-cinematic-note strong,
.content-hero h1,
.content-hero h2,
.editorial-hero h1,
.editorial-hero h2,
.editorial-hero-simple h1,
.editorial-hero-simple h2,
.section-heading h2,
.auth-story h1,
.admin-hero-card h1,
.reader-detail h1,
.reader-detail h2,
.reader-question-panel h2,
.reader-answer-panel h2 {
    background-size: 220% 220%;
    animation: gradientTextShift 14s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero h1,
.hero-cinematic-note strong,
.auth-story h1,
.admin-hero-card h1 {
    background-image: linear-gradient(120deg, #ffffff 0%, #ffe4a6 18%, #ffffff 35%, #ffc2de 54%, #cabdff 76%, #ffffff 100%);
    color: transparent;
}

.content-hero h1,
.content-hero h2,
.editorial-hero h1,
.editorial-hero h2,
.editorial-hero-simple h1,
.editorial-hero-simple h2,
.section-heading h2,
.reader-detail h1,
.reader-detail h2,
.reader-question-panel h2,
.reader-answer-panel h2 {
    background-image: linear-gradient(125deg, #2b2143 0%, #6d40b4 22%, #f04e98 48%, #5b3df5 72%, #241738 100%);
    color: transparent;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform: translateY(0);
}

.btn::after {
    content: '';
    position: absolute;
    inset: -28%;
    background: radial-gradient(circle at calc(50% + (var(--motion-pointer-x, 0) * 160px)) calc(50% + (var(--motion-pointer-y, 0) * 120px)), rgba(255,255,255,0.26), rgba(255,255,255,0.08) 22%, rgba(255,255,255,0) 44%);
    opacity: 0.52;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: buttonGlowPulse 5.8s ease-in-out infinite;
    z-index: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -40%;
    width: 36%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.36), rgba(255,255,255,0));
    transform: translateX(-220%) skewX(-24deg);
    pointer-events: none;
    z-index: 0;
}

.btn:hover::before,
.btn:focus-visible::before {
    animation: sheenSweep 0.95s ease;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), #d93b87);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn:hover::after,
.btn:focus-visible::after {
    opacity: 0.92;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--secondary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--secondary);
    color: var(--secondary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--primary);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(130, 109, 189, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    transition: all 0.35s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(54, 38, 90, 0.08);
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.72rem 0;
    gap: 1rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.logo > div {
    display: grid;
    gap: 0.1rem;
}

.brand-lockup-image {
    display: block;
    width: clamp(92px, 10.5vw, 136px);
    height: auto;
    animation: logoFloat 6s ease-in-out infinite, logoHalo 7s ease-in-out infinite;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(78, 48, 148, 0.18);
    animation: logoFloat 6s ease-in-out infinite, logoHalo 7s ease-in-out infinite;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7d7198;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.35rem;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn) {
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.28rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(244,190,72,0.85), rgba(91,61,245,0.95));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-account-link {
    justify-content: center;
    white-space: nowrap;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn):focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
    border-radius: 18px;
    border: 1px solid rgba(130, 109, 189, 0.22);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #3c2b5a;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 6.5rem 0 5rem;
    text-align: left;
    background:
        radial-gradient(circle at top left, rgba(252, 184, 90, 0.24), transparent 24%),
        radial-gradient(circle at 80% 20%, rgba(240, 78, 152, 0.18), transparent 18%),
        linear-gradient(135deg, rgba(36, 11, 58, 0.96), rgba(68, 23, 92, 0.9) 55%, rgba(24, 44, 79, 0.9));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 55% 24%, rgba(255,255,255,0.12), rgba(43, 11, 68, 0.12) 35%, rgba(15, 9, 32, 0.42));
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -10% -8%;
    background:
        radial-gradient(circle at calc(45% + var(--hero-glow-x, 0px)) calc(32% + var(--hero-glow-y, 0px)), rgba(255,255,255,0.18), transparent 22%),
        radial-gradient(circle at 18% 78%, rgba(244,190,72,0.2), transparent 20%),
        radial-gradient(circle at 82% 30%, rgba(240,78,152,0.16), transparent 18%);
    animation: auroraShift 18s ease-in-out infinite;
    pointer-events: none;
}

.hero-shell::before,
.hero-shell::after {
    content: '';
    position: absolute;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

.hero-shell::before {
    top: -12%;
    right: -6%;
    width: clamp(220px, 28vw, 420px);
    height: clamp(220px, 28vw, 420px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.14), rgba(244, 190, 72, 0.16) 24%, rgba(255,255,255,0) 64%);
    filter: blur(10px);
    animation: spectraDrift 14s ease-in-out infinite;
}

.hero-shell::after {
    top: -22%;
    left: 42%;
    width: 22%;
    height: 150%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.18), rgba(255,255,255,0));
    mix-blend-mode: screen;
    opacity: 0.22;
    transform: rotate(16deg);
    animation: beamTraverse 7.6s ease-in-out infinite;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.hero-copy {
    transform: translate3d(var(--hero-copy-x, 0px), var(--hero-copy-y, 0px), 0);
}

.hero-visual {
    transform: translate3d(var(--hero-visual-x, 0px), var(--hero-visual-y, 0px), 0);
}

.hero h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.98;
    max-width: 9ch;
    animation: fadeInUp 0.8s ease-out both;
}

.home-premium-page .hero h1 {
    background-image: linear-gradient(120deg, #ffffff 0%, #ffe29e 20%, #ffffff 36%, #ffcade 54%, #bfd1ff 74%, #ffffff 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.8s ease-out both, gradientTextShift 13s linear infinite, trailerTitlePulse 6.2s ease-in-out infinite;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
    max-width: 56ch;
    animation: fadeInUp 1s ease-out both;
}

.home-premium-page .hero::after {
    background:
        radial-gradient(circle at calc(52% + (var(--motion-pointer-x, 0) * 120px)) calc(24% + (var(--motion-pointer-y, 0) * 60px)), rgba(255,255,255,0.16), rgba(43, 11, 68, 0.1) 32%, rgba(15, 9, 32, 0.48)),
        linear-gradient(125deg, rgba(255,255,255,0), rgba(255,255,255,0.08), rgba(255,255,255,0));
    background-size: auto, 180% 100%;
    animation: gradientTextShift 16s linear infinite;
}

.home-premium-page .hero::before {
    filter: saturate(1.12);
}

.home-premium-page .hero-shell {
    perspective: 1400px;
}

.home-premium-page .hero-copy,
.home-premium-page .hero-visual {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.home-premium-page .hero-copy {
    filter: drop-shadow(0 24px 44px rgba(11, 7, 29, 0.18));
}

.home-premium-page .hero-visual {
    filter: drop-shadow(0 30px 58px rgba(11, 7, 29, 0.26));
}

.home-premium-page .hero-shell::before,
.home-premium-page .hero-shell::after {
    opacity: 0.26;
}

.home-premium-page .hero-shell::after {
    animation: trailerSectionSweep 7.2s ease-in-out infinite;
}

.home-premium-page .section {
    position: relative;
    overflow: hidden;
}

.home-premium-page .section::before,
.home-premium-page .section::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.home-premium-page .section::before {
    top: -34%;
    bottom: -34%;
    left: -18%;
    width: 22%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.14), rgba(255,255,255,0));
    transform: rotate(16deg);
    opacity: 0.12;
    animation: trailerSectionSweep 10s ease-in-out infinite;
}

.home-premium-page .section::after {
    width: clamp(180px, 22vw, 340px);
    aspect-ratio: 1;
    right: -8%;
    top: -12%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(244, 190, 72, 0.12) 22%, rgba(255,255,255,0) 62%);
    filter: blur(8px);
    animation: trailerOrbBreathe 11s ease-in-out infinite;
}

.home-premium-page .section:nth-of-type(2n)::before {
    animation-delay: 1.8s;
}

.home-premium-page .section:nth-of-type(2n)::after {
    left: -8%;
    right: auto;
    background: radial-gradient(circle, rgba(255,255,255,0.16), rgba(240, 78, 152, 0.12) 22%, rgba(255,255,255,0) 62%);
    animation-delay: 2.4s;
}

.hero-buttons .btn {
    animation: fadeInUp 1.2s ease-out both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 245, 221, 0.94);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading {
    position: relative;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: clamp(86px, 14vw, 160px);
    height: 2px;
    margin-top: 1.15rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(91, 61, 245, 0.14), rgba(240, 78, 152, 0.9), rgba(244, 190, 72, 0.48), rgba(255,255,255,0));
    background-size: 200% 100%;
    animation: gradientTextShift 9s linear infinite;
}

.section-lead {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.05rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.8rem 0 2rem;
}

.hero-badges span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.92rem;
    animation: badgeBob 7.5s ease-in-out infinite;
}

.hero-badges span:nth-child(2) {
    animation-delay: 1.1s;
}

.hero-badges span:nth-child(3) {
    animation-delay: 2.2s;
}

.quote-ribbon {
    margin-top: 1.8rem;
    padding: 1.2rem 1.35rem;
    border-radius: 28px;
    max-width: 520px;
    box-shadow: 0 18px 40px rgba(13, 9, 33, 0.18);
}

.quote-ribbon p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.quote-ribbon cite {
    display: block;
    margin-top: 0.6rem;
    color: rgba(255,255,255,0.72);
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.tree-seal {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.tree-seal::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -40px;
    top: -58px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 221, 126, 0.28), rgba(255, 221, 126, 0));
    pointer-events: none;
}

.tree-seal strong,
.tree-seal span {
    position: relative;
    z-index: 1;
    display: block;
}

.tree-seal span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.tree-seal-logo {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    animation: logoFloat 7s ease-in-out infinite, logoHalo 8s ease-in-out infinite;
}

.tree-seal-lockup {
    width: clamp(96px, 14vw, 126px);
    height: auto;
}

.family-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: stretch;
}

.mosaic-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 60px rgba(12, 10, 29, 0.22);
    min-height: 220px;
    animation: floatDrift 8s ease-in-out infinite;
}

.mosaic-card:nth-child(2) { animation-delay: 1.2s; }
.mosaic-card:nth-child(3) { animation-delay: 2.4s; }

@keyframes floatDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mosaic-large {
    grid-row: span 2;
    min-height: 560px;
}

.mosaic-quote {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mosaic-quote span {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    color: rgba(255, 240, 205, 0.72);
    margin-bottom: 0.75rem;
}

.mosaic-quote h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin: 0;
}

.mosaic-small {
    min-height: 250px;
}

.soft-band {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
}

.values-strip {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.value-pill {
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(124, 97, 196, 0.14);
    box-shadow: var(--shadow-sm);
    color: #473b69;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: badgeBob 8s ease-in-out infinite;
}

.value-pill:nth-child(2n) {
    animation-delay: 1.25s;
}

.value-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.story-section {
    position: relative;
}

.story-grid {
    align-items: center;
}

.story-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,247,255,0.94));
    border: 1px solid rgba(124, 97, 196, 0.12);
    border-radius: 34px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.story-photo img {
    width: 100%;
    height: 100%;
    display: block;
}

.story-copy {
    padding: 2.25rem;
}

.story-copy h2,
.quote-card p,
.contact-side-note p {
    font-family: var(--font-display);
}

.story-points {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.story-point {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(246, 242, 255, 0.92);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.story-point:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(89, 66, 143, 0.12);
}

.story-point strong,
.story-point span {
    display: block;
}

.story-point span {
    margin-top: 0.35rem;
    color: #665e80;
}

.quote-section {
    position: relative;
    overflow: hidden;
}

.quote-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.quote-card {
    margin: 0;
    padding: 2rem;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(250, 246, 255, 0.95));
    border: 1px solid rgba(122, 98, 196, 0.14);
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.quote-card:hover {
    transform: translateY(-8px) rotate(-0.4deg);
    box-shadow: var(--shadow-lg);
}

.quote-card p {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.14;
    color: #342a4e;
}

.quote-card cite {
    display: block;
    margin-top: 1rem;
    color: #7a6d8f;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.quote-card-accent {
    background: linear-gradient(145deg, #34205f, #6d28d9 70%, #ea4d95);
}

.quote-card-accent p,
.quote-card-accent cite {
    color: #fff;
}

.contact-side-note {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-side-note img {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
}

.contact-note-logo {
    width: 108px !important;
    height: auto !important;
}

.contact-side-note p {
    margin: 0;
    font-size: 1.35rem;
    color: #3d325e;
}

/* Cards */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,247,255,0.96));
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.35s ease, transform 0.35s ease;
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
    opacity: 1;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.interactive-surface {
    position: relative;
}

.interactive-surface::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,255,255,0.28), transparent 34%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.interactive-surface:hover::after {
    opacity: 1;
}

.motion-layer {
    --motion-progress: 0;
    --motion-depth: 1;
    --motion-shift-distance: 16px;
    --tilt-rotate-x: 0deg;
    --tilt-rotate-y: 0deg;
    --tilt-shift-x: 0px;
    --tilt-shift-y: 0px;
    --shine-x: 50%;
    --shine-y: 50%;
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
    will-change: transform, translate, rotate, box-shadow, filter;
    translate: calc(var(--tilt-shift-x) + (var(--motion-progress) * var(--motion-shift-distance) * -0.34)) calc(var(--tilt-shift-y) + (var(--motion-progress) * 12px));
    rotate: x var(--tilt-rotate-x) y var(--tilt-rotate-y);
    transition: translate 0.78s cubic-bezier(0.2, 0.82, 0.2, 1), rotate 0.78s cubic-bezier(0.2, 0.82, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
}

.motion-layer > :not(.motion-layer-glow) {
    position: relative;
    z-index: 1;
}

.motion-layer-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,0.34), rgba(244, 190, 72, 0.12) 22%, rgba(240, 78, 152, 0.08) 34%, rgba(255,255,255,0) 58%);
    opacity: 0.24;
    transform: translate3d(calc(var(--tilt-shift-x) * 0.22), calc(var(--tilt-shift-y) * 0.22), 0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.motion-layer.is-motion-visible {
    filter: saturate(1.02);
}

.motion-layer.is-tilting .motion-layer-glow,
.motion-layer:hover .motion-layer-glow,
.motion-layer:focus-within .motion-layer-glow {
    opacity: 0.82;
}

.scroll-spectra {
    --section-progress: 0;
    --spectra-delay: 0ms;
    --spectra-shift: 0%;
    position: relative;
    overflow: hidden;
}

.scroll-spectra > :not(.scroll-spectra-orb):not(.scroll-spectra-beam) {
    position: relative;
    z-index: 1;
}

.scroll-spectra-orb,
.scroll-spectra-beam {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.scroll-spectra-orb {
    top: -14%;
    right: calc(-6% + var(--spectra-shift));
    width: clamp(160px, 24vw, 320px);
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.22), rgba(244, 190, 72, 0.18) 26%, rgba(240, 78, 152, 0.12) 42%, rgba(255,255,255,0) 70%);
    filter: blur(8px);
    opacity: calc(0.14 + (var(--section-progress) * 0.56));
    transform: translate3d(calc(var(--motion-pointer-x, 0) * 36px), calc((var(--section-progress) - 0.5) * -32px), 0) scale(calc(0.88 + (var(--section-progress) * 0.34)));
    animation: spectraDrift 12s ease-in-out infinite;
    animation-delay: var(--spectra-delay);
}

.scroll-spectra-beam {
    top: -36%;
    left: -24%;
    width: 30%;
    height: 190%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    mix-blend-mode: screen;
    opacity: calc(0.04 + (var(--section-progress) * 0.24));
    transform: translate3d(calc((var(--motion-pointer-x, 0) * 24px) - 12%), 0, 0) rotate(18deg);
    animation: beamTraverse 9.8s ease-in-out infinite;
    animation-delay: var(--spectra-delay);
}

.scroll-spectra.is-spectra-visible .scroll-spectra-orb,
.scroll-spectra.is-spectra-visible .scroll-spectra-beam {
    opacity: max(0.12, calc(0.12 + (var(--section-progress) * 0.62)));
}

.card.fade-in {
    transform: translateY(0);
    opacity: 1;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(91, 61, 245, 0.32);
    transform: translateY(-8px) scale(1.012);
}

.card-icon {
    width: 56px;
    height: 56px;
    background-color: #f2f0fc;
    color: #643f8d;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2a0f52, #3f186d);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 1.75rem;
    text-align: center;
    color: #d8c8f0;
}

.alert {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.25rem;
    z-index: 1500;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    color: var(--white);
    animation: fadeInUp 0.4s ease-out;
}

.alert-success {
    background: rgba(15, 143, 86, 0.95);
}

.alert-error {
    background: rgba(227, 66, 52, 0.95);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--gray);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--gray); }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .section { padding: 2rem 0; }
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }

    .nav-links { gap: 1rem; }
    .hero-shell,
    .quote-wall,
    .family-mosaic,
    .story-grid,
    .auth-shell,
    .booking-luxury-layout,
    .admin-hero-card,
    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .hero h1 { font-size: 3.1rem; max-width: 100%; }
    .mosaic-large { min-height: 340px; }
    .tree-seal { margin-left: 0; }
    .quote-card p { font-size: 1.35rem; }
    .contact-side-note { flex-direction: column; align-items: flex-start; }
    .brand-subtitle { display: none; }
    .auth-story h1,
    .admin-hero-card h1 { font-size: 2.7rem; max-width: 100%; }
    .booking-side-panel { position: static; }

    .container { padding: 0 1rem; }

    .page-preloader-core strong {
        max-width: 14ch;
    }

    .page-preloader-logo-shell {
        width: 132px;
    }

    .page-preloader-author {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
    }

    .memory-depth-section {
        padding-top: 3.2rem;
    }

    .memory-depth-copy h2 {
        font-size: 2.2rem;
    }

    .memory-depth-stage {
        min-height: auto;
    }

    .memory-depth-sticky {
        position: relative;
        top: auto;
        height: auto;
    }

    .memory-depth-scene {
        height: 420px;
        margin-top: 0.8rem;
    }

    .hero-constellation-canvas {
        opacity: 0.66;
    }

    .depth-plane {
        width: calc(100% - 1.2rem);
        padding: 1rem 1rem 1.1rem;
        border-radius: 24px;
    }

    .depth-plane h3 {
        font-size: 1.5rem;
    }

    .depth-plane p {
        font-size: 0.95rem;
    }
}

.mobile-access-strip {
    display: none;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: inline-flex;
    }

    .mobile-access-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
        margin-top: 0.85rem;
    }

    .mobile-access-strip .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    nav {
        padding: 0.9rem 0;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-lockup-image {
        width: clamp(70px, 20vw, 92px);
        flex: 0 0 auto;
    }

    .brand-name {
        font-size: 1.18rem;
        white-space: normal;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        right: 0;
        z-index: 1002;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(130, 109, 189, 0.18);
        box-shadow: 0 20px 48px rgba(43, 28, 74, 0.18);
        backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        max-height: calc(100vh - 110px);
        overflow: auto;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 0.95rem 1rem;
        border-radius: 16px;
    }

    .nav-links a:not(.btn) {
        background: rgba(246, 242, 255, 0.84);
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .nav-links a.btn {
        width: 100%;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 920px), (pointer: coarse) {
    body.is-preloading {
        overflow: auto;
    }

    .page-preloader,
    .cursor-aura,
    .hero-constellation-canvas,
    .cinematic-beam,
    .cinematic-grain,
    .page-atmosphere,
    .home-premium-page .section::before,
    .home-premium-page .section::after,
    .home-premium-page .hero-shell::before,
    .home-premium-page .hero-shell::after {
        display: none !important;
    }

    .home-premium-page::before {
        opacity: 0.45;
        background:
            radial-gradient(circle at 20% 16%, rgba(244, 190, 72, 0.09), transparent 20%),
            radial-gradient(circle at 82% 22%, rgba(240, 78, 152, 0.08), transparent 20%),
            radial-gradient(circle at 50% 74%, rgba(91, 61, 245, 0.08), transparent 24%);
    }

    .home-premium-page .hero,
    .home-premium-page .hero::before,
    .home-premium-page .hero::after,
    .home-premium-page .hero-copy,
    .home-premium-page .hero-visual,
    .home-premium-page .brand-lockup-image,
    .home-premium-page .mosaic-card,
    .home-premium-page .quote-ribbon,
    .home-premium-page .memory-depth-scene,
    .home-premium-page .scroll-spectra-orb,
    .home-premium-page .scroll-spectra-beam {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }

    .hero {
        padding: 4.2rem 0 3.1rem;
    }

    .hero-shell {
        gap: 1.6rem;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 9vw, 4rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-badges {
        gap: 0.55rem;
    }

    .hero-badges span {
        padding: 0.55rem 0.8rem;
    }

    .memory-depth-shell {
        grid-template-columns: 1fr;
    }

    .memory-depth-copy {
        position: static;
    }

    .memory-depth-scene {
        height: 340px;
    }
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Transitions */
* {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Calendar Styles */
.calendar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, #643f8d, #8b5fb5);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 63, 141, 0.3);
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f9f7fc;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.calendar-day:hover {
    background: linear-gradient(135deg, #643f8d, #8b5fb5);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(100, 63, 141, 0.3);
}

.calendar-day.has-appointment {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #643f8d, #8b5fb5);
    color: white;
    box-shadow: 0 10px 30px rgba(100, 63, 141, 0.4);
}

.calendar-day-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.calendar-day-number {
    font-size: 1.25rem;
}

.calendar-day-appointments {
    font-size: 0.6rem;
    margin-top: 0.25rem;
    color: #f44336;
    font-weight: 700;
}

/* Appointment List */
.appointment-list {
    display: grid;
    gap: 1rem;
}

.appointment-item {
    background: linear-gradient(135deg, #f5f0ff, #fff5f9);
    border-left: 4px solid #643f8d;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appointment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.appointment-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(100, 63, 141, 0.2);
    border-left-color: #8b5fb5;
}

.appointment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.appointment-item-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #643f8d;
}

.appointment-item-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: white;
    color: #643f8d;
}

.appointment-item-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.appointment-item-status.pending {
    background: #fff3cd;
    color: #856404;
}

.appointment-item-client {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 63, 141, 0.1);
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #643f8d, #8b5fb5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.client-info {
    flex: 1;
}

.client-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.client-email {
    font-size: 0.9rem;
    color: #999;
}

.appointment-item-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.95rem;
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

/* Modal/Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    animation: slideInRight 0.3s ease, slideInRight 0.3s ease 2.7s reverse;
    border-left: 4px solid #643f8d;
    max-width: 350px;
}

.notification.success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.notification.error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.notification.info {
    border-left-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

/* Content Hubs */
.content-page {
    position: relative;
    overflow-x: hidden;
}

.content-hero {
    padding-top: 3rem;
}

.editorial-hero-simple {
    grid-template-columns: 1fr;
}

.editorial-count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: #f6efff;
    border: 1px solid #eadbf7;
    color: #593a7b;
    font-weight: 800;
}

.admin-action-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.admin-action-strip-light .btn-secondary {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: rgba(255,255,255,0.28);
}

.admin-action-strip-light .btn-secondary:hover {
    background: rgba(255,255,255,0.22);
}

.editorial-hero-simple {
    grid-template-columns: 1fr;
}

.editorial-count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: #f6efff;
    border: 1px solid #eadbf7;
    color: #593a7b;
    font-weight: 800;
}

.editorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: start;
}

.editorial-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.editorial-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.editorial-main,
.editorial-sidebar,
.editorial-list,
.editor-list {
    display: grid;
    gap: 1.2rem;
}

.editorial-card,
.editor-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.95));
    border: 1px solid rgba(122, 98, 196, 0.14);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.editorial-card-accent {
    background: linear-gradient(145deg, #2e1b52, #5d31a8 65%, #ea4d95);
    color: #fff;
}

.editorial-card-accent p,
.editorial-card-accent strong {
    color: inherit;
}

.content-flash {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #e8f5ee;
    color: #195d36;
    border: 1px solid #bfe0ca;
    font-weight: 700;
}

.content-flash-error {
    background: #fdecec;
    color: #8d2934;
    border-color: #f5c1c6;
}

.library-toolbar-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding: 1.1rem 1.2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.95));
    border: 1px solid rgba(122, 98, 196, 0.14);
    box-shadow: var(--shadow-sm);
}

.library-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.library-search-field {
    display: grid;
    gap: 0.45rem;
}

.library-search-field label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #786a90;
}

.library-search-field input {
    border-radius: 18px;
    padding: 1rem 1.05rem;
}

.library-toolbar-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.library-tag-cloud,
.reader-tag-row,
.editor-tag-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.library-tag-cloud {
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
}

.library-tag-cloud::-webkit-scrollbar {
    display: none;
}

.library-tag-pill,
.editor-tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.46rem 0.8rem;
    border-radius: 999px;
    background: #f5edff;
    border: 1px solid #eadbf7;
    color: #5d4182;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.library-tag-pill.is-active {
    background: linear-gradient(135deg, #5b3df5, #f04e98);
    border-color: transparent;
    color: #fff;
}

.editorial-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: #7a6c8d;
    font-size: 0.92rem;
    font-weight: 700;
}

.editorial-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f6efff;
    border: 1px solid #eadbf7;
}

.editorial-question-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8b6f93;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.editorial-question-text,
.editorial-lead {
    font-size: 1.08rem;
    color: #52486c;
}

.editorial-question-block,
.editorial-answer-block {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: #fbf8ff;
    border: 1px solid #ecdef8;
    margin-bottom: 1rem;
}

.editorial-question-block strong,
.editorial-answer-block strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #5d4182;
}

.editorial-answer-block div,
.editorial-article-copy {
    color: #3d3454;
    line-height: 1.8;
}

.reader-shell {
    display: grid;
    gap: 1.5rem;
}

.reader-premium-page .content-hero,
.reader-premium-page .library-toolbar-card,
.reader-premium-page .reader-browse-block,
.reader-premium-page header {
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.reader-progress-rail,
.reader-utility-dock {
    position: fixed;
    z-index: 6;
}

.reader-progress-rail {
    top: 50%;
    left: clamp(14px, 2vw, 28px);
    transform: translateY(-50%);
    display: grid;
    justify-items: center;
    gap: 0.7rem;
}

.reader-progress-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(85, 66, 118, 0.66);
    font-weight: 800;
}

.reader-progress-track {
    position: relative;
    width: 4px;
    height: clamp(180px, 34vh, 320px);
    border-radius: 999px;
    background: rgba(128, 104, 190, 0.14);
    overflow: hidden;
}

.reader-progress-fill {
    position: absolute;
    inset: auto 0 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(180deg, #f3b65a, #f04e98 48%, #5b3df5);
    transform-origin: bottom center;
    transform: scaleY(0);
}

.reader-progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(127, 101, 191, 0.28);
    box-shadow: 0 8px 22px rgba(78, 47, 139, 0.16);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.reader-progress-dot.is-active {
    background: linear-gradient(135deg, #f4be48, #5b3df5);
    transform: scale(1.18);
    box-shadow: 0 12px 28px rgba(90, 61, 183, 0.24);
}

.reader-utility-dock {
    right: clamp(16px, 2.4vw, 34px);
    top: 50%;
    width: min(280px, calc(100vw - 32px));
    transform: translateY(-50%);
    display: grid;
    gap: 1rem;
}

.reader-echo-card {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(255,255,255,0.94), rgba(246,240,255,0.9));
    border: 1px solid rgba(226, 215, 245, 0.95);
    box-shadow: 0 18px 44px rgba(80, 49, 135, 0.12);
    backdrop-filter: blur(14px);
}

.reader-echo-kicker {
    display: inline-flex;
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7d6894;
}

.reader-echo-card strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #312146;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.05;
}

.reader-echo-card p {
    margin: 0;
    color: #5f556f;
    line-height: 1.75;
}

.reader-tool-stack {
    display: grid;
    gap: 0.7rem;
}

.reader-tool-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(229, 217, 247, 0.95);
    border-radius: 20px;
    background: rgba(255,255,255,0.92);
    color: #4a3267;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(79, 48, 134, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.reader-tool-button:hover,
.reader-tool-button[data-active='true'] {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(79, 48, 134, 0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(243,236,255,0.96));
}

.reader-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4be48, #5b3df5);
    color: #fff;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reader-premium-page .reader-detail {
    position: relative;
    overflow: hidden;
}

.reader-premium-page .reader-detail::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(91, 61, 245, 0.45), rgba(255,255,255,0));
}

.reader-premium-page .reader-lead,
.reader-premium-page .reader-question-copy {
    position: relative;
    padding-left: 1.3rem;
}

.reader-premium-page .reader-lead::before,
.reader-premium-page .reader-question-copy::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4be48, #f04e98, #5b3df5);
    box-shadow: 0 0 24px rgba(91, 61, 245, 0.18);
}

.reader-premium-page.is-reader-focus::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(circle at 50% 46%, rgba(255,255,255,0), rgba(248,245,255,0.36) 44%, rgba(248,245,255,0.74) 78%, rgba(248,245,255,0.92) 100%);
}

.reader-premium-page.is-reader-focus header,
.reader-premium-page.is-reader-focus .content-hero,
.reader-premium-page.is-reader-focus .library-toolbar-card,
.reader-premium-page.is-reader-focus .reader-browse-block {
    opacity: 0.14;
    filter: blur(14px);
    transform: scale(0.985);
    pointer-events: none;
}

.reader-premium-page.is-reader-focus .reader-detail,
.reader-premium-page.is-reader-focus .reader-question-panel,
.reader-premium-page.is-reader-focus .reader-answer-panel,
.reader-premium-page.is-reader-focus .reader-reading-card {
    position: relative;
    z-index: 5;
    box-shadow: 0 32px 90px rgba(62, 34, 120, 0.16);
}

.reader-premium-page.is-reader-focus .reader-detail {
    transform: translateY(-8px) scale(1.01);
}

@media (max-width: 1240px) {
    .reader-progress-rail {
        display: none;
    }

    .reader-utility-dock {
        position: static;
        width: 100%;
        margin-top: 1rem;
        transform: none;
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 920px) {
    .reader-utility-dock {
        gap: 0.8rem;
    }

    .reader-echo-card,
    .reader-tool-button {
        border-radius: 20px;
    }
}

.reader-detail,
.reader-spotlight,
.reader-card {
    border: 1px solid rgba(235, 223, 247, 0.95);
    box-shadow: var(--shadow-md);
}

.reader-detail {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,244,255,0.96));
    border-radius: 34px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.reader-detail-life {
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250,246,255,0.96));
}

.reader-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.4rem;
}

.reader-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.94;
    color: #2f1f46;
}

.reader-meta {
    margin-bottom: 1rem;
}

.reader-lead {
    margin: 0;
    max-width: 46rem;
    font-size: 1.12rem;
    line-height: 1.85;
    color: #564c69;
}

.reader-cover,
.reader-spotlight-media,
.reader-card-cover-link {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #efe6fb, #fff3f8);
    border: 1px solid #eadcf8;
}

.reader-cover {
    min-height: 100%;
}

.reader-cover img,
.reader-spotlight-image,
.reader-card-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-cover img {
    min-height: 360px;
}

.reader-body {
    max-width: 48rem;
    color: #3f3554;
    font-size: 1.04rem;
    line-height: 1.95;
}

.reader-reading-card {
    position: relative;
    max-width: 50rem;
}

.reader-reading-card.is-collapsible::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3.4rem;
    height: 120px;
    background: linear-gradient(180deg, rgba(248,244,255,0) 0%, rgba(248,244,255,0.98) 70%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.reader-reading-card.is-expanded::after {
    opacity: 0;
}

.reader-body-collapsed {
    max-height: 32rem;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.reader-body-collapsed.is-expanded {
    max-height: 200rem;
}

.reader-expand-button {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e7d9f6;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    color: #563c7b;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.reader-actions {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #ebdef6;
}

.reader-question-panel,
.reader-answer-panel {
    padding: 1.3rem 1.4rem;
    border-radius: 28px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ecdef8;
}

.reader-question-panel {
    margin-bottom: 1rem;
}

.reader-panel-label {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
    background: #f4ecfd;
    color: #674e85;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reader-question-copy {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.85;
    color: #43374f;
}

.reader-browse-block {
    display: grid;
    gap: 1rem;
}

.section-heading-tight {
    margin-bottom: 0.15rem;
}

.reader-rail {
    display: grid;
    gap: 1rem;
}

.reader-rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reader-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,245,255,0.95));
    border-radius: 28px;
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reader-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.reader-card-copy {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    min-width: 0;
}

.reader-card-copy h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.05;
    color: #36244e;
}

.reader-card-copy p {
    margin: 0;
    color: #685d79;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.reader-card-question {
    color: #4d3d63;
    font-weight: 700;
}

.reader-card-cover {
    min-height: 210px;
}

.reader-card-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
}

.reader-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.35rem;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(243,235,255,0.96));
    border-radius: 36px;
    padding: 1.2rem;
}

.reader-spotlight-copy {
    display: grid;
    align-content: center;
    gap: 0.9rem;
    padding: 0.5rem 0.4rem;
}

.reader-spotlight-copy h2 {
    margin: 0;
    font-size: clamp(2.3rem, 4.2vw, 4.2rem);
    line-height: 0.94;
    color: #2e1d43;
}

.reader-spotlight-copy p {
    margin: 0;
    color: #5f556f;
    line-height: 1.82;
}

.reader-spotlight-image {
    min-height: 430px;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        display: grid;
        gap: 0.7rem;
        padding: 0;
        margin: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
        border-radius: 26px;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.96));
        border: 1px solid rgba(130, 109, 189, 0.18);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        opacity: 1;
        max-height: 420px;
        padding: 1rem;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        padding: 0.92rem 1rem;
        border-radius: 18px;
        background: #faf7ff;
        border: 1px solid #eadbf7;
    }

    .nav-links .btn {
        justify-content: center;
    }
}

.editorial-cover-wrap {
    margin: -0.15rem -0.15rem 1.1rem;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3ebff, #fff3f8);
    border: 1px solid #eddcf8;
}

.editorial-cover-wrap-large {
    margin-bottom: 1.3rem;
}

.editorial-cover-image {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f246d, #e64992);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.featured-badge-light {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.34);
    backdrop-filter: blur(10px);
}

.editorial-actions-row,
.editor-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.love-button {
    border: 1px solid #ebd8f9;
    background: #fff;
    color: #7e2f66;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.love-button:hover,
.love-button.is-active {
    background: linear-gradient(135deg, #fff0f7, #ffe1ee);
    box-shadow: 0 14px 30px rgba(208, 73, 126, 0.16);
    transform: translateY(-2px);
}

.editorial-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.editorial-stat-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
}

.editorial-stat {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(234,219,247,0.9);
    border-radius: 20px;
    padding: 1rem;
    display: grid;
    gap: 0.3rem;
}

.editorial-stat span {
    color: #7e7194;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.editorial-stat strong {
    color: #41285d;
    font-size: 1.15rem;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

.editor-form {
    display: grid;
    gap: 1rem;
}

.editor-form label {
    display: grid;
    gap: 0.45rem;
    color: #4b3a60;
    font-weight: 700;
}

.editor-form input,
.editor-form textarea,
.editor-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid #e5d7f3;
    background: #fff;
    font: inherit;
    color: #2d2340;
}

.editor-form textarea {
    resize: vertical;
}

.upload-field {
    display: grid;
    gap: 0.55rem;
    color: #4b3a60;
    font-weight: 700;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.upload-dropzone {
    position: relative;
    border: 2px dashed #d9c4ee;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(250,247,255,0.96), rgba(245,238,255,0.9));
    padding: 1.2rem;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
    border-color: #8b5cf6;
    box-shadow: 0 16px 32px rgba(101, 59, 164, 0.14);
    transform: translateY(-2px);
}

.upload-dropzone-copy {
    display: grid;
    gap: 0.35rem;
}

.upload-dropzone-copy strong {
    color: #4a2f70;
}

.upload-dropzone-copy span {
    color: #756684;
    font-weight: 600;
}

.editor-list-item {
    border: 1px solid #ebdef7;
    border-radius: 22px;
    padding: 1rem 1.05rem;
    background: #fff;
}

.editor-list-thumb,
.editor-article-preview-image {
    margin-bottom: 0.9rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e8d8f5;
    background: #faf7ff;
}

.editor-list-thumb img,
.editor-article-preview-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.editor-list-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.editor-list-meta {
    color: #786c8c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.editor-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #f1e9fc;
    color: #7a56a2;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.editor-status.is-live {
    background: #e7f6eb;
    color: #1c7a43;
}

.editor-delete-button {
    background: #7e2231;
    color: #fff;
    border-color: #7e2231;
}

.home-editorial-section {
    position: relative;
    overflow: hidden;
}

.home-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-editorial-column {
    display: grid;
    gap: 1rem;
}

.home-editorial-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.home-preview-list {
    display: grid;
    gap: 1rem;
}

.home-preview-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-preview-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.94));
    border: 1px solid rgba(122, 98, 196, 0.14);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    padding: 1.35rem;
    display: grid;
    gap: 0.9rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.home-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.home-preview-card h4 {
    margin: 0;
    color: #392651;
}

.home-preview-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.home-preview-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #f5ecff;
    border: 1px solid #eadbf7;
    color: #5f4681;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-preview-card p {
    margin: 0;
}

.home-preview-card-featured {
    padding: 1.1rem;
    gap: 1rem;
}

.home-preview-card-small {
    padding: 0.95rem;
    align-content: start;
}

.home-preview-card-small h4 {
    font-size: 1.15rem;
}

.home-preview-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3ebff, #fff3f8);
    border: 1px solid #eddcf8;
}

.home-preview-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.home-preview-image-wrap-featured {
    border-radius: 24px;
}

.home-preview-image-featured {
    height: 340px;
}

.home-preview-image-wrap-small {
    border-radius: 18px;
}

.home-preview-image-small {
    height: 140px;
}

.home-preview-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42,24,82,0.04) 18%, rgba(42,24,82,0.72) 100%);
}

.home-preview-featured-copy {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    display: grid;
    gap: 0.6rem;
    z-index: 1;
}

.home-preview-featured-copy h4 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 0.96;
    text-shadow: 0 6px 20px rgba(25, 14, 52, 0.35);
}

.journey-section,
.faq-section,
.first-session-section,
.dashboard-hero-band {
    position: relative;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.journey-card {
    padding: 1.45rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.95));
    border: 1px solid rgba(122, 98, 196, 0.14);
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.journey-step-index {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #8d77a9;
    margin-bottom: 1rem;
}

.journey-card h3 {
    font-size: 1.45rem;
    color: #35244a;
}

.journey-card p {
    margin-bottom: 0;
    color: #675d79;
}

.first-session-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.first-session-copy,
.first-session-note,
.faq-item,
.dashboard-hero-shell,
.dashboard-resource-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,243,255,0.95));
    border: 1px solid rgba(122, 98, 196, 0.14);
    box-shadow: var(--shadow-md);
}

.first-session-copy,
.first-session-note {
    padding: 1.7rem;
    border-radius: 32px;
}

.first-session-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.first-session-point {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.first-session-point span {
    color: #6f4fa0;
    font-weight: 800;
    margin-top: 0.1rem;
}

.first-session-point p,
.first-session-note p {
    margin: 0;
    color: #655b79;
}

.first-session-note {
    background: linear-gradient(145deg, #2a1649, #56308a 70%, #f04e98);
}

.first-session-note strong,
.first-session-note p {
    color: #fff;
}

.first-session-note strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.first-session-note .btn {
    margin-top: 1.2rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 26px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.2rem 1.3rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: #362650;
    position: relative;
    padding-right: 4rem;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 61, 245, 0.08);
    color: #5b3df5;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.3rem;
    transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.faq-answer p {
    margin: 0;
    color: #655b79;
}

.faq-item[open] {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    background: rgba(240, 78, 152, 0.14);
}

.faq-item[open] .faq-answer {
    max-height: 260px;
    padding: 0 1.3rem 1.3rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-preloader,
    .page-preloader-door,
    .page-preloader-core,
    .site-progress,
    .btn::before,
    .hero::before,
    .brand-lockup-image,
    .brand-mark,
    .tree-seal-logo,
    .mosaic-card,
    .hero-badges span,
    .value-pill,
    .depth-orbit,
    .depth-core-glow {
        animation: none !important;
    }

    .fade-hidden,
    .fade-in,
    .hero-copy,
    .hero-visual,
    .card,
    .story-point,
    .journey-card,
    .quote-card,
    .home-preview-card,
    .faq-item,
    .memory-depth-scene,
    .depth-plane,
    .motion-layer,
    .motion-layer-glow,
    .scroll-spectra-orb,
    .scroll-spectra-beam,
    .page-route-transition::before,
    .page-route-transition::after {
        transition: none !important;
        transform: none !important;
        translate: none !important;
        rotate: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
}

.dashboard-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.5rem;
    padding: 1.7rem;
    border-radius: 34px;
    margin-bottom: 1.4rem;
}

.dashboard-hero-copy h1 {
    font-family: var(--font-display);
    line-height: 0.98;
    color: #2f1f46;
}

.dashboard-hero-note {
    padding: 1.4rem;
    border-radius: 28px;
    background: linear-gradient(145deg, #2b1849, #5c3292 72%, #f04e98);
}

.dashboard-note-label {
    display: inline-flex;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-hero-note strong,
.dashboard-hero-note p {
    display: block;
    color: #fff;
}

.dashboard-hero-note strong {
    font-size: 1.4rem;
    margin-bottom: 0.55rem;
}

.dashboard-hero-note p {
    margin: 0;
    color: rgba(255,255,255,0.84);
}

.dashboard-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.dashboard-stat-card {
    padding: 1rem;
    border-radius: 22px;
    background: #faf6ff;
    border: 1px solid #eadbf7;
}

.dashboard-stat-card span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #816f99;
    margin-bottom: 0.35rem;
}

.dashboard-stat-card strong {
    font-size: 1.6rem;
    color: #382652;
}

.dashboard-resource-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1rem;
}

.dashboard-resource-card {
    padding: 1.35rem;
    border-radius: 28px;
}

.dashboard-resource-card h3 {
    font-size: 1.4rem;
    color: #36244e;
}

.dashboard-resource-card-accent {
    background: linear-gradient(145deg, #2a1649, #56308a 70%, #f04e98);
}

.dashboard-resource-card-accent h3,
.dashboard-resource-card-accent .section-kicker,
.dashboard-resource-card-accent p {
    color: #fff;
}

.dashboard-resource-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.dashboard-mini-list {
    display: grid;
    gap: 0.8rem;
}

.dashboard-mini-link {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: #faf6ff;
    border: 1px solid #eadbf7;
}

.dashboard-mini-link strong {
    color: #3a2853;
}

.dashboard-mini-link span {
    color: #6d6380;
    font-size: 0.94rem;
    line-height: 1.6;
}

.home-preview-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42,24,82,0.04) 18%, rgba(42,24,82,0.72) 100%);
}

.home-preview-featured-copy {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    display: grid;
    gap: 0.6rem;
    z-index: 1;
}

.home-preview-featured-copy h4 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 0.96;
    text-shadow: 0 6px 20px rgba(25, 14, 52, 0.35);
}

@media (max-width: 980px) {
    .editorial-hero,
    .editorial-grid,
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .journey-grid,
    .first-session-shell,
    .dashboard-hero-shell,
    .dashboard-resource-grid,
    .dashboard-stat-row {
        grid-template-columns: 1fr;
    }

    .library-toolbar,
    .reader-rail-grid {
        grid-template-columns: 1fr;
    }

    .reader-masthead,
    .reader-spotlight,
    .reader-card {
        grid-template-columns: 1fr;
    }

    .home-editorial-grid {
        grid-template-columns: 1fr;
    }

    .memory-depth-shell {
        grid-template-columns: 1fr;
    }

    .memory-depth-copy {
        position: relative;
        top: auto;
    }

    .memory-depth-scene {
        width: min(100%, 640px);
        height: 520px;
        margin: 0 auto;
    }

    .depth-plane-back {
        transform: translate3d(-50%, calc(-50% + 14px), -120px) rotateX(60deg) rotateZ(-12deg) scale(0.92);
    }

    .depth-plane-mid {
        transform: translate3d(-50%, -50%, -12px) rotateX(44deg) rotateZ(6deg) scale(0.98);
    }

    .depth-plane-front {
        transform: translate3d(-50%, calc(-50% + 18px), 60px) rotateX(30deg) rotateZ(-4deg);
    }

    .home-preview-subgrid {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-stat-grid,
    .editorial-stat-grid-wide {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .editorial-stat-grid,
    .editorial-stat-grid-wide {
        grid-template-columns: 1fr;
    }

    .library-toolbar-card,
    .reader-detail,
    .reader-question-panel,
    .reader-answer-panel {
        padding: 1rem;
        border-radius: 24px;
    }

    .library-toolbar-actions,
    .reader-tag-row,
    .editor-tag-row {
        width: 100%;
    }

    .library-tag-cloud {
        flex-wrap: nowrap;
        margin-right: -0.2rem;
        padding-right: 0.2rem;
    }

    .reader-title,
    .reader-spotlight-copy h2 {
        line-height: 1.02;
    }

    .reader-body,
    .reader-question-copy,
    .reader-lead {
        font-size: 1rem;
        line-height: 1.75;
    }

    .reader-body-collapsed {
        max-height: 24rem;
    }

    .reader-cover img,
    .reader-spotlight-image,
    .reader-card-cover {
        min-height: 220px;
    }

    .reader-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .reader-card-copy h3 {
        font-size: 1.25rem;
    }

    .contact-note-logo {
        width: 92px !important;
    }

    .home-preview-subgrid {
        grid-template-columns: 1fr;
    }

    .editorial-actions-row,
    .editor-actions,
    .editor-list-top,
    .home-editorial-head,
    .admin-action-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .love-button,
    .editor-actions .btn,
    .editor-actions form,
    .editor-actions form button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 0.85rem;
    }

    nav {
        padding: 0.64rem 0;
    }

    .brand-lockup-image {
        width: 92px;
    }

    .nav-toggle {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .nav-links.active {
        padding: 0.85rem;
    }

    .hero,
    .section {
        padding-top: 2.2rem;
        padding-bottom: 2.2rem;
    }

    .tree-seal {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem;
    }

    .tree-seal-lockup {
        width: 88px;
    }

    .tree-seal strong {
        font-size: 1rem;
    }

    .tree-seal span {
        font-size: 0.82rem;
    }

    .library-toolbar-card {
        gap: 0.85rem;
    }

    .library-search-field input {
        padding: 0.92rem 0.95rem;
    }

    .library-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .library-toolbar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .editorial-meta {
        gap: 0.5rem;
    }

    .editorial-meta span {
        font-size: 0.82rem;
        padding: 0.4rem 0.68rem;
    }

    .reader-card {
        grid-template-columns: 1fr;
    }

    .reader-card-cover {
        min-height: 180px;
    }

    .reader-card-actions .btn,
    .reader-actions .btn,
    .reader-actions form,
    .reader-actions form button {
        width: 100%;
    }

    .contact-side-note {
        padding: 0.9rem 1rem;
    }

    .contact-note-logo {
        width: 84px !important;
    }

    .auth-seal-lockup {
        width: min(180px, 78%);
    }
}
