/* ==========================================================================
   VGN 360 - ENTERPRISE PROFESSIONAL LOGIN & REAL 3D GALAXY
   ========================================================================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
    height: 100dvh;
    max-height: 100vh;
    width: 100vw;
    background: #020106;
    color: #0f172a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

button, input, select {
    font: inherit;
}

button, a, input, select {
    touch-action: manipulation;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #d10000;
    outline-offset: 3px;
}

/* Master Grid: Left Galaxy has INCREASED WIDTH (1fr vs 390px right) */
.login-card {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    min-height: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    margin: 0;
    overflow: hidden !important;
}

/* ==========================================================================
   LEFT PANEL: EXPANDED 3D REAL GALAXY UNIVERSE
   ========================================================================== */
.panel-left {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background: radial-gradient(ellipse at 50% 50%, #030108 0%, #010004 60%, #000001 100%);
}

.galaxy-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    isolation: isolate;
    z-index: 1;
}

.galaxy-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.galaxy-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
}

/* Soft Astronomical Cosmic Nebula */
.nebula {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(25, 35, 75, 0.16) 0%, rgba(18, 12, 40, 0.08) 45%, transparent 75%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* Clean Brand Header */
.galaxy-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 25;
    pointer-events: none;
}

.galaxy-header .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    pointer-events: auto;
}

.brand-svg-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

/* 1) CENTER LOGO AS THE SUN – white disc + warm golden corona & slowly rotating solar rays */
.galaxy-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ffffff 62%, #fff6e0 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 244, 214, 0.95);
    box-shadow:
        0 0 0 3px rgba(255, 228, 170, 0.55),
        0 0 18px 6px rgba(255, 214, 130, 0.80),
        0 0 46px 16px rgba(255, 170, 60, 0.42),
        0 0 110px 42px rgba(255, 130, 30, 0.16);
    pointer-events: none;
    z-index: 120;
    animation: sun-breathe 4s ease-in-out infinite;
}

/* Solar corona rays (two counter-rotating layers for a living-sun feel) */
.galaxy-core::before,
.galaxy-core::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.galaxy-core::before {
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 220, 150, 0) 0deg,
        rgba(255, 220, 150, 0.30) 3deg,
        rgba(255, 220, 150, 0) 7deg,
        rgba(255, 220, 150, 0) 15deg
    );
    -webkit-mask: radial-gradient(circle closest-side, transparent 33%, #000 36%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
    mask: radial-gradient(circle closest-side, transparent 33%, #000 36%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
    animation: sun-rays-spin 36s linear infinite;
}

.galaxy-core::after {
    width: 190px;
    height: 190px;
    margin: -95px 0 0 -95px;
    background: repeating-conic-gradient(
        from 6deg,
        rgba(255, 186, 90, 0) 0deg,
        rgba(255, 186, 90, 0.26) 5deg,
        rgba(255, 186, 90, 0) 11deg,
        rgba(255, 186, 90, 0) 24deg
    );
    -webkit-mask: radial-gradient(circle closest-side, transparent 43%, #000 46%, transparent 100%);
    mask: radial-gradient(circle closest-side, transparent 43%, #000 46%, transparent 100%);
    animation: sun-rays-spin 22s linear infinite reverse;
}

@keyframes sun-rays-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes sun-breathe {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(255, 228, 170, 0.55),
            0 0 18px 6px rgba(255, 214, 130, 0.80),
            0 0 46px 16px rgba(255, 170, 60, 0.42),
            0 0 110px 42px rgba(255, 130, 30, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(255, 232, 180, 0.65),
            0 0 24px 9px rgba(255, 218, 140, 0.90),
            0 0 60px 22px rgba(255, 175, 70, 0.48),
            0 0 140px 54px rgba(255, 135, 35, 0.20);
    }
}

.galaxy-center-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 66px;
    height: auto;
    object-fit: contain;
    filter: none !important;
}

/* Hide all unwanted legacy overlays */
.galaxy-intro,
.galaxy-status-pill,
.galaxy-footer-tag,
.cyber-glow-edge,
.brand-logo-aura,
.ai-badge-wrapper,
.ai-badge,
.core-pulsar-ring {
    display: none !important;
}

/* Clean Motion Toggle Footer */
.galaxy-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 32px 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 25;
    pointer-events: none;
}

#motionToggle {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

#motionToggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

#motionToggle span {
    margin-left: 5px;
}

/* ==========================================================================
   DEPARTMENTS: REAL 3D ROTATIONAL PLANETS (NO OVERLAPPING TEXT)
   ========================================================================== */
.departments {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.department {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transform-origin: center center;
    will-change: transform, opacity;
    transition: filter 0.25s ease;
}

/* Real 3D Spherical Planet with Continuous Axial Rotation */
.planet {
    display: block;
    position: relative;
    width: var(--size, 26px);
    height: var(--size, 26px);
    border-radius: 50%;
    background: var(--planet, #38bdf8);
    box-shadow: 
        0 0 16px var(--planet-glow, rgba(56, 189, 248, 0.5)),
        inset -5px -4px 8px rgba(0, 0, 0, 0.92),
        inset 2px 2px 4px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* 3D Axial Rotation Texture: realistic horizontal atmospheric cloud bands spinning along axial tilt */
.planet::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: rotate(var(--axial-tilt, 16deg));
    background-image: 
        radial-gradient(ellipse at 45% 50%, rgba(255, 255, 255, 0.28) 0%, transparent 60%),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255, 255, 255, 0.22) 3px,
            transparent 7px,
            rgba(0, 0, 0, 0.30) 11px,
            transparent 15px,
            rgba(255, 255, 255, 0.18) 19px,
            rgba(0, 0, 0, 0.40) 24px,
            transparent 28px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 12%,
            transparent 24%,
            rgba(0, 0, 0, 0.35) 36%,
            transparent 48%,
            rgba(255, 255, 255, 0.20) 60%,
            rgba(0, 0, 0, 0.38) 74%,
            transparent 88%,
            transparent 100%
        );
    background-size: 100% 28px, 100% 28px, 200% 100%;
    animation: planet-realistic-spin var(--spin-time, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
    z-index: 1;
}

@keyframes planet-realistic-spin {
    from { background-position-x: 0%, 0%, 0%; }
    to   { background-position-x: 0%, 0%, 200%; }
}

/* Permanent 3D Spherical Day/Night Terminator & Specular Sun Highlight (Stationary over spinning surface) */
.planet::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(
        circle at var(--sun-light-x, 32%) var(--sun-light-y, 28%),
        rgba(255, 255, 255, 0.70) 0%,
        rgba(255, 255, 255, 0.15) 24%,
        transparent 45%,
        rgba(3, 1, 8, 0.75) 75%,
        rgba(0, 0, 0, 0.98) 100%
    );
    box-shadow: 
        inset -4px -3px 8px rgba(0, 0, 0, 0.95),
        inset 2px 2px 4px rgba(255, 255, 255, 0.75);
}

/* 3D Tilted Planetary Rings for Saturnian/Jovian planets */
.planet-ring {
    position: absolute;
    inset: -5px -11px;
    border: 2px solid var(--ring-color, rgba(255, 255, 255, 0.85));
    border-radius: 50%;
    transform: rotate(var(--axial-tilt, -22deg)) scaleY(0.32);
    opacity: 0.90;
    pointer-events: none;
    box-shadow: 0 0 10px var(--planet-glow);
    z-index: 5;
}

/* Sleek Compact Holographic Badge */
.planet-label {
    display: inline-block;
    margin-top: 6px;
    padding: 3.5px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase !important;
    text-align: center;
    white-space: nowrap;
    color: #f8fafc;
    background: rgba(6, 6, 16, 0.82);
    border: 1px solid color-mix(in srgb, var(--planet, #38bdf8) 45%, rgba(255, 255, 255, 0.35));
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    transition: all 0.25s ease;
    pointer-events: auto;
}

.department:hover,
.department:focus-visible {
    z-index: 250 !important;
    filter: brightness(1.25);
    opacity: 1 !important;
}

.department:hover .planet,
.department:focus-visible .planet {
    transform: scale(1.18);
    box-shadow: 0 0 26px var(--planet-glow), inset -4px -3px 8px rgba(0, 0, 0, 0.7);
}

.department:hover .planet-label,
.department:focus-visible .planet-label {
    background: color-mix(in srgb, var(--planet) 45%, #08030b);
    border-color: #ffffff;
    box-shadow: 0 0 18px var(--planet-glow), 0 4px 18px rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.motion-paused .department,
.motion-paused .nebula,
.motion-paused .planet::before,
.motion-paused .galaxy-core,
.motion-paused .galaxy-core::before,
.motion-paused .galaxy-core::after {
    animation-play-state: paused !important;
}

/* Spotlit planet (its caption is currently showing) */
.department.is-spotlit .planet-label {
    background: color-mix(in srgb, var(--planet) 38%, #08030b);
    border-color: color-mix(in srgb, var(--planet) 70%, #ffffff);
    box-shadow: 0 0 16px var(--planet-glow), 0 4px 16px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   PLANET CAPTION SPOTLIGHT – related text comes & goes every 3 seconds
   ========================================================================== */
.planet-caption {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 400;
    max-width: 290px;
    pointer-events: none;
    will-change: transform;
}

.caption-inner {
    position: relative;
    padding: 10px 14px 11px;
    background: linear-gradient(160deg, rgba(14, 12, 30, 0.92), rgba(6, 5, 16, 0.92));
    border: 1px solid color-mix(in srgb, var(--cap-color, #38bdf8) 55%, rgba(255, 255, 255, 0.18));
    border-radius: 12px;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.65),
        0 0 22px color-mix(in srgb, var(--cap-color, #38bdf8) 30%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.planet-caption:not(.below) .caption-inner {
    transform: translateY(8px) scale(0.94);
}

.planet-caption.show .caption-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Little pointer towards the planet */
.caption-inner::after {
    content: "";
    position: absolute;
    left: var(--arrow-x, 50%);
    bottom: -6px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: rgba(8, 6, 18, 0.95);
    border-right: 1px solid color-mix(in srgb, var(--cap-color, #38bdf8) 55%, rgba(255, 255, 255, 0.18));
    border-bottom: 1px solid color-mix(in srgb, var(--cap-color, #38bdf8) 55%, rgba(255, 255, 255, 0.18));
    transform: rotate(45deg);
}

.planet-caption.below .caption-inner::after {
    bottom: auto;
    top: -6px;
    transform: rotate(225deg);
}

.caption-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.caption-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cap-color, #38bdf8);
    box-shadow: 0 0 10px var(--cap-color, #38bdf8);
}

.caption-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
}

.caption-text {
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 500;
    color: #cbd5e1;
}

/* ==========================================================================
   RIGHT PANEL: ELEGANT, LOOKABLE 3D EXECUTIVE CARD LOGIN (LIGHT MODE)
   ========================================================================== */
.panel-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    height: 100%;
    max-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f8fafc 55%, #edf2f7 100%);
    color: #0f172a;
    overflow: hidden !important;
    border-left: 1px solid #e2e8f0;
}

.login-card-container {
    width: 100%;
    max-width: 350px;
    margin: auto 0;
}

/* 3D ELEVATED WHITE CARD WITH BRAND RED ACCENT */
.login-form-box,
.panel-right > form {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3.5px solid #d10000;
    border-radius: 16px;
    padding: 20px 22px 18px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 20px 35px -4px rgba(15, 23, 42, 0.09),
        0 0 0 1px rgba(226, 232, 240, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-form-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.05),
        0 24px 44px -4px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(209, 0, 0, 0.18);
}

/* CENTERED LOGO: CRISP, CLEAN, ZERO SHADOW */
.brand-logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px auto !important;
    width: 100% !important;
    text-align: center !important;
}

.brand-logo-img {
    display: block !important;
    height: 44px !important;
    width: auto !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    object-fit: contain;
    filter: none !important;
    box-shadow: none !important;
    transition: transform 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

/* Welcome Heading */
.welcome-heading {
    text-align: center !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.portal-badge {
    display: none !important;
}

.welcome-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 2px 0;
    text-align: center;
}

.welcome-subtext {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 450;
}

/* INPUT BORDER ALWAYS VISIBLE */
.field-wrap {
    margin-bottom: 10px;
}

.field-wrap-select {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 650;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-shell:focus-within {
    border-color: #d10000;
    box-shadow: 0 0 0 3px rgba(209, 0, 0, 0.12), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input-icon {
    padding: 0 12px;
    color: #64748b;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.input-shell:focus-within .input-icon {
    color: #d10000;
}

.input-shell input,
.input-shell select {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: #0f172a;
    padding: 8px 12px 8px 0;
    font-size: 13.5px;
    font-weight: 450;
    min-height: 38px;
    color-scheme: light;
}

.input-shell input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-shell select {
    appearance: none;
    cursor: pointer;
}

.input-shell select option {
    background: #ffffff;
    color: #0f172a;
}

.pos-rel {
    position: relative;
}

.select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 0.72rem;
}

.eye-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: #64748b;
    padding: 8px;
    cursor: pointer;
    font-size: 13.5px;
    transition: color 0.2s;
}

.eye-btn:hover {
    color: #0f172a;
}

/* SIGN IN BUTTON */
.btn-signin {
    position: relative;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #b50000;
    border-radius: 9px;
    background: linear-gradient(135deg, #d10000 0%, #b80000 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(209, 0, 0, 0.25);
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -0.1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-signin:hover {
    background: linear-gradient(135deg, #e60000 0%, #c40000 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(209, 0, 0, 0.35);
}

.btn-signin:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(209, 0, 0, 0.2);
}

.btn-shine,
.login-secure-footer {
    display: none !important;
}

.card-security-footer {
    display: none !important;
}

.err-msg {
    display: block;
    font-size: 11.5px;
    color: #b91c1c;
    margin-top: 5px;
    font-weight: 500;
}

.alert-box {
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}



/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 950px) {
    .login-card {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
    .panel-right {
        padding: 24px 20px;
    }
}

@media (max-height: 740px) and (min-width: 601px) {
    .panel-right {
        padding: 20px 24px;
    }
    .login-form-box,
    .panel-right > form {
        padding: 24px 22px 20px;
    }
    .brand-logo-container {
        margin-bottom: 10px !important;
    }
    .brand-logo-img {
        height: 56px !important;
    }
    .welcome-heading {
        margin-bottom: 14px !important;
    }
    .welcome-title {
        font-size: 19px;
    }
    .field-wrap {
        margin-bottom: 12px;
    }
    .field-wrap-select {
        margin-bottom: 16px;
    }
    .input-shell input,
    .input-shell select {
        min-height: 40px;
        font-size: 13px;
    }
    .btn-signin {
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .login-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 1fr) auto;
    }
    .galaxy-header {
        padding: 14px 18px;
    }
    .brand-svg-logo {
        height: 32px;
    }
    .galaxy-footer {
        display: none;
    }
    .panel-right {
        padding: 24px 18px;
        border-left: 0;
        border-top: 1px solid #e2e8f0;
    }
    .login-form-box,
    .panel-right > form {
        padding: 24px 20px;
        border-radius: 14px;
    }
    .brand-logo-img {
        height: 54px !important;
    }
    .welcome-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .planet::before {
        animation: none !important;
    }
    .department {
        transition: none !important;
    }
}

/* ==========================================================================
   HUMAN ROCKET FLIGHT & FULL-PAGE DEPARTMENT DOSSIER HUD
   ========================================================================== */
.rocket-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rocket-hud.active {
    opacity: 1;
    pointer-events: auto;
}

/* Cockpit Flight Target Reticle */
.cockpit-reticle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rocket-hud.active .cockpit-reticle {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
}

.reticle-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--hud-color, #38bdf8);
}

.reticle-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.reticle-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.reticle-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.reticle-br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.reticle-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
}
.reticle-cross::before,
.reticle-cross::after {
    content: "";
    position: absolute;
    background: var(--hud-color, #38bdf8);
}
.reticle-cross::before { left: 6px; top: 0; width: 2px; height: 14px; }
.reticle-cross::after { left: 0; top: 6px; width: 14px; height: 2px; }

/* ==========================================================================
   REAL ESTATE ERP DEPARTMENT HIGHLIGHTS OVERLAY & DOSSIER HUD
   ========================================================================== */
.dossier-card {
    position: relative;
    max-width: 980px;
    width: 95%;
    max-height: 88vh;
    background: rgba(8, 6, 20, 0.96);
    border: 1.5px solid var(--hud-color, #38bdf8);
    border-radius: 18px;
    padding: 18px 22px 14px;
    text-align: left;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.96),
        0 0 35px var(--hud-glow, rgba(56, 189, 248, 0.35));
    transform: scale(0.92) translateY(15px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden !important;
}

.rocket-hud.active .dossier-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.dossier-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 8px;
}

.dossier-header-branding {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.erp-main-title {
    font-size: 13px;
    font-weight: 850;
    color: #ef4444;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.erp-divider {
    color: #475569;
    font-size: 12px;
}

.erp-sub-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.3px;
}

.carousel-nav-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-dept-step {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dept-step:hover {
    background: var(--hud-color, #38bdf8);
    border-color: #ffffff;
    color: #0b0819;
    transform: scale(1.08);
    box-shadow: 0 0 12px var(--hud-glow, rgba(56, 189, 248, 0.5));
}

.dept-counter-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px 9px;
    border-radius: 12px;
}

.btn-carousel-close {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-carousel-close:hover {
    background: #dc2626;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.dossier-header-wrap {
    margin-bottom: 12px;
}

.dossier-title {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: 0.2px;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* Highlights Content Viewport - ZERO VERTICAL SCROLL */
.dossier-content-scroll {
    position: relative;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(88vh - 130px);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.dossier-content-scroll::-webkit-scrollbar {
    display: block !important;
    width: 5px !important;
    height: 5px !important;
}

.dossier-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dossier-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Multi-column grid for subheadings (Dept 11 & 12) so all items fit cleanly with no scroll */
.dept-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
    width: 100%;
}

.dept-sections-grid.dept-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 860px) {
    .dept-sections-grid,
    .dept-sections-grid.dept-grid-3 {
        grid-template-columns: 1fr;
    }
}

.dept-section-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Bullet list and rows */
.dept-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dept-bullet-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--hud-color, #38bdf8);
    border-radius: 8px;
    padding: 7px 11px;
    transition: all 0.2s ease;
}

.dept-bullet-row:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: color-mix(in srgb, var(--hud-color, #38bdf8) 65%, rgba(255, 255, 255, 0.2));
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bullet-dot {
    flex-shrink: 0;
    color: var(--hud-color, #38bdf8);
    font-size: 16px;
    line-height: 1;
    margin-top: -1px;
    font-weight: 900;
}

.bullet-text {
    font-size: 12px;
    line-height: 1.4;
    color: #f1f5f9;
    font-weight: 500;
    letter-spacing: 0.05px;
}

/* Subheadings for Presales (Call System) and Sales (Automation, Data & Reporting) */
.dept-subheading-block {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.dept-subheading-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--hud-color, #38bdf8);
    letter-spacing: 0.3px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer Controls & Quick-jump Dots */
.dossier-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dept-dots-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 70%;
}

.dept-quick-dot {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.dept-quick-dot:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.dept-quick-dot.active {
    background: var(--hud-color, #38bdf8);
    border-color: #ffffff;
    color: #080516;
    box-shadow: 0 0 10px var(--hud-color, #38bdf8);
    font-weight: 800;
}

.dossier-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-orbit-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #d10000;
    color: #ffffff;
    border: 1px solid #ff4d4d;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(209, 0, 0, 0.45);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-orbit-return:hover {
    background: #b50000;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(209, 0, 0, 0.65);
}

.btn-orbit-return:active {
    transform: translateY(0);
}

