/* Tour guiado — CardápioPro */

.guia-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: guiaFadeIn 0.25s ease;
}

.guia-overlay[hidden] {
    display: none !important;
}

@keyframes guiaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.guia-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: guiaSlideUp 0.3s ease;
}

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

.guia-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.2s, color 0.2s;
}

.guia-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.guia-progress-wrap {
    padding: 1.25rem 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guia-progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.guia-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #f59e0b);
    border-radius: 3px;
    transition: width 0.35s ease;
    width: 8.33%;
}

.guia-progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.guia-body {
    padding: 1.5rem 1.5rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.guia-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.guia-step-icon.welcome { background: #fff7ed; color: #ea580c; }
.guia-step-icon.dashboard { background: #eff6ff; color: #2563eb; }
.guia-step-icon.categorias { background: #f0fdf4; color: #16a34a; }
.guia-step-icon.produtos { background: #fef3c7; color: #d97706; }
.guia-step-icon.cardapio { background: #fce7f3; color: #db2777; }
.guia-step-icon.pedidos { background: #ede9fe; color: #7c3aed; }
.guia-step-icon.whatsapp { background: #dcfce7; color: #15803d; }
.guia-step-icon.qrcode { background: #e0e7ff; color: #4f46e5; }
.guia-step-icon.config { background: #f1f5f9; color: #475569; }
.guia-step-icon.clientes { background: #cffafe; color: #0891b2; }
.guia-step-icon.plano { background: #fef9c3; color: #ca8a04; }
.guia-step-icon.fim { background: #d1fae5; color: #059669; }
.guia-step-icon.admin { background: #fee2e2; color: #dc2626; }

.guia-step h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1e293b;
}

.guia-step p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.guia-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.guia-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.guia-checklist li:last-child { border-bottom: none; }

.guia-checklist li i {
    color: #22c55e;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.guia-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FF6B35;
    text-decoration: none;
}

.guia-link-btn:hover { color: #e55a2b; text-decoration: underline; }

.guia-quiz-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.guia-quiz-box label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.guia-quiz-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF6B35;
}

.guia-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 1rem 0.75rem;
    flex-wrap: wrap;
}

.guia-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.guia-dot.active {
    background: #FF6B35;
    transform: scale(1.2);
}

.guia-dot.done {
    background: #86efac;
}

.guia-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.guia-footer .btn { flex: 1; font-weight: 600; }

/* Card no dashboard */
.guia-card-dashboard {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.guia-card-dashboard .guia-card-text strong {
    display: block;
    font-size: 1rem;
    color: #9a3412;
    margin-bottom: 0.25rem;
}

.guia-card-dashboard .guia-card-text span {
    font-size: 0.875rem;
    color: #c2410c;
}

.btn-guia-tour {
    background: linear-gradient(135deg, #FF6B35, #f59e0b);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-guia-tour:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

@media (max-width: 576px) {
    .guia-modal { max-height: 95vh; border-radius: 16px 16px 0 0; }
    .guia-body { padding: 1.25rem 1.25rem 0.75rem; }
    .guia-footer { flex-direction: column; }
}
