body {
    font-family: 'Inter', sans-serif !important;
    color: #0d1117;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    padding-top: 5vh;
    /* Standard desktop spacing */
}

/* Settings Button (Match Reference) */
#admin-trigger {
    cursor: pointer;
    background-color: #f8fafc !important;
    /* bg-slate-50 */
    border: 1px solid #f1f5f9 !important;
    /* border-slate-100 */
    color: #94a3b8 !important;
    /* text-slate-400 */
}

#admin-trigger:hover {
    background-color: #0f172a !important;
    /* bg-slate-900 */
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    body {
        padding-top: 0 !important;
        /* Start from top to allow settings button placement at top right */
    }

    /* Responsive Spacer Variable */
    :root {
        --visibility-spacer: 40vw;
        /* Brought higher from 55vw */
    }

    /* Landscape adjustment for tablets/wide mobiles */
    @media (orientation: landscape) {
        :root {
            --visibility-spacer: 8vw;
            /* Slightly smaller */
        }

        #bg-parallax {
            background-size: 100% auto !important;
            background-position: center top !important;
        }

        /* Override Tailwind sm: min-height constraints that trigger in landscape due to width */
        #content-area {
            min-height: 0 !important;
        }

        /* Ensure spacer follows variable and doesn't stick to desktop/sm height */
        #input-view>div:first-child,
        #result-view>div:first-child {
            height: var(--visibility-spacer) !important;
        }
    }
}

#app {
    position: relative;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 10;
}

/* Sharp Image Inside: Displaying the bg png as requested */
/* Interior layer legacy - kept empty to avoid layout shifts if referenced */
#app::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}


/* Removed all interior image layers to keep the card clean white */


/* Removed duplicate bg image layers from #app to satisfy "no bg png again" */

#bg-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #7c5ba8;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    will-change: transform;
}

/* Triggered by JS */
body.bg-ready::before,
#app.bg-ready::before {
    opacity: 1 !important;
}

/* Background image will be injected via JS only for Desktop to save mobile memory */

/* Result View Styling */
body.internal-clean::before {
    background: #FFFFFF !important;
    background-image: none !important;
}

body.internal-clean #app {
    background: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.internal-clean #app::before {
    display: none !important;
}


h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline & Scrollbar */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% - 0.5rem);
    background: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shadow-premium {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02), 0 20px 25px -5px rgba(0, 0, 0, 0.03);
}

.text-black-bold {
    color: #000000 !important;
    font-weight: 700 !important;
}

.text-black-black {
    color: #000000 !important;
    font-weight: 900 !important;
}

.transition-soft {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro-animations */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.02);
}

.hover-lift:active {
    transform: translateY(-1px) scale(0.98);
}

.tap-effect {
    transition: transform 0.1s ease;
}

.tap-effect:active {
    transform: scale(0.95);
}

.glass-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
}

@supports (scrollbar-width: none) {
    .no-scrollbar {
        scrollbar-width: none;
    }
}

/* Force Left Alignment for Inputs and Placeholders */
input#phone-input,
input#name-input {
    text-align: left !important;
}

/* Individual selectors for placeholder stability */
input#phone-input::-webkit-input-placeholder {
    text-align: left !important;
    opacity: 1;
    padding-left: 0 !important;
}

input#name-input::-webkit-input-placeholder {
    text-align: left !important;
    opacity: 1;
    padding-left: 0 !important;
}

input#phone-input::-moz-placeholder {
    text-align: left !important;
    opacity: 1;
}

input#name-input::-moz-placeholder {
    text-align: left !important;
    opacity: 1;
}

input#phone-input:-ms-input-placeholder {
    text-align: left !important;
    opacity: 1;
}

input#name-input:-ms-input-placeholder {
    text-align: left !important;
    opacity: 1;
}

input#phone-input::placeholder {
    text-align: left !important;
    opacity: 1;
}

input#name-input::placeholder {
    text-align: left !important;
    opacity: 1;
}
