.vto-demo-tour {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 340px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px -12px rgba(17, 24, 39, 0.25), 0 0 0 1px rgba(17, 24, 39, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #111827;
    z-index: 99999;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: vto-demo-tour-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vto-demo-tour-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vto-demo-tour.is-collapsed {
    width: 240px;
}

.vto-demo-tour.is-collapsed .vto-demo-tour__body {
    display: none;
}

.vto-demo-tour.is-collapsed .vto-demo-tour__collapse svg { transform: rotate(180deg); }

.vto-demo-tour__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    color: #fff;
}

.vto-demo-tour__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vto-demo-tour__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.vto-demo-tour__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.vto-demo-tour__title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.1px;
}

.vto-demo-tour__subtitle {
    font-size: 11px;
    opacity: 0.78;
    margin-top: 2px;
}

.vto-demo-tour__collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vto-demo-tour__collapse:hover { background: rgba(255, 255, 255, 0.25); }
.vto-demo-tour__collapse svg { transition: transform 0.2s ease; }

.vto-demo-tour__body {
    padding: 16px;
}

.vto-demo-tour__progress {
    margin-bottom: 14px;
}

.vto-demo-tour__progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.vto-demo-tour__progress-track {
    height: 4px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
}

.vto-demo-tour__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #9333ea);
    border-radius: 99px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vto-demo-tour__step {
    margin-bottom: 16px;
}

.vto-demo-tour__step-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 8px;
}

.vto-demo-tour__step-tag[data-area="frontend"] {
    background: #ecfdf5;
    color: #047857;
}

.vto-demo-tour__step-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.vto-demo-tour__step-desc {
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.55;
}

.vto-demo-tour__nav {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.vto-demo-tour__nav-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vto-demo-tour__nav-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.vto-demo-tour__nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vto-demo-tour__nav-btn--primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.vto-demo-tour__nav-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.vto-demo-tour__list {
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
    max-height: 210px;
    overflow-y: auto;
    border-top: 1px solid #f3f4f6;
}

.vto-demo-tour__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12.5px;
    color: #4b5563;
    transition: background 0.12s ease, color 0.12s ease;
}

.vto-demo-tour__list li:hover { background: #f9fafb; color: #111827; }

.vto-demo-tour__list li.is-current {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.vto-demo-tour__list li.is-done {
    color: #9ca3af;
}

.vto-demo-tour__list li.is-done .vto-demo-tour__list-title {
    text-decoration: line-through;
    text-decoration-color: rgba(156, 163, 175, 0.4);
}

.vto-demo-tour__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    transition: background 0.15s ease;
}

.vto-demo-tour__list li.is-current .vto-demo-tour__dot {
    background: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.vto-demo-tour__list li.is-done .vto-demo-tour__dot { background: #10b981; }
.vto-demo-tour__list li.is-done .vto-demo-tour__dot::after {
    content: '\2713';
}

.vto-demo-tour__list-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vto-demo-tour__list-ext {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    flex-shrink: 0;
}

/* Scrollbar polish */
.vto-demo-tour__list::-webkit-scrollbar { width: 6px; }
.vto-demo-tour__list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 99px; }
.vto-demo-tour__list::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
