/* =========================================================
   Tutoriais (painel do vendedor) — módulos e aulas em vídeo
========================================================= */
.tut-app { min-height: 200px; }

.tut-empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 48px 20px; border: 1px dashed var(--border); border-radius: 16px; color: var(--text-muted);
}
.tut-empty-state strong { color: var(--text); font-size: 16px; }
.tut-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 18px; }

.tut-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

.tut-stage { min-width: 0; }
.tut-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.tut-player video, .tut-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tut-info { padding: 16px 2px 0; }
.tut-crumb { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.tut-info h3 { margin: 4px 0 8px; font-size: 20px; line-height: 1.25; }
.tut-desc { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.tut-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tut-nav button { width: auto; padding: 10px 16px; }
.tut-nav button:disabled { opacity: .4; cursor: default; }
.tut-done-btn.is-done { color: #22c55e; border-color: rgba(34, 197, 94, .5); }

.tut-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 110px); }
.tut-overall { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tut-overall-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.tut-overall-top span { color: var(--text-muted); }
.tut-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.tut-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }

.tut-mods { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 2px; }
.tut-mod { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tut-mod-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.tut-mod-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tut-mod-text small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tut-mod-text strong { font-size: 14.5px; }
.tut-mod-meta { font-size: 12px; color: var(--text-muted); }
.tut-chevron { font-size: 18px; color: var(--text-muted); transition: transform .2s; }
.tut-mod.open .tut-chevron { transform: rotate(180deg); }
.tut-mod-lessons { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.tut-mod-lessons[hidden] { display: none; }
.tut-mod-desc { margin: 0 6px 6px; font-size: 12.5px; color: var(--text-muted); }
.tut-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.tut-item:hover { background: var(--surface-2); }
.tut-item.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.tut-check-dot {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface-3); font-size: 12px; font-weight: 800; color: var(--text-muted);
}
.tut-item.done .tut-check-dot { background: rgba(34, 197, 94, .18); color: #22c55e; }
.tut-item-text { min-width: 0; display: flex; flex-direction: column; }
.tut-item-text strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tut-item-text small { font-size: 11.5px; color: var(--text-muted); }

@media (max-width: 900px) {
    .tut-layout { grid-template-columns: 1fr; }
    .tut-side { position: static; max-height: none; }
    .tut-mods { overflow: visible; }
    .tut-player { border-radius: 12px; }
    .tut-info h3 { font-size: 18px; }
    .tut-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .tut-nav .tut-done-btn { grid-column: 1 / -1; order: -1; }
}
