/* AURORA public portal — global (NOT Blazor-scoped) so html/body/#app unlock works */

html.is-storefront.is-aura-portal,
html.is-storefront.is-aura-portal body,
html.is-storefront.is-aura-portal #app {
    height: auto !important;
    max-height: none !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
    background: #050814 !important;
    position: relative !important;
}

html.is-storefront.is-aura-portal body {
    overflow-y: auto !important;
    touch-action: pan-y !important;
}

html.is-storefront.is-aura-portal #app {
    display: block !important;
    height: auto !important;
}

/* Floating 3D footer can rise above page content with top shadows */
html.is-storefront.is-aura-portal .aura-palace-footer {
    isolation: isolate;
}
html.is-storefront.is-aura-portal .aura-footer-float {
    will-change: transform;
}

/* Luxury inquiry fields — global so Blazor InputText is styled regardless of CSS isolation */
html.is-storefront.is-aura-portal .aura-palace-form input,
html.is-storefront.is-aura-portal .aura-palace-form textarea,
html.is-storefront.is-aura-portal .aura-palace-form .aura-input {
    width: 100% !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1.5px solid rgba(248, 209, 121, 0.5) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(42, 30, 18, 0.95), rgba(14, 12, 20, 0.98)) !important;
    color: #fff6d8 !important;
    padding: 0.9rem 1.05rem !important;
    font-size: 1.02rem !important;
    line-height: 1.45 !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 246, 208, 0.08),
        0 0 22px rgba(248, 209, 121, 0.1) !important;
    outline: none !important;
    caret-color: #f8d179 !important;
}
html.is-storefront.is-aura-portal .aura-palace-form textarea {
    min-height: 130px !important;
    resize: vertical !important;
}
html.is-storefront.is-aura-portal .aura-palace-form input::placeholder,
html.is-storefront.is-aura-portal .aura-palace-form textarea::placeholder {
    color: rgba(232, 220, 192, 0.55) !important;
    opacity: 1 !important;
}
html.is-storefront.is-aura-portal .aura-palace-form input:focus,
html.is-storefront.is-aura-portal .aura-palace-form textarea:focus {
    border-color: rgba(248, 209, 121, 0.88) !important;
    box-shadow:
        0 0 0 1px rgba(248, 209, 121, 0.42),
        0 0 28px rgba(248, 209, 121, 0.28) !important;
}
html.is-storefront.is-aura-portal .aura-palace-form .aura-field > span {
    font-size: 0.95rem !important;
    color: #f0dfa8 !important;
    font-family: 'Amiri', 'Cormorant Garamond', 'Tajawal', serif !important;
}

/* Palace gates — avoid 96vw + section padding overflow (RTL/LTR shift) */
html.is-storefront.is-aura-portal .aura-salon-inner {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
html.is-storefront.is-aura-portal .aura-gates-salon .aura-salon-inner {
    max-width: 1360px !important;
}
html.is-storefront.is-aura-portal .aura-gates-salon .aura-ops-grid {
    width: 100% !important;
    margin-inline: auto !important;
}

/* VR modal — large dialog + dock HUD (no scroll box) */
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-dialog {
    width: min(1480px, 98.5vw) !important;
    max-height: 96vh !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-view {
    height: min(78vh, 820px) !important;
    min-height: 420px !important;
    background: #1a120c !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-halls,
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-themes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
    justify-content: center !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-halls button,
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-themes button,
html.is-storefront.is-aura-portal #aura-vr-modal button.aura-vr-chip {
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    width: auto !important;
    min-height: 1.7rem !important;
    height: auto !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(248, 209, 121, 0.55) !important;
    background:
        linear-gradient(165deg, rgba(255, 246, 208, 0.95) 0%, rgba(212, 175, 55, 0.9) 45%, rgba(138, 106, 18, 0.92) 100%) !important;
    color: #1a1205 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.28rem !important;
    font-family: 'Tajawal', 'Amiri', serif !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
    margin: 0 !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-halls button:hover,
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-themes button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 0 14px rgba(248, 209, 121, 0.45) !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-halls button.is-active,
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-themes button.is-active {
    background: linear-gradient(145deg, #fff8e0, #f0d78c 38%, #aa771c) !important;
    box-shadow: 0 0 0 2px rgba(255, 232, 168, 0.55), 0 0 16px rgba(248, 209, 121, 0.5) !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-ico {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 0.9rem !important;
    height: 0.9rem !important;
    border-radius: 50% !important;
    background: rgba(26, 18, 5, 0.14) !important;
    font-size: 0.5rem !important;
    flex-shrink: 0 !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-txt {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: 8.2rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    clip: auto !important;
    clip-path: none !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-hud {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    inset-inline: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 1.6rem 1rem 0.7rem !important;
    text-align: center !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(248, 209, 121, 0.35) !important;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 6, 3, 0.55) 28%, rgba(10, 6, 3, 0.92) 100%) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-hud > * {
    pointer-events: auto !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-hint {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-label {
    font-family: 'Cinzel', 'Tajawal', serif !important;
    letter-spacing: 0.14em !important;
    font-size: 0.58rem !important;
}
html.is-storefront.is-aura-portal #aura-vr-modal .aura-vr-view canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Gallery play triangle — dark on gold (match hero cards) */
html.is-storefront.is-aura-portal .aura-play-badge {
    color: #1a1205 !important;
}
html.is-storefront.is-aura-portal .aura-play-badge svg,
html.is-storefront.is-aura-portal .aura-play-badge svg path {
    fill: #1a1205 !important;
    color: #1a1205 !important;
}

/* Featured / gallery badges — dark ink on gold (never pale-on-gold) */
html.is-storefront.is-aura-portal .aura-tile-feat,
html.is-storefront.is-aura-portal .aura-feat-badge,
html.is-storefront.is-aura-portal .aura-kind-chip,
html.is-storefront.is-aura-portal [class*="feat-badge"] {
    color: #1a1205 !important;
    -webkit-text-fill-color: #1a1205 !important;
    background: linear-gradient(135deg, #fff8e0 0%, #f0d78c 45%, #c9a227 100%) !important;
    border: 1px solid rgba(90, 60, 10, .4) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* Featured stage — flat VR portal + magic edge blur (global) */
html.is-storefront.is-aura-portal .aura-feat-stage,
html.is-storefront.is-aura-portal .aura-feat-rail {
    max-width: 100%;
    box-sizing: border-box;
    --feat-reel-sec: 30s;
    transform: none !important;
    perspective: none !important;
}
html.is-storefront.is-aura-portal .aura-feat-film {
    transform: none !important;
}
html.is-storefront.is-aura-portal .aura-feat-stage-viewport {
    overflow: hidden !important;
    position: relative;
}
html.is-storefront.is-aura-portal .aura-feat-void {
    position: absolute;
    top: 0; bottom: 0;
    width: clamp(28px, 4.2%, 48px) !important;
    z-index: 8;
    pointer-events: none;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}
html.is-storefront.is-aura-portal .aura-feat-void-l {
    left: 0;
    background: linear-gradient(90deg, rgba(5,4,3,.88), rgba(5,4,3,.35), transparent) !important;
}
html.is-storefront.is-aura-portal .aura-feat-void-r {
    right: 0;
    background: linear-gradient(270deg, rgba(5,4,3,.88), rgba(5,4,3,.35), transparent) !important;
}
html.is-storefront.is-aura-portal .aura-feat-sprocket {
    height: 32px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-color: #0b0a09 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='32' viewBox='0 0 36 32'%3E%3Crect width='36' height='32' fill='%230b0a09'/%3E%3Crect x='12' y='5' width='12' height='22' rx='2.4' fill='%23000000' stroke='%2335322e' stroke-width='1.1'/%3E%3Crect x='13.6' y='6.8' width='8.8' height='18.4' rx='1.6' fill='%23181614'/%3E%3C/svg%3E") !important;
    background-size: 36px 32px !important;
    background-repeat: repeat-x !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        inset 0 -1px 0 rgba(0,0,0,.7) !important;
    animation: auraPortalSprocketRoll var(--feat-reel-sec, 30s) linear infinite !important;
}
html.is-storefront.is-aura-portal .aura-feat-marquee {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    will-change: transform;
    animation: auraPortalFilmMarquee var(--feat-reel-sec, 30s) linear infinite !important;
    animation-play-state: running !important;
}
html.is-storefront.is-aura-portal .aura-feat-film:has(.aura-feat-card:hover) .aura-feat-marquee,
html.is-storefront.is-aura-portal .aura-feat-film:has(.aura-feat-card:focus-visible) .aura-feat-marquee {
    animation-play-state: paused !important;
}
html.is-storefront.is-aura-portal .aura-feat-sprocket {
    animation: auraPortalSprocketRoll var(--feat-reel-sec, 30s) linear infinite !important;
}
html.is-storefront.is-aura-portal .aura-feat-sprocket-bot {
    animation-direction: reverse !important;
}
html.is-storefront.is-aura-portal .aura-feat-film:has(.aura-feat-card:hover) .aura-feat-sprocket,
html.is-storefront.is-aura-portal .aura-feat-film:has(.aura-feat-card:focus-visible) .aura-feat-sprocket {
    animation-play-state: paused !important;
}
@keyframes auraPortalFilmMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-33.333333%, 0, 0); }
}
@keyframes auraPortalSprocketRoll {
    from { background-position: 0 0; }
    to { background-position: -36px 0; }
}
@media (max-width: 900px) {
    html.is-storefront.is-aura-portal .aura-feat-stage { --feat-reel-sec: 26s; }
    html.is-storefront.is-aura-portal .aura-feat-card {
        flex-basis: clamp(220px, 68vw, 280px) !important;
    }
    html.is-storefront.is-aura-portal .aura-planner-grid,
    html.is-storefront.is-aura-portal .aura-ops-grid,
    html.is-storefront.is-aura-portal .aura-suite-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 560px) {
    html.is-storefront.is-aura-portal .aura-feat-stage { --feat-reel-sec: 22s; }
    html.is-storefront.is-aura-portal .aura-feat-card {
        flex-basis: min(82vw, 300px) !important;
    }
}
