/* ==========================================================================
   EMDR CABIN – MAIN STYLESHEET
   Curated Space-Cyber Aesthetic with immersive dark modes and neon accents
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #05060f;
    --card-bg: linear-gradient(135deg, rgba(13, 14, 33, 0.45) 0%, rgba(6, 7, 18, 0.65) 100%);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 94, 58, 0.25);
    
    --text-main: #f0f2ff;
    --text-muted: #8b92b6;
    
    /* Neon Colors */
    --color-emdr: #ff9900;
    --color-emdr-glow: #ff5e3a;
    --color-cyan: #00f0ff;
    --color-violet: #a855f7;
    --color-emerald: #10b981;
    --color-rose: #f43f5e;
    --color-red: #ff2a5f;
    
    /* Fonts */
    --font-cyber: 'Share Tech Mono', monospace;
    --font-main: 'Outfit', 'Noto Sans SC', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 15%, #0e0d29 0%, #05060f 70%),
        radial-gradient(circle at 10% 85%, #1c0e08 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, #0a1f26 0%, transparent 45%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Starry space ambient background overlay */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    animation: floatNebula 35s infinite alternate ease-in-out;
}

.nebula-gold {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.7) 0%, rgba(255, 94, 58, 0) 70%);
    top: -5vw;
    right: 5vw;
}

.nebula-violet {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(139, 92, 246, 0) 70%);
    bottom: -10vw;
    left: -10vw;
    animation-duration: 40s;
}

@keyframes floatNebula {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(6vw, 6vh) scale(1.1) rotate(60deg); }
}

.starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255,255,255,0.15) 1px, transparent 0),
        radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 0);
    background-size: 80px 80px, 150px 150px;
    background-position: 0 0, 40px 40px;
    opacity: 0.45;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    color: var(--color-emdr);
    border-color: rgba(255, 153, 0, 0.4);
    background: rgba(255, 153, 0, 0.1);
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.2);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   WORKSPACE CONTAINER & HEADER
   ========================================================================== */
.workspace-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 35px 25px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
}

.workspace-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-emdr);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-emdr-glow);
    animation: beacon 2s infinite ease-in-out;
}

@keyframes beacon {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px var(--color-emdr-glow); }
}

.logo-text {
    font-family: var(--font-cyber);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: bold;
}

.pilot-badge {
    font-family: var(--font-cyber);
    font-size: 0.72rem;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--color-cyan);
    margin-left: 8px;
    box-shadow: 0 0 10px rgba(0,240,255,0.08);
}

.main-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #ffcc80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 153, 0, 0.1);
}

.main-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 820px;
    line-height: 1.6;
}

/* ==========================================================================
   APP CORE LAYOUT GRID
   ========================================================================== */
.app-layout {
    display: grid;
    grid-template-columns: 340px 1fr 360px;
    gap: 25px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1200px) {
    .app-layout {
        grid-template-columns: 320px 1fr;
    }
    .panel-right {
        grid-column: span 2;
        width: 100% !important;
    }
}

@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .panel-left, .panel-center, .panel-right {
        grid-column: span 1;
        width: 100%;
    }
}

/* ==========================================================================
   GLASSMORPHISM PANELS (Reused layout blocks)
   ========================================================================== */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 24px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(255, 153, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Accent top border highlight */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.35), transparent);
    opacity: 0.8;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
}

.panel-icon {
    width: 20px;
    height: 20px;
    color: var(--color-emdr);
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Animations */
.animate-slide-in {
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   LEFT CONSOLE STYLING (Inputs & Selectors)
   ========================================================================== */
.console-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.group-title {
    font-family: var(--font-cyber);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--color-emdr);
    font-weight: bold;
    text-transform: uppercase;
}

/* Path Buttons Grid */
.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.path-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.path-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.path-btn span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.path-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.path-btn.active {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 94, 58, 0.05) 100%);
    border-color: var(--color-emdr);
    box-shadow: 0 0 15px rgba(255, 94, 58, 0.15);
}

.path-btn.active .path-icon {
    color: var(--color-emdr);
    transform: scale(1.12);
}

.path-btn.active span:last-child {
    color: #fff;
    font-weight: 600;
}

/* Color dot picker styling */
.color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.color-picker-container {
    display: flex;
    gap: 10px;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: currentColor;
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 10px currentColor;
    transform: scale(1.15);
}

.dot-cyan { color: var(--color-cyan); }
.dot-violet { color: var(--color-violet); }
.dot-emerald { color: var(--color-emerald); }
.dot-gold { color: var(--color-emdr); }
.dot-rose { color: var(--color-rose); }

/* Premium Sliders (HUD styling) */
.slider-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slider-val-bubble {
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255, 153, 0, 0.08);
    border: 1px solid rgba(255, 153, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.hud-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: background 0.3s;
}

.hud-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
}

.hud-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--color-emdr);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-emdr-glow);
    margin-top: -5px;
    transition: transform 0.2s;
}

.hud-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 15px var(--color-emdr-glow);
}

.slider-desc {
    font-size: 0.72rem;
    color: rgba(139, 146, 182, 0.6);
    line-height: 1.4;
}

/* Select inputs custom HUD styling */
.select-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ff9900' d='M0 0l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 6px;
}

.hud-select:hover, .hud-select:focus {
    border-color: rgba(255, 153, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.6);
}

.hud-select option {
    background-color: #0c0d18;
    color: #fff;
    padding: 10px;
}

/* ==========================================================================
   CENTER PANEL (Visual Track Screen)
   ========================================================================== */
.panel-center {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.emdr-screen-wrapper {
    width: 100%;
    height: 480px;
    background-color: #020309;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.95),
        0 15px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    pointer-events: none;
    opacity: 0.7;
}

/* Target center helper focus crosshair */
.center-focus-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.center-focus-cross::before, .center-focus-cross::after {
    content: '';
    position: absolute;
    background-color: #fff;
}

.center-focus-cross::before {
    top: 4px; left: -10px; width: 30px; height: 2px;
}

.center-focus-cross::after {
    top: -10px; left: 4px; width: 2px; height: 30px;
}

.emdr-screen-wrapper:hover .center-focus-cross {
    opacity: 0.3;
}

/* Subtle Horizontal Guideline Track */
.emdr-guideline-track {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.08) 20%, rgba(0, 240, 255, 0.08) 80%, transparent);
    pointer-events: none;
    z-index: 1;
}

/* Fullscreen Toggle overlay button */
.screen-action-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.screen-action-btn:hover {
    color: #fff;
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.08);
}

.screen-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Fullscreen State Overrides */
.emdr-screen-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    background-color: #000;
}

.emdr-screen-wrapper.fullscreen .screen-action-btn {
    top: 30px;
    right: 30px;
    padding: 10px 18px;
    font-size: 0.8rem;
    background: rgba(15, 15, 15, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

.emdr-screen-wrapper.fullscreen .center-focus-cross {
    opacity: 0.1 !important;
}

.emdr-screen-wrapper.fullscreen .screen-session-status {
    bottom: 40px;
    left: 40px;
}

.screen-overlay-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 480px;
    text-align: center;
    background: rgba(5, 6, 15, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: all 0.4s ease;
}

.screen-overlay-instruction.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.instruction-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-emdr);
    filter: blur(40px);
    opacity: 0.15;
    top: -20px;
    left: calc(50% - 40px);
}

.screen-overlay-instruction h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #fff, #ffe5cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.screen-overlay-instruction p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.screen-overlay-instruction .warning-alert {
    color: #ffe680;
    border-top: 1px solid rgba(255, 230, 128, 0.1);
    padding-top: 10px;
    margin-top: 5px;
    font-weight: 500;
}

.emdr-energy-orb {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 15; /* Elevated above instruction overlay (z-index: 5) */
    cursor: pointer;
    opacity: 0; /* Fade opacity instead of display to avoid layout reflows */
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s;
}

.orb-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #00f0ff; /* Solid fallback cyan color */
    box-shadow: 0 0 20px #00f0ff, 0 0 40px #00f0ff;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Active running sub-pulse of the orb */
.orb-core::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 1px solid #00f0ff;
    opacity: 0.35;
    animation: orbPulse 1.2s infinite ease-out;
}

@keyframes orbPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

.emdr-energy-orb.active {
    opacity: 1;
    pointer-events: auto;
}

.screen-session-status {
    position: absolute;
    bottom: 20px;
    left: 25px;
    font-family: var(--font-cyber);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--color-red);
    font-weight: bold;
    display: none;
    align-items: center;
    gap: 8px;
}

.screen-session-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
    animation: beacon 1s infinite alternate;
}

.screen-session-status.active {
    display: flex;
}

/* Session Master Bottom Bar Controls */
.session-master-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 25px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13, 14, 33, 0.55) 0%, rgba(6, 7, 18, 0.75) 100%);
}

.timer-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.countdown-display {
    font-family: var(--font-cyber);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 4px 16px;
    border-radius: 8px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-start-session {
    flex-grow: 1;
    max-width: 320px;
    background: linear-gradient(135deg, var(--color-emdr) 0%, var(--color-emdr-glow) 100%);
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 94, 58, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-start-session:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(255, 94, 58, 0.35),
        0 0 20px rgba(255, 94, 58, 0.2);
    filter: brightness(1.08);
}

.btn-start-session:active {
    transform: translateY(1px);
}

.btn-start-session.running {
    background: linear-gradient(135deg, var(--color-red) 0%, #d91c49 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 42, 95, 0.2);
}

/* ==========================================================================
   RIGHT CLINICAL ASSESSMENT PANEL (distress SUD scales wizard)
   ========================================================================== */
.panel-right {
    height: 100%;
}

.evaluation-wizard {
    width: 100%;
    position: relative;
}

.wizard-steps-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 480px;
}

/* Individual slide elements */
.wizard-step {
    flex-shrink: 0;
    width: 100%;
    display: none; /* Managed in JavaScript */
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.4s ease-out forwards;
}

.wizard-step.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-badge {
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--color-emdr);
    font-weight: bold;
    text-transform: uppercase;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Forms styling */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hud-textarea {
    width: 100%;
    height: 85px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--font-main);
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.hud-textarea:focus {
    border-color: rgba(255,153,0,0.3);
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 0 10px rgba(255,153,0,0.05);
}

.hud-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
}

.hud-input:focus {
    border-color: rgba(255,153,0,0.3);
    background-color: rgba(0,0,0,0.5);
}

/* SUD distress bubble indicator */
.sud-scale-bubble {
    font-family: var(--font-cyber);
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px currentColor;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sud-high {
    background: var(--color-red);
    color: var(--color-red);
}

.sud-med {
    background: var(--color-emdr-glow);
    color: var(--color-emdr-glow);
}

.sud-low {
    background: var(--color-emerald);
    color: var(--color-emerald);
}

.sud-scale-bubble span {
    color: #fff; /* Reset text color to white inside */
}

/* Custom SUD Distress Slider (distinguished from normal sliders) */
.sud-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-emerald) 0%, var(--color-emdr) 50%, var(--color-red) 100%);
    outline: none;
    border: 1px solid rgba(255,255,255,0.08);
}

.sud-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #000;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
    transition: transform 0.2s;
}

.sud-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sud-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.wizard-action-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 13px;
    color: var(--color-emdr);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.wizard-action-btn:hover {
    border-color: var(--color-emdr);
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 94, 58, 0.05) 100%);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.15);
    transform: translateY(-1px);
}

.action-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.action-row .btn-secondary {
    flex-grow: 1;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 13px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-row .btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.action-row .wizard-action-btn {
    flex-grow: 1.5;
}

/* Active running phase statistics block */
.active-session-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 16px;
}

.summary-item {
    display: flex;
    font-size: 0.8rem;
    line-height: 1.4;
}

.summary-item .lbl {
    color: var(--text-muted);
    width: 75px;
    flex-shrink: 0;
}

.summary-item .val {
    color: #fff;
    font-weight: 500;
}

.running-indicator-box {
    border: 1px dashed rgba(255, 153, 0, 0.2);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 153, 0, 0.01);
}

.scanner-laser {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-emdr), transparent);
    left: 0;
    top: 0;
    animation: laserScan 2s infinite ease-in-out;
}

@keyframes laserScan {
    0% { top: 0; opacity: 0; }
    30%, 70% { opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

.focus-alert {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.tip-alert {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Reassess Step Breathing guide circle */
.breathe-prompt-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.breathe-guide-mandala-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2), transparent);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transition: transform 3.5s ease-in-out;
}

.breathe-instruction-text {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-cyan);
}

/* STEP 4: Session results report styling */
.report-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}

.report-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.resilience-score {
    font-family: var(--font-cyber);
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-emerald);
}

/* Text / CSS bar chart for distress drop comparison */
.chart-container-cbt {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 25px 20px 20px;
    height: 180px;
}

.bar-chart-sud {
    display: flex;
    height: 100%;
    justify-content: space-around;
    align-items: flex-end;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    width: 90px;
}

.col-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.bar {
    width: 32px;
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    display: flex;
    justify-content: center;
}

.bar-initial {
    background: linear-gradient(0deg, rgba(255, 42, 95, 0.2) 0%, var(--color-red) 100%);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.25);
}

.bar-final {
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.2) 0%, var(--color-emerald) 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.bar-val {
    position: absolute;
    top: -22px;
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
}

.cognitive-installation-box {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cognitive-installation-box .tag {
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    color: var(--color-emerald);
    letter-spacing: 1px;
    font-weight: bold;
}

.cognitive-installation-box blockquote {
    font-size: 0.8rem;
    color: rgba(240, 242, 255, 0.85);
    line-height: 1.5;
    font-style: italic;
    border-left: 2px solid var(--color-emerald);
    padding-left: 10px;
}
