/* GConfig welcome — Neon Glass (full v2.0 aesthetic when html.theme-future) */

html.theme-future body.welcome-page {
    position: relative;
    z-index: 0;
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

html.theme-future body.welcome-page > header,
html.theme-future body.welcome-page > .hero,
html.theme-future body.welcome-page > .cards,
html.theme-future body.welcome-page > footer {
    position: relative;
    z-index: 1;
}

/* ── Header (matches v2 top-bar) ── */
html.theme-future body.welcome-page > header {
    background: rgba(8, 12, 20, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 160, 0.18) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
}

html.theme-future body.welcome-page .header-page-title {
    background: linear-gradient(90deg, var(--green-light), #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

html.theme-future body.welcome-page .header-brand .logo-g,
html.theme-future body.welcome-page .header-brand .logo-config {
    fill: url(#logoConfigGradient) !important;
}

html.theme-future body.welcome-page #loader-alien .logo-g,
html.theme-future body.welcome-page #loader-alien .logo-config {
    fill: url(#logoConfigGradientLoader) !important;
}

html.theme-future body.welcome-page .header-brand .logo-tagline,
html.theme-future body.welcome-page #loader-alien .logo-tagline {
    fill: #7a8f99 !important;
}

html.theme-future body.welcome-page .logo-alien {
    filter: drop-shadow(0 0 4px rgba(92, 255, 200, 0.85))
            drop-shadow(0 0 10px rgba(0, 229, 160, 0.55))
            drop-shadow(0 0 18px rgba(0, 229, 160, 0.28));
    transition: filter 0.35s ease;
}

html.theme-future body.welcome-page .header-brand .logo-g,
html.theme-future body.welcome-page .header-brand .logo-config {
    transition: filter 0.35s ease;
}

html.theme-future body.welcome-page .header-brand:has(.logo-alien:hover, .logo-g:hover, .logo-config:hover) .logo-alien {
    filter: drop-shadow(0 0 8px rgba(92, 255, 200, 1))
            drop-shadow(0 0 18px rgba(0, 229, 160, 0.85))
            drop-shadow(0 0 32px rgba(0, 229, 160, 0.45));
}

html.theme-future body.welcome-page .header-brand:has(.logo-alien:hover, .logo-g:hover, .logo-config:hover) .logo-g,
html.theme-future body.welcome-page .header-brand:has(.logo-alien:hover, .logo-g:hover, .logo-config:hover) .logo-config {
    filter: drop-shadow(0 0 6px rgba(92, 255, 200, 0.95))
            drop-shadow(0 0 14px rgba(0, 229, 160, 0.65))
            drop-shadow(0 0 24px rgba(125, 211, 252, 0.4));
}

html.theme-future body.welcome-page .header-brand,
html.theme-future body.welcome-page .header-brand svg,
html.theme-future body.welcome-page #loader-alien,
html.theme-future body.welcome-page #loader-alien svg,
html.theme-future body.welcome-page #loader {
    overflow: visible;
}

/* ── Top actions slide toggles — neon glass HUD (beats style.css + inline classic) ── */
html.theme-future body.welcome-page #topActions.top-actions,
html.theme-future body.welcome-page #topActions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

html.theme-future body.welcome-page #topActions .slide-toggle,
html.theme-future body.welcome-page #topActions #lang-bar.slide-toggle {
    position: relative;
    padding: 2px;
    border: 1px solid rgba(92, 255, 200, 0.32) !important;
    border-radius: 8px !important;
    background: rgba(8, 14, 22, 0.62) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 14px rgba(0, 229, 160, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

html.theme-future body.welcome-page #topActions .slide-toggle:hover,
html.theme-future body.welcome-page #topActions #lang-bar.slide-toggle:hover {
    border-color: rgba(92, 255, 200, 0.5) !important;
    box-shadow:
        0 0 20px rgba(0, 229, 160, 0.22),
        0 0 36px rgba(0, 180, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.theme-future body.welcome-page #topActions .slide-toggle-thumb {
    top: 2px !important;
    bottom: 2px !important;
    left: 2px !important;
    width: calc(50% - 2px) !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #00b87a, #00e5a0) !important;
    box-shadow: 0 0 16px rgba(0, 229, 160, 0.45);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html.theme-future body.welcome-page #topActions .slide-toggle[data-active="1"] .slide-toggle-thumb {
    transform: translateX(calc(100% + 4px)) !important;
}

html.theme-future body.welcome-page #topActions .slide-toggle--version .slide-toggle-thumb,
html.theme-future body.welcome-page #topActions .slide-toggle--lang .slide-toggle-thumb {
    background: linear-gradient(135deg, #00b87a, #00e5a0 55%, #5cffc8) !important;
    box-shadow: 0 0 16px rgba(0, 229, 160, 0.45);
}

html.theme-future body.welcome-page #topActions .slide-toggle--theme .slide-toggle-thumb {
    background: linear-gradient(135deg, #5cffc8, #7dd3fc) !important;
    box-shadow: 0 0 16px rgba(125, 211, 252, 0.4);
}

html.theme-future body.welcome-page #topActions button.slide-toggle-btn,
html.theme-future body.welcome-page #topActions button.slide-toggle-btn.lang-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: rgba(122, 143, 153, 0.95) !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

html.theme-future body.welcome-page #topActions button.slide-toggle-btn.active,
html.theme-future body.welcome-page #topActions button.slide-toggle-btn.lang-btn.active {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

html.theme-future body.welcome-page #topActions .slide-toggle--version button.slide-toggle-btn.active,
html.theme-future body.welcome-page #topActions .slide-toggle--lang button.slide-toggle-btn.active {
    color: #041410 !important;
}

html.theme-future body.welcome-page #topActions .slide-toggle--theme button.slide-toggle-btn.active {
    color: #041018 !important;
}

html.theme-future body.welcome-page #topActions button.slide-toggle-btn:hover:not(.active),
html.theme-future body.welcome-page #topActions button.slide-toggle-btn.lang-btn:hover:not(.active) {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--green-light) !important;
    text-shadow: 0 0 10px rgba(92, 255, 200, 0.35);
}

html.theme-future body.welcome-page #topActions .slide-toggle--theme button.slide-toggle-btn:hover:not(.active) {
    color: #7dd3fc !important;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.35);
}

/* ── Hero glass panel ── */
html.theme-future body.welcome-page .hero {
    padding: 28px 24px 36px;
}

html.theme-future body.welcome-page .hero p {
    color: var(--muted) !important;
    max-width: 580px;
    margin: 0 auto;
    padding: 22px 28px;
    background: rgba(12, 18, 28, 0.72);
    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 32px rgba(0, 229, 160, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    line-height: 1.65;
    letter-spacing: 0.02em;
    font-size: 15px;
}

/* ── HUD glass cards ── */
html.theme-future body.welcome-page .cards {
    gap: 22px;
    padding-bottom: 56px;
}

html.theme-future body.welcome-page .card {
    background: rgba(12, 18, 28, 0.78) !important;
    border: 1px solid rgba(0, 229, 160, 0.18) !important;
    border-radius: var(--radius);
    box-shadow:
        0 0 32px rgba(0, 229, 160, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

html.theme-future body.welcome-page .card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 160, 0.42) !important;
    box-shadow:
        0 8px 36px rgba(0, 229, 160, 0.14),
        0 0 0 1px rgba(0, 180, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.theme-future body.welcome-page .card-icon-area {
    background:
        radial-gradient(ellipse 80% 80% at 50% 20%, rgba(0, 229, 160, 0.2), transparent 60%),
        linear-gradient(180deg, rgba(0, 229, 160, 0.1) 0%, rgba(8, 12, 20, 0.5) 100%) !important;
    border-bottom: 1px solid rgba(0, 229, 160, 0.1);
}

html.theme-future body.welcome-page .card-icon-area svg {
    color: #5cffc8 !important;
    filter: drop-shadow(0 0 10px rgba(0, 229, 160, 0.35));
}

html.theme-future body.welcome-page .card-icon-area .beds-card-icon {
    filter: drop-shadow(0 0 10px rgba(0, 229, 160, 0.35));
}

html.theme-future body.welcome-page .card-icon-area svg [stroke] {
    stroke: #5cffc8;
}

html.theme-future body.welcome-page .card-icon-area svg [fill="#fff"],
html.theme-future body.welcome-page .card-icon-area svg [fill="#ffffff"] {
    fill: rgba(8, 14, 22, 0.92);
}

html.theme-future body.welcome-page .card-icon-area svg [fill="#1a6b2f"] {
    fill: rgba(0, 229, 160, 0.55);
}

html.theme-future body.welcome-page .card-icon-area .beds-card-icon [fill-opacity="0.12"] {
    fill: rgba(0, 229, 160, 0.14);
}

html.theme-future body.welcome-page .card-icon-area .beds-card-icon [fill-opacity="0.42"] {
    fill: rgba(0, 229, 160, 0.48);
}

html.theme-future body.welcome-page .card-body {
    background: transparent;
}

html.theme-future body.welcome-page .card-title {
    color: var(--green-light) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

html.theme-future body.welcome-page .card-desc {
    color: var(--muted) !important;
    font-size: 0.85rem;
}

html.theme-future body.welcome-page .card-btn {
    background: linear-gradient(135deg, #00a870, #00e5a0 50%, #00c4ff) !important;
    box-shadow: 0 4px 18px rgba(0, 229, 160, 0.3);
    color: #041410 !important;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
}

html.theme-future body.welcome-page .card-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 24px rgba(0, 229, 160, 0.45) !important;
    background: linear-gradient(135deg, #00a870, #00e5a0 50%, #00c4ff) !important;
    color: #041410 !important;
}

@media (max-width: 520px) {
    html.theme-future body.welcome-page .cards {
        padding: 0 18px 88px;
        gap: 18px;
    }

    html.theme-future body.welcome-page .card-body {
        padding: 18px 16px 20px;
    }

    html.theme-future body.welcome-page .card-btn {
        margin-top: 4px;
        padding: 12px 16px;
        min-height: 44px;
    }
}

/* ── Footer (matches v2 wizard-nav tone) ── */
html.theme-future body.welcome-page footer {
    background: rgba(8, 12, 20, 0.92) !important;
    border-top: 1px solid rgba(0, 229, 160, 0.15) !important;
    color: var(--muted) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    text-transform: uppercase;
}

/* ── Neon loader ── */
html.theme-future body.welcome-page #loader {
    background: rgba(6, 8, 13, 0.96) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html.theme-future body.welcome-page #loader-alien {
    animation: welcomeLoaderPulse 2s ease-in-out infinite;
    overflow: visible;
}

html.theme-future body.welcome-page .loader-spinner {
    display: block;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 229, 160, 0.15);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: welcomeSpin 0.75s linear infinite;
    box-shadow: 0 0 20px rgba(0, 229, 160, 0.3);
}

html.theme-future body.welcome-page #loader-msg {
    color: var(--green-light) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
}

@keyframes welcomeSpin {
    to { transform: rotate(360deg); }
}

@keyframes welcomeLoaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

@media (max-width: 720px) {
    html.theme-future body.welcome-page .top-actions {
        order: 2;
    }

    html.theme-future body.welcome-page .hero p {
        padding: 18px 20px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.theme-future body::before {
        animation: none;
    }

    html.theme-future body.welcome-page .loader-spinner,
    html.theme-future body.welcome-page #loader-alien {
        animation: none;
    }
}
