/* ═══════════════════════════════════════════════
   Owner Live Demo Tour — CSS
   ═══════════════════════════════════════════════ */

/* ── Welcome Splash ── */
#live-demo-splash {
    position: fixed;
    inset: 0;
    z-index: 1000010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#live-demo-splash.visible {
    opacity: 1;
}

.ld-splash-content {
    text-align: center;
    color: #fff;
    max-width: 520px;
    padding: 2rem;
    animation: ldFadeUp 0.6s ease 0.1s both;
}

.ld-splash-icon {
    margin-bottom: 1.5rem;
}

.ld-splash-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.ld-splash-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ld-splash-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@keyframes ldFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Control Bar ── */
#live-demo-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000002;
    pointer-events: auto;
}

.ld-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 10px 20px;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.ld-bar-label {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    color: #60a5fa;
}

.ld-bar-progress {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.ld-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ld-bar-step {
    font-size: 0.78rem;
    opacity: 0.7;
    white-space: nowrap;
}

/* ── Driver.js Popover Overrides ── */
.ld-popover .driver-popover {
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.ld-popover .driver-popover-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.ld-popover .driver-popover-description {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #374151;
}

.ld-step-counter {
    border-top: 1px solid #e5e7eb;
    padding-top: 6px;
    color: #9ca3af;
}

/* Nav-phase popover nudge */
.ld-nav-popover .driver-popover {
    max-width: 340px;
}

/* Finale */
.ld-finale .driver-popover {
    max-width: 460px;
    text-align: center;
}

.ld-finale .driver-popover-title {
    font-size: 1.4rem;
}

/* ── Dashboard "Start Live Demo" button (optional placement) ── */
#btn-live-demo {
    position: relative;
    overflow: hidden;
}

#btn-live-demo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: ldShimmer 2.5s infinite;
}

@keyframes ldShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
