.demo-wrapper {
    --bg-dark: #f8fafc;      /* Modern light premium background */
    --bg-panel: #ffffff;     /* Pure white card backgrounds */
    --bg-surface: #ffffff;   /* Clean surface color */
    --primary: #FF6600;      /* Vibrant Contmatic Orange */
    --primary-hover: #E65C00;
    --primary-glow: rgba(255, 102, 0, 0.25);
    --navy: #002147;         /* Official Contmatic Navy Blue */
    --text-main: #0f172a;    /* Slate-900 */
    --text-muted: #64748b;   /* Slate-500 */
    --border-color: #e2e8f0; /* Clean light gray borders */
    --border-glow: rgba(255, 102, 0, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    box-sizing: border-box;
}

.demo-wrapper *, 
.demo-wrapper *::before, 
.demo-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Split Main Container (Sidebar + Player Canvas) */
.demo-wrapper .demo-main-split {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 1.25rem;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .demo-wrapper .demo-main-split {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Navigation Index */
.demo-wrapper .demo-sidebar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
    height: 100%;
    min-height: 520px;
    max-height: 620px;
    overflow-y: auto;
}

.demo-wrapper .sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.demo-wrapper .chapter-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
}

.demo-wrapper .chapter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.825rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    transition: var(--transition);
}

.demo-wrapper .chapter-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.demo-wrapper .chapter-item.active {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}

.demo-wrapper .chapter-item.completed {
    color: #0f172a;
}

.demo-wrapper .chapter-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(50%);
    transition: var(--transition);
}

.demo-wrapper .chapter-item.active .chapter-icon,
.demo-wrapper .chapter-item.completed .chapter-icon {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

/* Player Canvas Container */
.demo-wrapper .player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    background: #090d16;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.demo-wrapper .progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 50;
}

.demo-wrapper .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #fb923c);
    width: 12.5%;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--primary);
}

/* Video Viewport */
.demo-wrapper .video-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}

.demo-wrapper .video-viewport iframe,
.demo-wrapper #yt-player-container {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

/* Floating Bottom Step-by-Step Guide Banner */
.demo-wrapper .step-guide-banner {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 820px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    z-index: 40;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.demo-wrapper .step-guide-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.demo-wrapper .step-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-wrapper .step-counter-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.demo-wrapper .step-badge-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.demo-wrapper .step-guide-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-wrapper .step-guide-desc {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.demo-wrapper .step-guide-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.demo-wrapper .btn-step-nav {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.demo-wrapper .btn-step-nav:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.demo-wrapper .btn-step-play {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.demo-wrapper .btn-step-play:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.demo-wrapper .btn-step-next {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.demo-wrapper .btn-step-next:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 102, 0, 0.5);
}

/* Notion AI Style Split-Screen Welcome Card */
.demo-wrapper .start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.demo-wrapper .start-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.demo-wrapper .start-card-premium-full {
    width: 90%;
    max-width: 960px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .demo-wrapper .start-card-premium-full {
        grid-template-columns: 1fr;
    }
    .demo-wrapper .start-card-right-full {
        display: none;
    }
}

.demo-wrapper .start-card-left-full {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-wrapper .brand-logo-container {
    margin-bottom: 1.25rem;
}

.demo-wrapper .brand-logo-icon {
    height: 36px;
    object-fit: contain;
}

.demo-wrapper .start-card-left-full h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.demo-wrapper .start-card-left-full p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.demo-wrapper .start-card-actions-full {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.demo-wrapper .btn-primary-arcade {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.demo-wrapper .btn-primary-arcade:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
}

.demo-wrapper .btn-secondary-arcade {
    background: transparent;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.demo-wrapper .btn-secondary-arcade:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.demo-wrapper .start-card-right-full {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.demo-wrapper .mockup-home-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Finish Screen Overlay */
.demo-wrapper .finish-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.demo-wrapper .finish-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.demo-wrapper .finish-card {
    text-align: center;
    max-width: 580px;
    padding: 2.5rem;
    color: #ffffff;
}

.demo-wrapper .finish-badge {
    display: inline-block;
    background: rgba(255, 102, 0, 0.18);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.demo-wrapper .finish-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.demo-wrapper .finish-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.demo-wrapper .finish-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-wrapper .btn-whatsapp-cta {
    background: #25d366 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
}

.demo-wrapper .btn-whatsapp-cta:hover {
    background: #1eb954 !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}
