/* Public shell (homepage + login) — main background + frosted glass panels */

.page-public-shell {
    --home-brand-blue: #00C9FC;
    --home-brand-yellow: #F9DB0F;
    --glass-bg: rgba(9, 26, 54, 0.32);
    --glass-blur: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-public-shell > .nav-modern,
.page-public-shell > .nav-modern-app {
    flex-shrink: 0;
}

.page-public-shell .site-footer {
    flex-shrink: 0;
    margin-top: 0 !important;
}

/* Full main band background */
.page-public-shell .home-main {
    position: relative;
    flex: 1;
    min-height: calc(100vh - 72px);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 216, 77, 0.08), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(60, 120, 255, 0.1), transparent 38%),
        linear-gradient(145deg, #091a36, #08142c 65%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-public-shell .home-main--has-image {
    background-color: #071428;
}

/* Layered hero scene — compact centered artwork + ambient effects */
.page-public-shell .home-hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-public-shell .home-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(0, 201, 252, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 201, 252, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.page-public-shell .home-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: home-orb-drift 14s ease-in-out infinite;
}

.page-public-shell .home-hero-orb--cyan {
    width: min(280px, 40vw);
    height: min(280px, 40vw);
    top: 18%;
    left: 12%;
    background: rgba(0, 201, 252, 0.45);
}

.page-public-shell .home-hero-orb--gold {
    width: min(220px, 32vw);
    height: min(220px, 32vw);
    bottom: 15%;
    right: 10%;
    background: rgba(249, 219, 15, 0.35);
    animation-delay: -5s;
}

.page-public-shell .home-hero-glow {
    position: absolute;
    left: 50%;
    top: 44%;
    width: min(360px, 48vw);
    height: min(320px, 42vh);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 201, 252, 0.28) 0%,
        rgba(0, 201, 252, 0.08) 45%,
        transparent 72%
    );
    animation: home-glow-pulse 5s ease-in-out infinite;
}

.page-public-shell .home-hero-bg {
    position: absolute;
    left: 50%;
    top: 44%;
    width: min(380px, 46vw);
    height: min(340px, 38vh);
    transform: translate(-50%, -50%);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.88;
    filter: drop-shadow(0 12px 40px rgba(0, 201, 252, 0.22));
    animation: home-hero-float 9s ease-in-out infinite;
}

@keyframes home-hero-float {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-12px);
    }
}

@keyframes home-glow-pulse {
    0%,
    100% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes home-orb-drift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(12px, -16px);
    }
}

.page-public-shell .home-main__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(7, 20, 40, 0.55) 0%,
        rgba(7, 20, 40, 0.25) 42%,
        rgba(7, 20, 40, 0.65) 100%
    );
}

.page-public-shell .home-main--has-image .home-main__overlay {
    background:
        radial-gradient(ellipse 85% 70% at 50% 42%, transparent 0%, rgba(7, 20, 40, 0.4) 55%, rgba(7, 20, 40, 0.82) 100%),
        linear-gradient(180deg, rgba(7, 20, 40, 0.5) 0%, rgba(7, 20, 40, 0.2) 50%, rgba(7, 20, 40, 0.7) 100%);
}

.page-public-shell .home-landing {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.page-home .home-main {
    min-height: auto;
}

.page-home .home-landing {
    min-height: auto;
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .page-home .home-landing {
        padding-top: 2rem;
        padding-bottom: 2rem;
        align-items: center;
    }
}

/* Homepage: wide landscape panel — logo left, message right, low height */
.page-home .home-hero-merged--landscape .home-hero-merged__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem 3rem;
}

.page-home .home-hero-merged--landscape .home-hero-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 2.25rem 0 0;
    border-bottom: none;
    border-right: 1px solid rgba(0, 201, 252, 0.22);
}

.page-home .home-hero-merged--landscape .home-hero-logo img {
    display: block;
    width: auto;
    max-width: min(340px, 36vw);
    max-height: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(0, 201, 252, 0.22));
    animation: home-hero-logo-float 9s ease-in-out infinite;
}

.page-home .home-hero-merged--landscape .home-hero-message {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.page-home .home-hero-merged--landscape .home-hero-badge {
    font-size: 0.95rem;
}

.page-home .home-hero-merged--landscape .home-hero-title {
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    line-height: 1.12;
}

.page-home .home-hero-merged--landscape .home-hero-lead {
    font-size: clamp(1.1rem, 1.55vw, 1.3rem);
    line-height: 1.55;
    max-width: 42rem;
}

.page-home .home-hero-merged--landscape .home-hero-footnote {
    font-size: 0.95rem;
    line-height: 1.45;
}

.page-home .home-hero-merged--landscape .home-hero-actions {
    justify-content: flex-start;
}

@keyframes home-hero-logo-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 767.98px) {
    .page-home .home-hero-merged--landscape .home-hero-merged__inner {
        flex-direction: column;
        text-align: center;
    }

    .page-home .home-hero-merged--landscape .home-hero-logo {
        padding: 0 0 0.85rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 201, 252, 0.22);
        width: 100%;
    }

    .page-home .home-hero-merged--landscape .home-hero-logo img {
        max-width: min(280px, 72vw);
        max-height: 175px;
    }

    .page-home .home-hero-merged--landscape .home-hero-title {
        font-size: clamp(1.65rem, 5vw, 2.25rem);
    }

    .page-home .home-hero-merged--landscape .home-hero-lead {
        font-size: 1.05rem;
    }

    .page-home .home-hero-merged--landscape .home-hero-message {
        text-align: center;
    }

    .page-home .home-hero-merged--landscape .home-hero-actions {
        justify-content: center;
    }
}

/* Frosted glass center panels (homepage hero + login card) */
.page-public-shell .home-glass-panel {
    position: relative;
    width: 100%;
    border: 1px solid rgba(0, 201, 252, 0.45) !important;
    border-radius: 1.35rem !important;
    box-shadow:
        0 20px 56px rgba(0, 25, 60, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 48px rgba(0, 201, 252, 0.12) !important;
    background: var(--glass-bg) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
    isolation: isolate;
    animation: home-panel-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-public-shell .home-glass-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 201, 252, 0.65),
        rgba(249, 219, 15, 0.35),
        rgba(0, 201, 252, 0.25)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}

.page-public-shell .home-glass-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

@keyframes home-panel-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .page-public-shell .home-glass-panel {
        background: rgba(9, 26, 54, 0.78) !important;
    }
}

.page-public-shell .home-glass-panel .card-body {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Homepage hero brand (Times New Roman, yellow i, blue -learncst) */
.page-home .home-glass-panel .site-brand {
    font-family: "Times New Roman", Times, serif !important;
}

.page-home .home-glass-panel .site-brand .site-brand-i {
    color: var(--home-brand-yellow) !important;
    font-style: italic !important;
    font-weight: 700;
}

.page-home .home-glass-panel .site-brand .site-brand-rest {
    color: var(--home-brand-blue) !important;
    font-style: normal;
    font-weight: 700;
}

.page-home .home-glass-panel .lead.text-secondary {
    color: #c4d2ee !important;
}

html body.page-home .home-glass-panel .home-hero-lead,
html body.page-home .home-glass-panel .home-hero-lead.text-secondary {
    color: #ffffff !important;
}

html body.page-home .home-glass-panel .home-hero-footnote,
html body.page-home .home-glass-panel .home-hero-footnote.text-muted {
    color: #e9f0ff !important;
}

.page-home .home-glass-panel .text-muted {
    color: #a8b8d8 !important;
}

.page-home .home-glass-panel .badge.text-bg-primary {
    background: rgba(0, 201, 252, 0.25) !important;
    color: #B2FBFF !important;
    border: 1px solid rgba(0, 201, 252, 0.45);
}

/* Login panel copy (readable on glass over dark bg) */
html body.page-auth-login .home-glass-panel h3,
html body.page-auth-login .home-glass-panel .form-label {
    color: #e9f0ff !important;
}

html body.page-auth-login .home-glass-panel .text-secondary,
html body.page-auth-login .home-glass-panel .form-check-label {
    color: #c4d2ee !important;
}

html body.page-auth-login .home-glass-panel .text-muted,
html body.page-auth-login .home-glass-panel small {
    color: #a8b8d8 !important;
}

html body.page-auth-login .home-glass-panel a.text-muted,
html body.page-auth-login .home-glass-panel a.btn-link {
    color: #B2FBFF !important;
}

html body.page-auth-login .home-glass-panel a.text-muted:hover,
html body.page-auth-login .home-glass-panel a.text-muted:focus {
    color: #ffffff !important;
}

.page-auth-login .home-glass-panel .form-control {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 201, 252, 0.45) !important;
    color: #111111 !important;
}

.page-auth-login .home-glass-panel .form-control:focus {
    border-color: var(--home-brand-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 201, 252, 0.25) !important;
}

.page-auth-login .home-glass-panel .alert {
    background: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 991.98px) {
    .page-public-shell .home-hero-bg {
        width: min(320px, 58vw);
        height: min(280px, 32vh);
        top: 40%;
    }

    .page-public-shell .home-hero-glow {
        width: min(300px, 55vw);
        height: min(260px, 30vh);
        top: 40%;
    }
}

@media (max-width: 575.98px) {
    .page-public-shell .home-glass-panel .card-body {
        padding: 1.5rem !important;
    }

    .page-public-shell .home-landing {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    .page-public-shell .home-hero-bg {
        width: min(260px, 78vw);
        height: min(220px, 28vh);
        top: 38%;
        opacity: 0.82;
    }

    .page-public-shell .home-hero-orb {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-public-shell .home-hero-bg,
    .page-public-shell .home-hero-glow,
    .page-public-shell .home-hero-orb,
    .page-public-shell .home-glass-panel,
    .page-home .home-hero-merged .home-hero-logo img {
        animation: none;
    }
}

/* ==========================================================================
   Shared 3D public shell (homepage + login + OTP)
   ========================================================================== */

.page-public-3d {
    --edu-primary: #00C9FC;
    --edu-primary-dark: #00A3CA;
    --edu-accent: #F9DB0F;
    --edu-text: #e8f0ff;
    --edu-muted: #a8b8d8;
    --edu-border: rgba(0, 201, 252, 0.38);
    --home-3d-cyan: var(--edu-primary);
    --home-3d-gold: var(--edu-accent);
    --home-3d-deep: #050f22;
    --home-3d-mid: #0a1a38;
    --home-3d-panel: rgba(8, 28, 58, 0.78);
    --home-3d-nav-h: 72px;
    --home-3d-footer-h: 52px;
}

html:has(body.page-public-3d),
body.page-public-3d {
    height: 100%;
    overflow: hidden;
}

body.page-public-3d.page-public-shell {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body.page-public-3d.page-public-shell > .home-main--3d {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.page-public-3d.page-public-shell .site-footer {
    flex: 0 0 auto;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-public-3d.page-public-shell .site-footer .footer-inner {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

body.page-public-3d.page-public-shell .site-footer-tagline {
    display: block;
    font-size: clamp(0.62rem, 1.2vh, 0.72rem);
    line-height: 1.25;
    opacity: 0.85;
    max-width: 22rem;
}

.page-public-3d .home-main--3d {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 201, 252, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(249, 219, 15, 0.1), transparent 50%),
        linear-gradient(165deg, #040c1c 0%, var(--home-3d-mid) 48%, #061228 100%);
}

.page-public-3d .home-3d-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: hidden;
}

.page-public-3d .home-3d-scene__sky,
.page-public-3d .home-3d-scene__floor,
.page-public-3d .home-3d-scene__grid,
.page-public-3d .home-3d-shape,
.page-public-3d .home-3d-scene__glow {
    pointer-events: none;
}

.page-public-3d .home-3d-scene__sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(0, 201, 252, 0.14), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(249, 219, 15, 0.1), transparent 24%);
}

.page-public-3d .home-3d-scene__floor {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -42%;
    height: 72%;
    transform: rotateX(72deg);
    transform-origin: center top;
    background: linear-gradient(180deg, rgba(0, 201, 252, 0.08), rgba(0, 201, 252, 0.02) 40%, transparent 75%);
    filter: blur(1px);
}

.page-public-3d .home-3d-scene__grid {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -38%;
    height: 68%;
    transform: rotateX(74deg);
    transform-origin: center top;
    background-image:
        linear-gradient(rgba(0, 201, 252, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 201, 252, 0.22) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
    opacity: 0.55;
    animation: home-3d-grid-flow 18s linear infinite;
}

@keyframes home-3d-grid-flow {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 0 64px, 64px 0;
    }
}

.page-public-3d .home-3d-shape {
    position: absolute;
    transform-style: preserve-3d;
}

.page-public-3d .home-3d-shape--ring {
    width: min(220px, 28vw);
    height: min(220px, 28vw);
    top: 14%;
    right: 10%;
    border-radius: 50%;
    border: 3px solid rgba(0, 201, 252, 0.45);
    box-shadow:
        0 0 40px rgba(0, 201, 252, 0.25),
        inset 0 0 30px rgba(0, 201, 252, 0.12);
    transform: rotateX(58deg) rotateZ(18deg);
    animation: home-3d-ring-spin 22s linear infinite;
}

@keyframes home-3d-ring-spin {
    from {
        transform: rotateX(58deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(58deg) rotateZ(360deg);
    }
}

.page-public-3d .home-3d-shape--cube {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 201, 252, 0.85), rgba(0, 120, 200, 0.55));
    border: 1px solid rgba(178, 251, 255, 0.5);
    box-shadow:
        0 18px 36px rgba(0, 25, 60, 0.45),
        0 0 24px rgba(0, 201, 252, 0.35);
}

.page-public-3d .home-3d-shape--cube-a {
    top: 22%;
    left: 8%;
    transform: rotateX(42deg) rotateY(-32deg) rotateZ(12deg);
    animation: home-3d-cube-float-a 9s ease-in-out infinite;
}

.page-public-3d .home-3d-shape--cube-b {
    bottom: 22%;
    right: 14%;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(249, 219, 15, 0.9), rgba(220, 170, 0, 0.55));
    border-color: rgba(255, 240, 160, 0.55);
    box-shadow:
        0 16px 30px rgba(40, 30, 0, 0.35),
        0 0 20px rgba(249, 219, 15, 0.28);
    transform: rotateX(36deg) rotateY(28deg);
    animation: home-3d-cube-float-b 11s ease-in-out infinite;
}

.page-public-3d .home-3d-shape--prism {
    width: 0;
    height: 0;
    top: 58%;
    left: 12%;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 48px solid rgba(0, 201, 252, 0.35);
    filter: drop-shadow(0 12px 24px rgba(0, 201, 252, 0.25));
    transform: rotateX(48deg) rotateY(-18deg);
    animation: home-3d-prism-float 10s ease-in-out infinite;
}

@keyframes home-3d-cube-float-a {
    0%,
    100% {
        transform: rotateX(42deg) rotateY(-32deg) rotateZ(12deg) translateY(0);
    }
    50% {
        transform: rotateX(42deg) rotateY(-32deg) rotateZ(12deg) translateY(-18px);
    }
}

@keyframes home-3d-cube-float-b {
    0%,
    100% {
        transform: rotateX(36deg) rotateY(28deg) translateY(0);
    }
    50% {
        transform: rotateX(36deg) rotateY(28deg) translateY(-14px);
    }
}

@keyframes home-3d-prism-float {
    0%,
    100% {
        transform: rotateX(48deg) rotateY(-18deg) translateY(0);
    }
    50% {
        transform: rotateX(48deg) rotateY(-18deg) translateY(-12px);
    }
}

.page-public-3d .home-3d-scene__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    opacity: 0.65;
}

.page-public-3d .home-3d-scene__glow--cyan {
    width: min(340px, 42vw);
    height: min(340px, 42vw);
    top: 8%;
    left: 18%;
    background: rgba(0, 201, 252, 0.35);
}

.page-public-3d .home-3d-scene__glow--gold {
    width: min(260px, 34vw);
    height: min(260px, 34vw);
    bottom: 12%;
    right: 16%;
    background: rgba(249, 219, 15, 0.22);
}

.page-public-3d .home-main__overlay--3d {
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 50% 38%, transparent 0%, rgba(5, 15, 34, 0.55) 62%, rgba(5, 15, 34, 0.88) 100%),
        linear-gradient(180deg, rgba(4, 12, 28, 0.35) 0%, rgba(4, 12, 28, 0.15) 45%, rgba(4, 12, 28, 0.75) 100%);
}

.page-public-3d .home-landing--3d {
    position: relative;
    z-index: 5;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: clamp(0.35rem, 1.2vh, 0.85rem) max(0.65rem, env(safe-area-inset-right)) clamp(0.35rem, 1vh, 0.65rem) max(0.65rem, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-public-3d .home-3d-viewport-fit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    gap: clamp(0.25rem, 1.2vh, 0.85rem);
    overflow: hidden;
    flex: 1 1 auto;
}

.page-public-3d .home-3d-viewport-fit__body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.page-public-3d .home-3d-logo-top {
    position: relative;
    z-index: 6;
    width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    text-align: center;
    margin-bottom: 0;
    pointer-events: none;
}

.page-public-3d .home-3d-logo-top img {
    display: inline-block;
    width: auto;
    max-width: min(320px, 72vw);
    max-height: min(16vh, 180px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 36px rgba(0, 201, 252, 0.32));
    animation: home-3d-logo-float 8s ease-in-out infinite;
}

@keyframes home-3d-logo-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.page-public-3d .home-3d-stage {
    width: 100%;
    position: relative;
    z-index: 6;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-public-3d .home-3d-hero {
    position: relative;
}

.page-public-3d .home-3d-hero__shadow {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -18px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 201, 252, 0.28), transparent 72%);
    filter: blur(16px);
    pointer-events: none;
}

.page-public-3d .home-3d-hero__panel {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid var(--edu-border);
    background: var(--home-3d-panel);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow:
        0 28px 70px rgba(0, 20, 50, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px rgba(0, 201, 252, 0.14),
        inset 4px 0 0 var(--edu-accent);
}

.page-public-3d .home-3d-hero__edge {
    position: absolute;
    pointer-events: none;
}

.page-public-3d .home-3d-hero__edge--top {
    top: 0;
    left: 6%;
    right: 6%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(178, 251, 255, 0.75), rgba(249, 219, 15, 0.55), transparent);
}

.page-public-3d .home-3d-hero__body {
    position: relative;
    padding: clamp(0.85rem, 2.2vh, 2rem) clamp(1rem, 3vw, 2.5rem);
    overflow: hidden;
}

.page-public-3d .home-3d-hero__gridline {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(0, 201, 252, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 201, 252, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 15%, transparent 80%);
    pointer-events: none;
}

.page-public-3d .home-3d-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
    pointer-events: auto;
}

.page-public-3d .home-3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
    margin-bottom: clamp(0.45rem, 1.2vh, 0.85rem);
    border-radius: 999px;
    font-size: clamp(0.72rem, 1.6vh, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #b2fbff;
    background: rgba(0, 201, 252, 0.14);
    border: 1px solid rgba(0, 201, 252, 0.38);
    box-shadow: 0 8px 24px rgba(0, 201, 252, 0.12);
}

.page-public-3d .home-3d-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-3d-gold);
    box-shadow: 0 0 12px rgba(249, 219, 15, 0.85);
    animation: home-3d-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes home-3d-dot-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(0.85);
    }
}

.page-public-3d .home-3d-title {
    margin-bottom: clamp(0.35rem, 1vh, 0.75rem);
    font-size: clamp(1.45rem, 4.2vh, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 0 40px rgba(0, 201, 252, 0.2);
}

.page-public-3d .home-3d-title .site-brand {
    font-family: "Times New Roman", Times, serif !important;
}

.page-public-3d .home-3d-title .site-brand-i {
    color: var(--home-3d-gold) !important;
    font-style: italic !important;
}

.page-public-3d .home-3d-title .site-brand-rest {
    color: var(--home-3d-cyan) !important;
}

.page-public-3d .home-3d-audience {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.35rem, 1vw, 0.55rem);
    margin-bottom: clamp(0.55rem, 1.4vh, 0.95rem);
}

.page-public-3d .home-3d-audience__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: clamp(0.68rem, 1.35vh, 0.78rem);
    font-weight: 600;
    color: #d4e2ff;
    background: rgba(0, 201, 252, 0.1);
    border: 1px solid rgba(0, 201, 252, 0.28);
}

.page-public-3d .home-3d-lead {
    margin-bottom: clamp(0.55rem, 1.4vh, 0.95rem);
    font-size: clamp(0.82rem, 1.75vh, 1.08rem);
    line-height: 1.45;
    color: var(--edu-text) !important;
}

.page-public-3d .home-3d-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: clamp(0.35rem, 1vh, 0.65rem);
    position: relative;
    z-index: 3;
}

.page-public-3d .home-3d-cta {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    text-decoration: none;
    padding: clamp(0.45rem, 1.2vh, 0.65rem) clamp(1.25rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);
    box-shadow:
        0 14px 32px rgba(0, 120, 200, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.page-public-3d .home-3d-cta--android {
    color: #e8f7ff !important;
    background: linear-gradient(180deg, rgba(61, 220, 132, 0.28), rgba(15, 120, 70, 0.55));
    border: 1px solid rgba(61, 220, 132, 0.55);
    box-shadow:
        0 14px 32px rgba(20, 120, 70, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.page-public-3d .home-3d-cta--android:hover,
.page-public-3d .home-3d-cta--android:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(20, 140, 80, 0.45),
        0 0 24px rgba(61, 220, 132, 0.3);
}

.page-public-3d .home-3d-audience__pill--android {
    color: #d8ffe8;
    background: rgba(61, 220, 132, 0.16);
    border-color: rgba(61, 220, 132, 0.45);
}

.page-home--3d .home-3d-feature--link {
    text-decoration: none;
    color: inherit;
}

.page-home--3d .home-3d-feature__icon--android {
    background: rgba(61, 220, 132, 0.18);
    color: #9dffc2;
}

/* Android download page — scrollable (not locked to home viewport-fit) */
html:has(body.page-android),
body.page-android.page-public-3d,
body.page-android.page-public-shell {
    height: auto !important;
    max-height: none !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.page-android.page-public-shell > .home-main--3d,
body.page-android .home-main--android {
    flex: 1 0 auto !important;
    height: auto !important;
    min-height: calc(100dvh - var(--home-3d-nav-h, 72px) - var(--home-3d-footer-h, 52px));
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding: 0.75rem 0 2rem;
}

.page-android .home-landing--android {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.page-android .home-android-page {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.page-android .home-android-page .home-3d-logo-top {
    width: 100%;
    margin: 0;
}

.page-android .home-android-page .home-3d-logo-top img {
    max-width: min(220px, 58vw);
    max-height: min(110px, 18vh);
}

.page-android .home-android-card {
    width: 100%;
    padding: clamp(1rem, 3.5vw, 1.6rem);
    border-radius: 1.25rem;
    border: 1px solid var(--edu-border);
    background: var(--home-3d-panel);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow:
        0 28px 70px rgba(0, 20, 50, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    text-align: center;
}

.page-android .home-android-title {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    color: #f2f8ff;
    word-wrap: break-word;
}

.page-android .home-android-lead {
    margin: 0 0 1rem;
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
    line-height: 1.45;
    color: var(--edu-text) !important;
}

.page-android .home-android-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.page-android .home-android-block {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(5, 20, 42, 0.55);
    border: 1px solid rgba(0, 201, 252, 0.22);
}

.page-android .home-android-panel__title {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: #b2fbff;
}

.page-android .home-android-meta {
    margin: 0 0 0.75rem;
    color: rgba(180, 205, 230, 0.95);
    font-size: 0.86rem;
    line-height: 1.4;
    word-break: break-word;
}

.page-android .home-android-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    min-height: 3rem;
    margin: 0;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.page-android .home-android-btn.mt-2 {
    margin-top: 0.5rem !important;
}

.page-android .home-android-btn--ghost {
    background: rgba(8, 28, 58, 0.55);
}

.page-android .home-android-steps,
.page-android .home-android-list {
    margin: 0.85rem 0 0;
    padding-left: 1.15rem;
    color: rgba(232, 242, 255, 0.92);
    line-height: 1.45;
    font-size: 0.9rem;
}

.page-android .home-android-steps li + li,
.page-android .home-android-list li + li {
    margin-top: 0.35rem;
}

.page-android .home-android-list code,
.page-android .home-android-note code {
    color: #9dffc2;
    font-size: 0.86em;
    word-break: break-word;
}

.page-android .home-android-note {
    margin: 0;
    color: rgba(180, 205, 230, 0.9);
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.page-android .home-android-details {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(5, 20, 42, 0.4);
    border: 1px solid rgba(0, 201, 252, 0.16);
}

.page-android .home-android-details > summary {
    cursor: pointer;
    font-weight: 700;
    color: #b2fbff;
    list-style: none;
}

.page-android .home-android-details > summary::-webkit-details-marker {
    display: none;
}

.page-android .home-android-details > summary::before {
    content: "+ ";
    color: #9dffc2;
}

.page-android .home-android-details[open] > summary::before {
    content: "– ";
}

.page-android .home-android-details .home-android-list {
    margin-top: 0.7rem;
}

.page-android .home-android-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .page-android .home-android-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-android .home-android-actions .home-android-btn {
        width: auto;
        min-width: min(100%, 11.5rem);
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .page-android .home-android-card {
        border-radius: 1rem;
        padding: 0.95rem 0.85rem;
    }

    .page-android .home-android-block {
        padding: 0.8rem 0.75rem;
    }

    .page-android .home-3d-badge {
        font-size: 0.75rem;
    }
}

.page-public-3d .home-3d-cta:hover,
.page-public-3d .home-3d-cta:focus {
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(0, 120, 200, 0.55),
        0 0 24px rgba(0, 201, 252, 0.35);
}

.page-public-3d .home-3d-footnote {
    margin: 0;
    font-size: clamp(0.68rem, 1.4vh, 0.85rem);
    line-height: 1.35;
    color: var(--edu-muted) !important;
}

.page-home--3d .home-3d-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.4rem, 1vh, 0.85rem);
    margin-top: clamp(0.45rem, 1.2vh, 1rem);
    flex: 0 1 auto;
    min-height: 0;
}

.page-home--3d .home-3d-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: clamp(0.45rem, 1.2vh, 0.85rem) clamp(0.35rem, 1vw, 0.65rem);
    border-radius: 0.85rem;
    text-align: center;
    background: rgba(8, 28, 58, 0.62);
    border: 1px solid rgba(0, 201, 252, 0.24);
    box-shadow:
        0 12px 28px rgba(0, 15, 40, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: translateZ(0);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 0;
}

.page-home--3d .home-3d-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 201, 252, 0.42);
    box-shadow:
        0 18px 36px rgba(0, 15, 40, 0.45),
        0 0 20px rgba(0, 201, 252, 0.12);
}

.page-home--3d .home-3d-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.85rem, 3.8vh, 2.5rem);
    height: clamp(1.85rem, 3.8vh, 2.5rem);
    border-radius: 0.65rem;
    font-size: clamp(0.95rem, 2vh, 1.15rem);
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 15, 40, 0.25);
    transform: none;
}

.page-home--3d .home-3d-feature__icon--quiz {
    background: #E6FAFE;
}

.page-home--3d .home-3d-feature__icon--lab {
    background: #dcfce7;
}

.page-home--3d .home-3d-feature__icon--report {
    background: #ede9fe;
}

.page-home--3d .home-3d-feature__label {
    font-size: clamp(0.68rem, 1.4vh, 0.82rem);
    font-weight: 600;
    color: #d4e2ff;
    line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    .page-public-3d .home-3d-scene__grid,
    .page-public-3d .home-3d-shape--ring,
    .page-public-3d .home-3d-shape--cube-a,
    .page-public-3d .home-3d-shape--cube-b,
    .page-public-3d .home-3d-shape--prism,
    .page-public-3d .home-3d-badge__dot,
    .page-public-3d .home-3d-logo-top img {
        animation: none;
    }
}

/* Auth pages — 3D login / OTP panel */
.page-auth-login--3d .home-landing--auth {
    padding: clamp(0.35rem, 1.2vh, 0.85rem) max(0.65rem, env(safe-area-inset-right)) clamp(0.35rem, 1vh, 0.65rem) max(0.65rem, env(safe-area-inset-left));
}

.page-auth-login--3d .home-3d-auth {
    position: relative;
    width: 100%;
}

.page-auth-login--3d .home-3d-panel--auth {
    position: relative;
    border-radius: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--edu-border);
    background: var(--home-3d-panel);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow:
        0 28px 70px rgba(0, 20, 50, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px rgba(0, 201, 252, 0.14),
        inset 4px 0 0 var(--edu-accent);
}

.page-auth-login--3d .home-3d-panel__body {
    position: relative;
    padding: clamp(0.85rem, 2vh, 1.75rem) clamp(0.85rem, 2.5vw, 1.75rem);
    overflow: hidden;
}

.page-auth-login--3d .home-3d-badge--auth {
    margin-bottom: clamp(0.35rem, 1vh, 0.65rem);
}

.page-auth-login--3d .home-3d-auth-title {
    margin: 0 0 clamp(0.25rem, 0.8vh, 0.45rem);
    font-size: clamp(1.25rem, 3.5vh, 1.85rem);
    font-weight: 800;
    line-height: 1.12;
    color: #f0f5ff;
    letter-spacing: -0.02em;
}

.page-auth-login--3d .home-3d-auth-lead {
    margin-bottom: clamp(0.65rem, 1.5vh, 1rem);
    font-size: clamp(0.82rem, 1.7vh, 0.98rem);
    line-height: 1.4;
    color: #c4d2ee !important;
}

.page-auth-login--3d .home-3d-auth-email {
    color: #b2fbff;
    word-break: break-word;
}

.page-auth-login--3d .home-3d-label {
    color: #e9f0ff !important;
    font-weight: 600;
    font-size: 0.92rem;
}

.page-auth-login--3d .home-3d-check-label {
    color: #c4d2ee !important;
    font-size: 0.88rem;
}

.page-auth-login--3d .home-3d-panel__content {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.page-auth-login--3d .home-3d-form .mb-3 {
    margin-bottom: clamp(0.55rem, 1.2vh, 0.85rem) !important;
}

.page-auth-login--3d .home-3d-input {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 201, 252, 0.45) !important;
    color: #111 !important;
    border-radius: 0.75rem;
    min-height: clamp(2.35rem, 5vh, 2.75rem);
    font-size: clamp(0.88rem, 1.7vh, 1rem);
    touch-action: manipulation;
}

.page-auth-login--3d .home-3d-input--otp {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
}

.page-auth-login--3d .home-3d-input:focus {
    border-color: var(--home-3d-cyan) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 201, 252, 0.25) !important;
}

.page-auth-login--3d .home-3d-form,
.page-auth-login--3d .home-3d-form-actions {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.page-auth-login--3d .home-3d-submit {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    min-height: clamp(2.4rem, 5vh, 2.85rem);
    font-size: clamp(0.9rem, 1.7vh, 1rem);
    box-shadow:
        0 14px 32px rgba(0, 120, 200, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.page-auth-login--3d .home-3d-submit:hover,
.page-auth-login--3d .home-3d-submit:focus {
    transform: translateY(-1px);
}

.page-auth-login--3d .home-3d-btn-secondary {
    border-color: rgba(0, 201, 252, 0.45);
    color: #b2fbff;
    background: rgba(0, 201, 252, 0.08);
    min-height: 2.65rem;
    touch-action: manipulation;
}

.page-auth-login--3d .home-3d-btn-secondary:hover {
    background: rgba(0, 201, 252, 0.16);
    color: #fff;
    border-color: rgba(0, 201, 252, 0.65);
}

.page-auth-login--3d .home-3d-link-back {
    color: #b2fbff !important;
    text-decoration: none;
    touch-action: manipulation;
}

.page-auth-login--3d .home-3d-link-back:hover {
    color: #fff !important;
}

.page-auth-login--3d .home-3d-alert {
    font-size: 0.9rem;
    border-radius: 0.75rem;
}

.page-auth-login--3d .home-3d-otp-code {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #114d7a;
}

.page-auth-login--3d .home-3d-auth-footnote {
    margin: clamp(0.45rem, 1vh, 0.75rem) 0 0;
    font-size: clamp(0.65rem, 1.3vh, 0.78rem);
    line-height: 1.35;
    color: #a8b8d8 !important;
}

.page-auth-login--3d .form-check-input {
    pointer-events: auto;
    cursor: pointer;
}

/* Viewport-fit tweaks by screen height */
@media (max-height: 720px) {
    .page-public-3d .home-3d-logo-top img {
        max-height: min(12vh, 120px);
    }

    .page-home--3d .home-3d-footnote {
        display: none;
    }
}

@media (max-height: 600px) {
    .page-home--3d .home-3d-features {
        display: none;
    }

    .page-public-3d .home-3d-logo-top img {
        max-height: min(10vh, 90px);
    }

    body.page-public-3d.page-public-shell .site-footer-tagline {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .page-public-3d {
        --home-3d-nav-h: 64px;
    }

    .page-public-3d .home-3d-shape--ring,
    .page-public-3d .home-3d-shape--cube-a {
        opacity: 0.55;
    }

    .page-public-3d .home-3d-scene__floor,
    .page-public-3d .home-3d-scene__grid {
        opacity: 0.35;
    }
}

@media (max-width: 575.98px) {
    .page-home--3d .home-3d-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-public-3d .home-3d-shape--ring,
    .page-public-3d .home-3d-shape--prism,
    .page-public-3d .home-3d-shape--cube-b {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .page-home--3d .home-3d-feature {
        padding: clamp(0.4rem, 1vh, 0.65rem) 0.35rem;
    }
}

@media (min-width: 992px) {
    .page-home--3d .home-3d-features {
        gap: clamp(0.5rem, 1.2vh, 1rem);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .page-public-3d .home-3d-logo-top img {
        max-height: 14vh;
    }

    .page-home--3d .home-3d-features {
        display: none;
    }

    .page-auth-login--3d .home-3d-auth-footnote {
        display: none;
    }
}

/* In-app Android WebView: login after logout should not look like the public website */
html:has(body.page-in-android-app),
body.page-in-android-app.page-public-3d,
body.page-in-android-app.page-public-shell {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.page-in-android-app .home-main--android-app,
body.page-in-android-app .home-main--3d {
    height: auto !important;
    min-height: 100dvh;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding: 1rem 0 2rem;
}

body.page-in-android-app .home-3d-viewport-fit--app,
body.page-in-android-app .home-3d-viewport-fit {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block;
}

body.page-in-android-app .home-3d-viewport-fit__body {
    overflow: visible !important;
    display: block;
}

body.page-in-android-app .home-3d-auth {
    margin: 0 auto;
}

body.page-in-android-app .site-footer {
    display: none !important;
}
