/**
 * Software 360° Real Video Virtual Tour & Interactive Showroom Styles
 * Adaptive Dynamic Light / Dark SaaS Theme Architecture
 * Displays 100% Authentic, Real Captured Software Screenshots from collegedemo
 */

:root {
    /* -------------------------------------------------------------------------
       LIGHT THEME VARIABLES (Default / Site Light Mode)
       ------------------------------------------------------------------------- */
    --tour-backdrop: rgba(15, 23, 42, 0.65);
    --tour-box-bg: #ffffff;
    --tour-box-border: #cbd5e1;
    --tour-box-shadow: 0 25px 70px -10px rgba(15, 23, 42, 0.28), 0 0 45px rgba(37, 99, 235, 0.12);

    --tour-header-bg: #ffffff;
    --tour-header-border: #e2e8f0;
    --tour-title-color: #0f172a;
    --tour-badge-bg: #ecfdf5;
    --tour-badge-border: #a7f3d0;
    --tour-badge-text: #059669;
    --tour-tag-real-bg: #fef2f2;
    --tour-tag-real-border: #fecaca;
    --tour-tag-real-text: #dc2626;

    --tour-ctrl-btn-bg: #f8fafc;
    --tour-ctrl-btn-border: #e2e8f0;
    --tour-ctrl-btn-text: #334155;
    --tour-ctrl-btn-hover-bg: #f1f5f9;
    --tour-ctrl-btn-hover-text: #0f172a;
    --tour-ctrl-btn-active-bg: #ecfdf5;
    --tour-ctrl-btn-active-border: #10b981;
    --tour-ctrl-btn-active-text: #059669;

    --tour-close-btn-bg: #f1f5f9;
    --tour-close-btn-border: #e2e8f0;
    --tour-close-btn-text: #475569;

    --tour-modules-bar-bg: #f8fafc;
    --tour-modules-bar-border: #e2e8f0;
    --tour-module-pill-bg: #ffffff;
    --tour-module-pill-border: #e2e8f0;
    --tour-module-pill-text: #475569;
    --tour-module-pill-hover-bg: #f1f5f9;
    --tour-module-pill-hover-text: #0f172a;
    --tour-module-pill-hover-border: #cbd5e1;
    --tour-module-pill-active-bg: linear-gradient(135deg, #fff1f2, #eff6ff);
    --tour-module-pill-active-border: #ef4444;
    --tour-module-pill-active-text: #b91c1c;
    --tour-module-pill-active-shadow: 0 2px 10px rgba(239, 68, 68, 0.18);
    --tour-module-pill-count-bg: #f1f5f9;
    --tour-module-pill-count-border: #e2e8f0;
    --tour-module-pill-count-text: #475569;

    --tour-timeline-bg: #e2e8f0;

    --tour-main-body-bg: #f1f5f9;

    --tour-sidebar-bg: #ffffff;
    --tour-sidebar-border: #e2e8f0;
    --tour-sidebar-scrollbar: #cbd5e1;
    --tour-search-wrap-bg: #f8fafc;
    --tour-search-wrap-border: #e2e8f0;
    --tour-search-bg: #ffffff;
    --tour-search-border: #cbd5e1;
    --tour-search-text: #0f172a;
    --tour-search-icon: #64748b;
    --tour-sidebar-header-bg: #f8fafc;
    --tour-sidebar-header-border: #e2e8f0;
    --tour-sidebar-header-text: #64748b;

    --tour-item-border: #f1f5f9;
    --tour-item-hover-bg: #f8fafc;
    --tour-item-active-bg: linear-gradient(90deg, #fff1f2, #eff6ff 80%);
    --tour-item-active-border: #d92d3a;
    --tour-item-num-color: #64748b;
    --tour-item-num-active: #dc2626;
    --tour-item-thumb-bg: #f1f5f9;
    --tour-item-thumb-border: #e2e8f0;
    --tour-item-title-color: #0f172a;
    --tour-item-url-color: #64748b;

    --tour-viewport-bg: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.08) 0%, #e2e8f0 95%);
    --tour-frame-bg: #ffffff;
    --tour-frame-border: #cbd5e1;
    --tour-frame-shadow: 0 16px 45px -5px rgba(15, 23, 42, 0.22), 0 0 30px rgba(37, 99, 235, 0.1);

    --tour-browser-bg: #f8fafc;
    --tour-browser-border: #e2e8f0;
    --tour-url-bg: #ffffff;
    --tour-url-border: #cbd5e1;
    --tour-url-text: #1e293b;
    --tour-live-chip-bg: #ecfdf5;
    --tour-live-chip-border: #a7f3d0;
    --tour-live-chip-text: #059669;

    --tour-stage-canvas-bg: #f8fafc;

    --tour-overlay-bg: rgba(255, 255, 255, 0.94);
    --tour-overlay-border: #e2e8f0;
    --tour-overlay-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    --tour-overlay-title: #0f172a;
    --tour-overlay-desc: #64748b;
    --tour-overlay-badge-bg: #eff6ff;
    --tour-overlay-badge-border: #bfdbfe;
    --tour-overlay-badge-text: #1d4ed8;

    --tour-bottom-bar-bg: #ffffff;
    --tour-bottom-bar-border: #e2e8f0;
    --tour-nav-btn-bg: #f8fafc;
    --tour-nav-btn-border: #e2e8f0;
    --tour-nav-btn-text: #334155;
    --tour-nav-btn-hover-bg: #f1f5f9;
    --tour-nav-btn-hover-text: #0f172a;
    --tour-counter-text: #64748b;
    --tour-counter-strong: #0f172a;
    --tour-speed-select-bg: #f8fafc;
    --tour-speed-select-border: #cbd5e1;
    --tour-speed-select-text: #0f172a;
}

html.dark {
    /* -------------------------------------------------------------------------
       DARK THEME VARIABLES (Active when html has .dark)
       ------------------------------------------------------------------------- */
    --tour-backdrop: rgba(4, 8, 20, 0.92);
    --tour-box-bg: #090e24;
    --tour-box-border: rgba(255, 255, 255, 0.16);
    --tour-box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.95), 0 0 60px rgba(37, 99, 235, 0.28);

    --tour-header-bg: rgba(11, 21, 51, 0.98);
    --tour-header-border: rgba(255, 255, 255, 0.12);
    --tour-title-color: #ffffff;
    --tour-badge-bg: rgba(16, 185, 129, 0.18);
    --tour-badge-border: rgba(16, 185, 129, 0.45);
    --tour-badge-text: #34d399;
    --tour-tag-real-bg: rgba(217, 45, 58, 0.25);
    --tour-tag-real-border: #d92d3a;
    --tour-tag-real-text: #fca5a5;

    --tour-ctrl-btn-bg: rgba(255, 255, 255, 0.08);
    --tour-ctrl-btn-border: rgba(255, 255, 255, 0.14);
    --tour-ctrl-btn-text: #cbd5e1;
    --tour-ctrl-btn-hover-bg: rgba(255, 255, 255, 0.18);
    --tour-ctrl-btn-hover-text: #ffffff;
    --tour-ctrl-btn-active-bg: rgba(16, 185, 129, 0.2);
    --tour-ctrl-btn-active-border: #10b981;
    --tour-ctrl-btn-active-text: #34d399;

    --tour-close-btn-bg: rgba(255, 255, 255, 0.08);
    --tour-close-btn-border: rgba(255, 255, 255, 0.14);
    --tour-close-btn-text: #ffffff;

    --tour-modules-bar-bg: rgba(7, 14, 34, 0.95);
    --tour-modules-bar-border: rgba(255, 255, 255, 0.08);
    --tour-module-pill-bg: rgba(255, 255, 255, 0.05);
    --tour-module-pill-border: rgba(255, 255, 255, 0.1);
    --tour-module-pill-text: #94a3b8;
    --tour-module-pill-hover-bg: rgba(255, 255, 255, 0.12);
    --tour-module-pill-hover-text: #ffffff;
    --tour-module-pill-hover-border: rgba(255, 255, 255, 0.22);
    --tour-module-pill-active-bg: linear-gradient(135deg, rgba(217, 45, 58, 0.3), rgba(37, 99, 235, 0.25));
    --tour-module-pill-active-border: #d92d3a;
    --tour-module-pill-active-text: #ffffff;
    --tour-module-pill-active-shadow: 0 0 12px rgba(217, 45, 58, 0.3);
    --tour-module-pill-count-bg: rgba(255, 255, 255, 0.1);
    --tour-module-pill-count-border: transparent;
    --tour-module-pill-count-text: #cbd5e1;

    --tour-timeline-bg: rgba(255, 255, 255, 0.1);

    --tour-main-body-bg: #040814;

    --tour-sidebar-bg: rgba(11, 21, 51, 0.98);
    --tour-sidebar-border: rgba(255, 255, 255, 0.1);
    --tour-sidebar-scrollbar: rgba(255, 255, 255, 0.2);
    --tour-search-wrap-bg: rgba(4, 8, 20, 0.6);
    --tour-search-wrap-border: rgba(255, 255, 255, 0.08);
    --tour-search-bg: rgba(255, 255, 255, 0.06);
    --tour-search-border: rgba(255, 255, 255, 0.14);
    --tour-search-text: #ffffff;
    --tour-search-icon: #64748b;
    --tour-sidebar-header-bg: rgba(4, 8, 20, 0.4);
    --tour-sidebar-header-border: rgba(255, 255, 255, 0.08);
    --tour-sidebar-header-text: #94a3b8;

    --tour-item-border: rgba(255, 255, 255, 0.04);
    --tour-item-hover-bg: rgba(255, 255, 255, 0.06);
    --tour-item-active-bg: linear-gradient(90deg, rgba(217, 45, 58, 0.22), rgba(37, 99, 235, 0.1));
    --tour-item-active-border: #d92d3a;
    --tour-item-num-color: #64748b;
    --tour-item-num-active: #f87171;
    --tour-item-thumb-bg: #1e293b;
    --tour-item-thumb-border: rgba(255, 255, 255, 0.12);
    --tour-item-title-color: #f1f5f9;
    --tour-item-url-color: #64748b;

    --tour-viewport-bg: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.14) 0%, #030712 90%);
    --tour-frame-bg: #0f172a;
    --tour-frame-border: rgba(255, 255, 255, 0.18);
    --tour-frame-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);

    --tour-browser-bg: #1e293b;
    --tour-browser-border: rgba(255, 255, 255, 0.1);
    --tour-url-bg: rgba(15, 23, 42, 0.85);
    --tour-url-border: rgba(255, 255, 255, 0.12);
    --tour-url-text: #cbd5e1;
    --tour-live-chip-bg: rgba(16, 185, 129, 0.15);
    --tour-live-chip-border: rgba(16, 185, 129, 0.35);
    --tour-live-chip-text: #34d399;

    --tour-stage-canvas-bg: #000000;

    --tour-overlay-bg: rgba(11, 21, 51, 0.88);
    --tour-overlay-border: rgba(255, 255, 255, 0.18);
    --tour-overlay-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --tour-overlay-title: #ffffff;
    --tour-overlay-desc: #94a3b8;
    --tour-overlay-badge-bg: rgba(30, 58, 138, 0.6);
    --tour-overlay-badge-border: rgba(59, 130, 246, 0.3);
    --tour-overlay-badge-text: #93c5fd;

    --tour-bottom-bar-bg: rgba(11, 21, 51, 0.98);
    --tour-bottom-bar-border: rgba(255, 255, 255, 0.12);
    --tour-nav-btn-bg: rgba(255, 255, 255, 0.08);
    --tour-nav-btn-border: rgba(255, 255, 255, 0.14);
    --tour-nav-btn-text: #cbd5e1;
    --tour-nav-btn-hover-bg: rgba(255, 255, 255, 0.16);
    --tour-nav-btn-hover-text: #ffffff;
    --tour-counter-text: #94a3b8;
    --tour-counter-strong: #ffffff;
    --tour-speed-select-bg: rgba(255, 255, 255, 0.08);
    --tour-speed-select-border: rgba(255, 255, 255, 0.14);
    --tour-speed-select-text: #ffffff;
}

/* Modal Backdrop */
.software-360-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--tour-backdrop);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    padding: 10px;
}

.software-360-modal.active {
    display: flex;
    opacity: 1;
}

/* Modal Frame */
.software-360-box {
    position: relative;
    width: 100%;
    max-width: 1480px;
    height: 95vh;
    max-height: 900px;
    background: var(--tour-box-bg);
    border: 1px solid var(--tour-box-border);
    border-radius: 20px;
    box-shadow: var(--tour-box-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.software-360-modal.active .software-360-box {
    transform: scale(1) translateY(0);
}

/* Fullscreen Mode */
.software-360-box.is-fullscreen {
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
}

/* Tour Top Header Bar */
.tour-top-header {
    height: 60px;
    padding: 0 20px;
    background: var(--tour-header-bg);
    border-bottom: 1px solid var(--tour-header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    z-index: 40;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tour-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--tour-badge-bg);
    border: 1px solid var(--tour-badge-border);
    color: var(--tour-badge-text);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.25s ease;
}

.tour-header-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--tour-title-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease;
}

.tour-header-title .tag-real {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--tour-tag-real-bg);
    border: 1px solid var(--tour-tag-real-border);
    color: var(--tour-tag-real-text);
    font-weight: 900;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

/* Header Control Buttons */
.tour-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--tour-ctrl-btn-bg);
    border: 1px solid var(--tour-ctrl-btn-border);
    color: var(--tour-ctrl-btn-text);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tour-ctrl-btn:hover {
    background: var(--tour-ctrl-btn-hover-bg);
    color: var(--tour-ctrl-btn-hover-text);
}

.tour-ctrl-btn.active {
    background: var(--tour-ctrl-btn-active-bg);
    border-color: var(--tour-ctrl-btn-active-border);
    color: var(--tour-ctrl-btn-active-text);
}

.tour-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tour-close-btn-bg);
    border: 1px solid var(--tour-close-btn-border);
    color: var(--tour-close-btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-close-btn:hover {
    background: #d92d3a;
    border-color: #d92d3a;
    color: #ffffff;
    transform: scale(1.05);
}

/* Video Progress Timeline Bar */
.tour-progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: var(--tour-timeline-bg);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.tour-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d92d3a, #f59e0b, #10b981);
    transition: width 0.1s linear;
}

/* Main Showroom Area (Sidebar + Video Viewport) */
.tour-main-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    background: var(--tour-main-body-bg);
    transition: background 0.3s ease;
}

/* Left Modules Index Rail */
.tour-sidebar {
    width: 320px;
    background: var(--tour-sidebar-bg);
    border-right: 1px solid var(--tour-sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--tour-sidebar-scrollbar) transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tour-sidebar-header {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tour-sidebar-header-text);
    background: var(--tour-sidebar-header-bg);
    border-bottom: 1px solid var(--tour-sidebar-header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.25s ease;
}

.tour-module-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--tour-item-border);
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    position: relative;
}

.tour-module-item:hover {
    background: var(--tour-item-hover-bg);
}

.tour-module-item.active {
    background: var(--tour-item-active-bg);
    border-left: 3.5px solid var(--tour-item-active-border);
}

.tour-module-num {
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--tour-item-num-color);
    width: 20px;
    transition: color 0.18s ease;
}

.tour-module-item.active .tour-module-num {
    color: var(--tour-item-num-active);
}

.tour-module-thumb {
    width: 48px;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--tour-item-thumb-bg);
    border: 1px solid var(--tour-item-thumb-border);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tour-module-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.tour-module-info {
    flex: 1;
    min-width: 0;
}

.tour-module-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--tour-item-title-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.tour-module-url {
    font-size: 10px;
    color: var(--tour-item-url-color);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center Video Viewport */
.tour-stage-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 14px 18px;
    perspective: 1400px;
    background: var(--tour-viewport-bg);
    transition: background 0.3s ease;
}

/* Software Frame Container */
.real-software-screen-frame {
    flex: 1;
    background: var(--tour-frame-bg);
    border: 1px solid var(--tour-frame-border);
    border-radius: 14px;
    box-shadow: var(--tour-frame-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background 0.3s ease, border-color 0.3s ease;
    position: relative;
}

/* 3D Perspective Tilt */
.tour-stage-viewport.tilt-active .real-software-screen-frame {
    transform: rotateX(var(--tilt-x, 3deg)) rotateY(var(--tilt-y, -2.5deg));
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4), 0 0 50px rgba(37, 99, 235, 0.25);
}

html.dark .tour-stage-viewport.tilt-active .real-software-screen-frame {
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(37, 99, 235, 0.35);
}

/* Simulated Address Bar */
.real-screen-browser-bar {
    height: 38px;
    background: var(--tour-browser-bg);
    border-bottom: 1px solid var(--tour-browser-border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    user-select: none;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.real-browser-url {
    flex: 1;
    max-width: 600px;
    background: var(--tour-url-bg);
    border: 1px solid var(--tour-url-border);
    border-radius: 6px;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--tour-url-text);
    font-family: monospace;
    transition: all 0.25s ease;
}

.real-browser-url .ssl-icon {
    color: #10b981;
}

.real-screen-live-chip {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--tour-live-chip-text);
    background: var(--tour-live-chip-bg);
    border: 1px solid var(--tour-live-chip-border);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

/* Image Display Stage (with Ken Burns Effect) */
.real-screen-canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--tour-stage-canvas-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.real-screen-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.real-screen-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.real-screen-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    transform-origin: center center;
    transition: transform 0.5s ease-out;
}

/* Subtle Video Motion when playing */
.tour-stage-viewport.is-playing .real-screen-slide.active img {
    animation: kenBurnsPan 7s ease-in-out infinite alternate;
}

@keyframes kenBurnsPan {
    0% { transform: scale(1.0) translateY(0); }
    100% { transform: scale(1.035) translateY(-1.2%); }
}

/* Floating Module Info Overlay Banner */
.screen-info-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: var(--tour-overlay-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--tour-overlay-border);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tour-overlay-title);
    box-shadow: var(--tour-overlay-shadow);
    z-index: 20;
    pointer-events: auto;
    transition: all 0.25s ease;
}

.screen-info-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.screen-info-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--tour-overlay-title);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease;
}

.screen-info-desc {
    font-size: 11px;
    color: var(--tour-overlay-desc);
    transition: color 0.25s ease;
}

.tour-overlay-badge {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--tour-overlay-badge-bg);
    border: 1px solid var(--tour-overlay-badge-border);
    color: var(--tour-overlay-badge-text);
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.tour-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d92d3a, #b91c28);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 45, 58, 0.4);
    transition: all 0.2s ease;
    user-select: none;
}

.tour-overlay-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217, 45, 58, 0.58);
}

/* Bottom Video Player Controller Bar */
.tour-bottom-bar {
    height: 64px;
    padding: 0 20px;
    background: var(--tour-bottom-bar-bg);
    border-top: 1px solid var(--tour-bottom-bar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    z-index: 40;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tour-playback-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d92d3a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 16px rgba(217, 45, 58, 0.55);
    transition: all 0.2s ease;
}

.tour-play-btn:hover {
    transform: scale(1.1);
    background: #b91c28;
}

.tour-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--tour-nav-btn-bg);
    border: 1px solid var(--tour-nav-btn-border);
    color: var(--tour-nav-btn-text);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-nav-btn:hover {
    background: var(--tour-nav-btn-hover-bg);
    color: var(--tour-nav-btn-hover-text);
}

.tour-counter-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--tour-counter-text);
    padding: 0 6px;
    font-family: monospace;
    transition: color 0.25s ease;
}

.tour-counter-tag strong {
    color: var(--tour-counter-strong);
    font-size: 14px;
    transition: color 0.25s ease;
}

.tour-speed-select {
    background: var(--tour-speed-select-bg);
    border: 1px solid var(--tour-speed-select-border);
    color: var(--tour-speed-select-text);
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.tour-speed-select option {
    background: var(--tour-box-bg);
    color: var(--tour-speed-select-text);
}

.tour-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d92d3a, #b91c28);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(217, 45, 58, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(217, 45, 58, 0.65);
}

.tour-modules-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--tour-modules-bar-bg);
    border-bottom: 1px solid var(--tour-modules-bar-border);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--tour-sidebar-scrollbar) transparent;
    flex-shrink: 0;
    z-index: 35;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tour-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--tour-module-pill-bg);
    border: 1px solid var(--tour-module-pill-border);
    color: var(--tour-module-pill-text);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.tour-module-pill:hover {
    background: var(--tour-module-pill-hover-bg);
    color: var(--tour-module-pill-hover-text);
    border-color: var(--tour-module-pill-hover-border);
}

.tour-module-pill.active {
    background: var(--tour-module-pill-active-bg);
    border-color: var(--tour-module-pill-active-border);
    color: var(--tour-module-pill-active-text);
    box-shadow: var(--tour-module-pill-active-shadow);
}

.tour-module-pill .pill-num {
    font-family: monospace;
    font-size: 10px;
    color: #ef4444;
    font-weight: 800;
}

.tour-module-pill .pill-count {
    padding: 1px 5px;
    border-radius: 10px;
    background: var(--tour-module-pill-count-bg);
    border: 1px solid var(--tour-module-pill-count-border);
    font-size: 9.5px;
    color: var(--tour-module-pill-count-text);
    font-weight: 800;
    transition: all 0.18s ease;
}

.tour-search-wrap {
    padding: 8px 12px;
    background: var(--tour-search-wrap-bg);
    border-bottom: 1px solid var(--tour-search-wrap-border);
    position: sticky;
    top: 0;
    z-index: 20;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tour-search-input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    background: var(--tour-search-bg);
    border: 1px solid var(--tour-search-border);
    border-radius: 8px;
    color: var(--tour-search-text);
    font-size: 11.5px;
    outline: none;
    transition: all 0.2s ease;
}

.tour-search-input::placeholder {
    color: var(--tour-search-icon);
}

.tour-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.tour-search-icon {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--tour-search-icon);
    pointer-events: none;
    transition: color 0.2s ease;
}

.single-stage-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--tour-stage-canvas-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: background 0.3s ease;
}

.single-stage-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: top center;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.single-stage-img.fade-out {
    opacity: 0.3;
    transform: scale(0.995);
}

/* Responsive */
@media (max-width: 900px) {
    .tour-sidebar {
        display: none;
    }
    .tour-modules-bar {
        padding: 4px 10px;
    }
    .software-360-box {
        height: 98vh;
        max-height: none;
        border-radius: 14px;
    }
    .tour-top-header {
        padding: 0 12px;
        height: 52px;
    }
    .tour-bottom-bar {
        padding: 0 12px;
        height: 58px;
    }
    .screen-info-overlay {
        display: none;
    }
}
