/**
 * Fusion Cloud Onboarding Styles
 * - Welcome Tour
 * - Help Tooltips  
 * - Floating Help Button
 * - Progress Checklist
 */

/* ============================================
   WELCOME TOUR
   ============================================ */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

/* When spotlight is active, hide backdrop and let spotlight's box-shadow create the darkness */
.tour-overlay.spotlight-active .tour-backdrop {
    opacity: 0 !important;
    pointer-events: none !important;
}

.tour-spotlight {
    position: fixed;
    background: rgba(255, 255, 255, 0.05);
    border: 4px solid #22c55e;
    box-shadow: 
        0 0 0 9999px rgba(0, 0, 0, 0.85),
        0 0 0 10px rgba(34, 197, 94, 0.5),
        0 0 80px 20px rgba(34, 197, 94, 0.4),
        inset 0 0 30px rgba(34, 197, 94, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10001;
    animation: spotlightPulse 2s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 0 10px rgba(34, 197, 94, 0.5), 0 0 80px 20px rgba(34, 197, 94, 0.4), inset 0 0 30px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 0 12px rgba(34, 197, 94, 0.7), 0 0 100px 30px rgba(34, 197, 94, 0.5), inset 0 0 40px rgba(34, 197, 94, 0.2); }
}

.tour-tooltip {
    position: fixed;
    width: 340px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    z-index: 10002;
    animation: tourFadeIn 0.3s ease;
}

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

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #334155;
}

.tour-step-indicator {
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
}

.tour-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.tour-close:hover {
    color: #f87171;
}

.tour-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    padding: 16px 16px 8px;
}

.tour-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    padding: 0 16px 16px;
}

.tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #334155;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.tour-nav {
    display: flex;
    gap: 8px;
}

.tour-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tour-btn-skip {
    background: none;
    border: none;
    color: #64748b;
}

.tour-btn-skip:hover {
    color: #94a3b8;
}

.tour-btn-prev {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.tour-btn-prev:hover {
    background: #334155;
}

.tour-btn-next {
    background: #22c55e;
    border: 1px solid #22c55e;
    color: white;
}

.tour-btn-next:hover {
    background: #16a34a;
    border-color: #16a34a;
}


/* ============================================
   HELP TOOLTIPS
   ============================================ */
.help-tooltip-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    position: relative;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.help-icon:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.help-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    z-index: 1000;
    animation: helpFadeIn 0.2s ease;
}

.help-tooltip.help-tooltip-top {
    bottom: auto;
    top: calc(100% + 8px);
}

.help-tooltip.help-tooltip-top .help-tooltip-arrow {
    bottom: auto;
    top: -6px;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #1e293b transparent;
}

@keyframes helpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.help-tooltip-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.help-tooltip-content p {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

.help-tooltip-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}

.help-tooltip-link:hover {
    text-decoration: underline;
}

.help-tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #1e293b transparent transparent transparent;
}


/* ============================================
   FLOATING CHAT WIDGET
   ============================================ */
.floating-chat-widget {
    position: fixed;
    bottom: 140px;
    right: 24px;
    z-index: 9000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Toggle Button */
.chat-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chat-widget-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.5);
}

.chat-widget-btn svg {
    transition: transform 0.3s ease;
}

.chat-widget-btn.open svg {
    transform: rotate(90deg);
}

/* Unread Badge */
.chat-widget-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: #ef4444;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #0f172a;
    animation: badgePulse 2s ease-in-out infinite;
}

.chat-widget-badge.hidden {
    display: none;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chat Panel */
.chat-widget-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Panel Header */
.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #334155;
}

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

.chat-widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget-header-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.chat-widget-header-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-widget-header-info p::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.chat-widget-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-widget-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Tabs */
.chat-widget-tabs {
    display: flex;
    border-bottom: 1px solid #334155;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
}

.chat-widget-tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chat-widget-tab:hover {
    color: #94a3b8;
}

.chat-widget-tab.active {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

.chat-widget-tab-badge {
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Panel Body */
.chat-widget-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-widget-view {
    display: none;
    flex-direction: column;
    height: 100%;
}

.chat-widget-view.active {
    display: flex;
}

/* Conversation List */
.chat-widget-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-widget-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    text-align: center;
    padding: 32px;
}

.chat-widget-list-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-widget-list-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.chat-widget-conv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.chat-widget-conv-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: #334155;
}

.chat-widget-conv-item.unread {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.chat-widget-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-widget-conv-info {
    flex: 1;
    min-width: 0;
}

.chat-widget-conv-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-widget-conv-time {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.chat-widget-conv-preview {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-widget-conv-item.unread .chat-widget-conv-preview {
    color: #94a3b8;
}

.chat-widget-unread-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
}

/* Messages View */
.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-widget-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-widget-message.sent {
    align-self: flex-end;
}

.chat-widget-message.received {
    align-self: flex-start;
}

.chat-widget-message-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-widget-message.sent .chat-widget-message-bubble {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-widget-message.received .chat-widget-message-bubble {
    background: #334155;
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-widget-message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    padding: 0 4px;
}

.chat-widget-message.sent .chat-widget-message-time {
    text-align: right;
}

/* Message Input */
.chat-widget-input-area {
    padding: 12px;
    border-top: 1px solid #334155;
    background: rgba(0, 0, 0, 0.2);
}

.chat-widget-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-widget-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    min-height: 40px;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.chat-widget-input:focus {
    outline: none;
    border-color: #22c55e;
}

.chat-widget-input::placeholder {
    color: #64748b;
}

.chat-widget-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-widget-send-btn:hover {
    transform: scale(1.05);
}

.chat-widget-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Quick Actions */
.chat-widget-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.chat-widget-quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #334155;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.chat-widget-quick-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.chat-widget-quick-btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.chat-widget-quick-btn:hover svg {
    opacity: 1;
}

/* New Ticket Form */
.chat-widget-form {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
}

.chat-widget-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-widget-form-label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-widget-form-input,
.chat-widget-form-select,
.chat-widget-form-textarea {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s;
}

.chat-widget-form-input:focus,
.chat-widget-form-select:focus,
.chat-widget-form-textarea:focus {
    outline: none;
    border-color: #22c55e;
}

.chat-widget-form-select {
    cursor: pointer;
}

.chat-widget-form-textarea {
    resize: none;
    min-height: 80px;
}

.chat-widget-form-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.chat-widget-form-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-widget-form-btn-secondary {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
}

.chat-widget-form-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.chat-widget-form-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
}

.chat-widget-form-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Back Button */
.chat-widget-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.chat-widget-back:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

/* Support Ticket Item */
.chat-widget-ticket-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #334155;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
}

.chat-widget-ticket-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #475569;
}

.chat-widget-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-widget-ticket-id {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
}

.chat-widget-ticket-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.chat-widget-ticket-status.new {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.chat-widget-ticket-status.in_progress {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.chat-widget-ticket-status.resolved {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.chat-widget-ticket-status.closed {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.chat-widget-ticket-subject {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0;
}

.chat-widget-ticket-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

/* Typing Indicator */
.chat-widget-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #64748b;
    font-size: 13px;
}

.chat-widget-typing-dots {
    display: flex;
    gap: 4px;
}

.chat-widget-typing-dots span {
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-widget-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-widget-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Scrollbar */
.chat-widget-messages::-webkit-scrollbar,
.chat-widget-list::-webkit-scrollbar,
.chat-widget-form::-webkit-scrollbar {
    width: 6px;
}

.chat-widget-messages::-webkit-scrollbar-track,
.chat-widget-list::-webkit-scrollbar-track,
.chat-widget-form::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget-messages::-webkit-scrollbar-thumb,
.chat-widget-list::-webkit-scrollbar-thumb,
.chat-widget-form::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.chat-widget-messages::-webkit-scrollbar-thumb:hover,
.chat-widget-list::-webkit-scrollbar-thumb:hover,
.chat-widget-form::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .floating-chat-widget {
        bottom: 130px;
        right: 16px;
    }
    
    .chat-widget-btn {
        width: 52px;
        height: 52px;
    }
    
    .chat-widget-panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        bottom: 64px;
        right: 0;
        border-radius: 12px;
    }
}

/* Legacy floating help compatibility */
.floating-help {
    display: none;
}


/* ============================================
   PROGRESS CHECKLIST
   ============================================ */
#onboarding-checklist {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.checklist-header {
    padding: 16px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.checklist-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checklist-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.checklist-title svg {
    color: #22c55e;
}

.checklist-dismiss {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.checklist-dismiss:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.checklist-progress-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.checklist-items {
    padding: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-item-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #475569;
    border-radius: 50%;
    transition: all 0.2s;
}

.checklist-item:hover .checklist-item-circle {
    border-color: #22c55e;
}

.checklist-item.completed .checklist-item-check svg {
    color: #22c55e;
}

.checklist-item-content {
    flex: 1;
    min-width: 0;
}

.checklist-item-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.checklist-item.completed .checklist-item-title {
    text-decoration: line-through;
    color: #94a3b8;
}

.checklist-item-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.checklist-item-arrow {
    color: #475569;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checklist-item:hover .checklist-item-arrow {
    color: #22c55e;
    transform: translateX(2px);
}

.checklist-item.completed .checklist-item-arrow {
    display: none;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .tour-tooltip {
        width: calc(100vw - 40px) !important;
        max-width: none !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .tour-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .tour-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .tour-btn {
        padding: 10px 20px;
    }
    
    .tour-btn-skip {
        order: 2;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .floating-help {
        bottom: 70px; /* Kept higher on mobile too */
        right: 16px;
    }
    
    .floating-help-btn {
        width: 48px;
        height: 48px;
    }
    
    .floating-help-menu {
        bottom: 56px;
        right: -8px;
        width: 220px;
    }
    
    .tour-tooltip {
        width: calc(100vw - 32px) !important;
        left: 16px !important;
        right: 16px !important;
    }
    
    .tour-title {
        font-size: 16px;
    }
    
    .tour-description {
        font-size: 13px;
    }
}

