/* =====================================================================
   TUTORIAL.CSS - Halaman Tutorial Penggunaan (masyarakat/tutorial.php)
   Animasi dibuat murni dengan CSS (tanpa gambar / video), diputar ulang
   setiap kali sebuah langkah dibuka (js/tutorial.js).
   Memakai variabel warna dari ../style.css.
   ===================================================================== */

.tutorial {
    max-width: 1140px;
}

/* ---------- PILIHAN PANDUAN (TAB) ---------- */
.tab-panduan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.tab-panduan-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text-2);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.tab-panduan-item:hover {
    border-color: var(--brand-400);
    transform: translateY(-2px);
}

.tab-panduan-item.aktif {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
    box-shadow: var(--shadow);
}

.tab-panduan-item:focus-visible,
.kontrol-btn:focus-visible,
.langkah-tombol:focus-visible,
.tombol-mulai:focus-visible,
.tombol-kedua:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
}

/* Tanpa JavaScript: tab disembunyikan, semua panduan tampil berurutan */
html:not(.tutorial-js) .tab-panduan {
    display: none;
}

html:not(.tutorial-js) .panel-panduan {
    margin-bottom: 56px;
}

html.tutorial-js .panel-panduan {
    display: none;
}

html.tutorial-js .panel-panduan.aktif {
    display: block;
    animation: panelMasuk 0.35s ease both;
}

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

/* ---------- KEPALA PANDUAN ---------- */
.panel-kepala {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 24px 28px;
    background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
    border-radius: 20px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.panel-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    color: var(--brand-400);
}

.panel-kepala > div {
    flex: 1;
    min-width: 0;
}

.panel-kepala h2 {
    margin-bottom: 4px;
    font-size: clamp(18px, 2.4vw, 23px);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.panel-kepala p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    line-height: 1.6;
}

.tombol-mulai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 20px;
    background: var(--brand-400);
    border-radius: 12px;
    color: var(--brand-950);
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.tombol-mulai:hover {
    background: #86efac;
    transform: translateY(-2px);
}

.tombol-mulai.besar {
    padding: 15px 28px;
    background: var(--brand-700);
    color: #fff;
    font-size: 16px;
}

.tombol-mulai.besar:hover {
    background: var(--brand-600);
}

.tombol-kedua {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--brand-800);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tombol-kedua:hover {
    border-color: var(--brand-500);
}

/* ---------- KOTAK INFORMASI ---------- */
.kotak-siapkan,
.kotak-salah,
.kotak-status {
    margin-bottom: 22px;
    padding: 22px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.kotak-siapkan h3,
.kotak-salah h3,
.kotak-status h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--brand-900);
    font-size: 17px;
}

.kotak-siapkan h3 { color: var(--brand-700); }
.kotak-salah h3   { color: #b45309; }

.kotak-siapkan ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 28px;
    margin: 0 0 12px;
    padding-left: 22px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
}

.kotak-siapkan p {
    color: var(--text-2);
    font-size: 14px;
}

.kotak-salah {
    background: #fffbeb;
    border-color: #fde68a;
}

.kotak-salah ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.7;
}

.kotak-salah li + li {
    margin-top: 4px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
}

.status-grid p {
    margin: 6px 0 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.55;
}

/* Label status (juga dipakai di animasi) */
.label-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.s-menunggu { background: #e2e8f0; color: #334155; }
.s-diproses { background: #fef3c7; color: #92400e; }
.s-selesai  { background: #dcfce7; color: #166534; }
.s-ditolak  { background: #fee2e2; color: #991b1b; }

/* ---------- PEMUTAR: ANIMASI + LANGKAH ---------- */
.pemutar {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 26px;
}

html:not(.tutorial-js) .pemutar {
    grid-template-columns: 1fr;
}

html:not(.tutorial-js) .pemutar-layar {
    display: none;
}

.pemutar-layar {
    position: sticky;
    top: calc(var(--nav-h, 72px) + 16px);
}

/* Bingkai "layar" */
.layar {
    position: relative;
    height: 372px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.scene {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}

.scene.aktif {
    display: flex;
}

.layar-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    background: #eef3ef;
    border-bottom: 1px solid var(--border);
}

.layar-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5cf;
}

.layar-bar i:nth-child(1) { background: #f87171; }
.layar-bar i:nth-child(2) { background: #fbbf24; }
.layar-bar i:nth-child(3) { background: #4ade80; }

.layar-url {
    flex: 1;
    margin-left: 8px;
    padding: 3px 12px;
    background: #fff;
    border-radius: 999px;
    color: var(--text-3);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layar-isi {
    position: relative;
    flex: 1;
    padding: 14px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12.5px;
    overflow: hidden;
}

/* ---------- KOMPONEN TIRUAN LAYAR ---------- */
.mock-judul-halaman {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--brand-800);
    font-size: 13.5px;
    font-weight: 800;
}

.mock-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.mock-logo {
    width: 22px;
    height: 22px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--brand-600);
}

.mock-menu {
    padding: 6px 8px;
    border-radius: 7px;
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 600;
}

.mock-menu.sasaran {
    animation: sorot 1.2s var(--d, 0s) ease-out 1,
               tekan 0.28s calc(var(--d, 0s) + 1.2s) ease 1,
               menuAktif 0.01s calc(var(--d, 0s) + 1.2s) forwards;
}

@keyframes menuAktif {
    to { background: var(--brand-100); color: var(--brand-700); }
}

.mock-hero {
    margin-top: 12px;
    padding: 28px 16px;
    background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
    border-radius: 12px;
}

.mock-hero i,
.mock-kartu-teks i,
.mock-kartu-polos i,
.mock-hasil i {
    display: block;
    height: 8px;
    margin-top: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
}

.mock-hero i:first-child { width: 60%; height: 12px; margin-top: 0; }
.mock-hero i:last-child  { width: 40%; }

.mock-kartu-hijau {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
    border-radius: 12px;
    color: #fff;
}

.mock-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: var(--brand-400);
}

.mock-kartu-teks {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.mock-kartu-teks i:nth-of-type(1) { width: 90%; }
.mock-kartu-teks i:nth-of-type(2) { width: 60%; }

.mock-kartu-polos {
    margin-top: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.mock-kartu-polos i {
    background: #e5ebe7;
}

.mock-kartu-polos i:nth-child(1) { width: 55%; margin-top: 0; }
.mock-kartu-polos i:nth-child(2) { width: 90%; }
.mock-kartu-polos i:nth-child(3) { width: 70%; }

.mock-tombol,
.mock-tombol-abu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}

.mock-tombol {
    background: var(--brand-400);
    color: var(--brand-950);
}

.mock-tombol-abu {
    background: #e5ebe7;
    color: var(--text-2);
}

.mock-banner {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--brand-700);
    border-radius: 10px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

/* Formulir tiruan */
.mock-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mock-kolom label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 700;
}

.mock-input {
    min-height: 31px;
    padding: 7px 10px;
    background: #fff;
    border: 1.5px solid #cfdad3;
    border-radius: 8px;
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.5;
}

.mock-input.area {
    min-height: 82px;
}

.mock-input.garis {
    height: 31px;
    background: linear-gradient(90deg, #e5ebe7 0 70%, transparent 70%) 10px 50% / calc(100% - 20px) 7px no-repeat #fff;
}

.mock-input.garis.pendek {
    background-size: calc(60% - 20px) 7px;
}

.mock-form.kecil {
    margin-bottom: 10px;
}

.mock-aksi {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.mock-centang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 600;
}

/* Daftar berkas */
.mock-ceklis {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mock-ceklis li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11.5px;
}

.ceklis-teks {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ceklis-teks em,
.nomor-kecil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 7px;
    background: var(--brand-100);
    border-radius: 50%;
    color: var(--brand-700);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 800;
}

.nomor-kecil {
    margin-right: 0;
}

.mock-berkas {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-baris-berkas {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11px;
    overflow: hidden;
}

.berkas-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.berkas-aksi {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 128px;
}

.pilih-berkas {
    padding: 3px 9px;
    background: #e5ebe7;
    border-radius: 6px;
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.nama-file {
    position: absolute;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--brand-50);
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    color: var(--brand-700);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.bar-unggah {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--brand-500);
    animation: barIsi 0.5s var(--d, 0s) ease-out both;
}

.kotak-cek {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #cbd5cf;
    border-radius: 5px;
    color: #fff;
}

/* Hasil / pesan */
.mock-memuat.muncul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    animation: muncul 0.4s var(--d, 0s) both, pudar 0.3s calc(var(--d, 0s) + 1.6s) forwards;
}

.putar {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5cf;
    border-top-color: var(--brand-600);
    border-radius: 50%;
    animation: putar 0.7s linear infinite;
}

.mock-berhasil {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    color: #166534;
    font-size: 12.5px;
}

.mock-berhasil svg {
    vertical-align: -4px;
}

.mock-berhasil.tetap {
    position: static;
}

.mock-nomor-baris {
    margin-top: 8px;
    color: #166534;
    font-size: 11.5px;
}

.mock-nomor.muncul {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 12px;
    background: #fff;
    border: 2px dashed var(--brand-600);
    border-radius: 8px;
    color: var(--brand-900);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    animation: muncul 0.5s 1.1s both, denyut 1s 1.8s ease-in-out 3;
}

.mock-catat {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip-catat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 700;
}

.mock-hasil {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
}

.mock-hasil i {
    background: #e5ebe7;
}

.mock-hasil i:nth-of-type(1) { width: 80%; }
.mock-hasil i:nth-of-type(2) { width: 55%; margin-bottom: 10px; }

/* Garis waktu status */
.garis-waktu {
    display: flex;
    align-items: flex-start;
    padding: 10px 6px 6px;
}

.tahap-mock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 68px;
}

.tahap-mock em {
    color: var(--text-2);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.titik {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #cbd5cf;
    border-radius: 50%;
    color: #94a3b8;
}

.t1 { --tk: #64748b; }
.t2 { --tk: #d97706; }
.t3 { --tk: #16a34a; }
.garis-waktu.ditolak .t3 { --tk: #dc2626; }

.t1 .titik { animation: titikAktif 0.5s 0.5s both; }
.t2 .titik { animation: titikAktif 0.5s 2.4s both; }
.t3 .titik { animation: titikAktif 0.5s 4.4s both; }

.sambung {
    position: relative;
    flex: 1;
    height: 4px;
    margin-top: 18px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.sambung::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--brand-500);
}

.sambung.s1::after { animation: isiGaris 0.8s 1.4s ease-out both; }
.sambung.s2::after { animation: isiGaris 0.8s 3.4s ease-out both; }
.garis-waktu.ditolak .sambung.s2::after { background: #dc2626; }

.pesan-status {
    position: relative;
    min-height: 110px;
    margin-top: 14px;
}

.ps {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.55;
    opacity: 0;
}

.ps.p1 { animation: pesanSementara 1.9s 0.6s both; }
.ps.p2 { animation: pesanSementara 1.9s 2.5s both; }
.ps.p3 { animation: muncul 0.5s 4.6s both; }

.selesai-mock {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.catatan-mock {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ---------- ANIMASI DASAR ---------- */
.muncul {
    opacity: 0;
    animation: muncul 0.5s var(--d, 0s) both;
}

.pudar {
    animation: pudar 0.3s calc(var(--d, 0s) + 0.15s) forwards;
}

.cek-pop {
    animation: cekPop 0.35s var(--d, 0s) both;
}

.ketik {
    display: inline-block;
    max-width: 100%;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    border-right: 2px solid var(--brand-600);
    animation: ketik calc(var(--n, 10) * 0.07s) steps(var(--n, 10), end) var(--d, 0s) forwards,
               kedip 0.8s var(--d, 0s) step-end infinite;
}

/* Kursor mouse + riak klik, diletakkan di dalam elemen sasaran */
.sasaran {
    position: relative;
    animation: sorot 1.2s var(--d, 0s) ease-out 1,
               tekan 0.28s calc(var(--d, 0s) + 1.2s) ease 1;
}

.kursor {
    position: absolute;
    left: 58%;
    top: 52%;
    z-index: 6;
    width: 26px;
    height: 26px;
    opacity: 0;
    pointer-events: none;
    animation: kursorGerak 1.2s var(--d, 0s) ease-out both;
}

.klik {
    position: absolute;
    left: 58%;
    top: 52%;
    width: 12px;
    height: 12px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.55);
    opacity: 0;
    pointer-events: none;
    animation: riakKlik 0.6s calc(var(--d, 0s) + 1.2s) ease-out both;
}

@keyframes muncul {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@keyframes pudar {
    to { opacity: 0; visibility: hidden; }
}

@keyframes ketik {
    from { width: 0; }
    to   { width: calc(var(--n, 10) * 1ch); border-right-color: transparent; }
}

@keyframes kedip {
    50% { border-right-color: transparent; }
}

@keyframes cekPop {
    0%   { transform: scale(0.6); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); background: var(--brand-600); border-color: var(--brand-600); }
}

@keyframes kursorGerak {
    0%   { opacity: 0; transform: translate(120px, 90px); }
    20%  { opacity: 1; }
    100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes riakKlik {
    0%   { opacity: 0.8; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(4.5); }
}

@keyframes tekan {
    50% { transform: scale(0.92); }
}

@keyframes sorot {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
    100% { box-shadow: 0 0 0 14px rgba(22, 163, 74, 0); }
}

@keyframes barIsi {
    0%   { width: 0; opacity: 1; }
    80%  { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

@keyframes putar {
    to { transform: rotate(360deg); }
}

@keyframes denyut {
    50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.18); }
}

@keyframes titikAktif {
    from { transform: scale(0.85); }
    60%  { transform: scale(1.18); }
    to   {
        transform: scale(1);
        background: var(--tk, #16a34a);
        border-color: var(--tk, #16a34a);
        color: #fff;
    }
}

@keyframes isiGaris {
    to { width: 100%; }
}

@keyframes pesanSementara {
    0%   { opacity: 0; transform: translateY(6px); }
    12%  { opacity: 1; transform: none; }
    85%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ---------- KONTROL PEMUTAR ---------- */
.kontrol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.kontrol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--brand-800);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.kontrol-btn:hover:not(:disabled) {
    background: var(--brand-50);
    border-color: var(--brand-500);
}

.kontrol-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.kontrol-btn.utama {
    min-width: 96px;
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
}

.kontrol-btn.utama:hover {
    background: var(--brand-600);
}

.ikon-jeda {
    display: none;
    font-size: 11px;
    letter-spacing: -2px;
}

.pemutar.sedang-putar .ikon-putar {
    display: none;
}

.pemutar.sedang-putar .ikon-jeda {
    display: inline;
}

.penghitung {
    margin-left: auto;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
}

.progres {
    height: 5px;
    margin-top: 12px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progres span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand-500);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ---------- DAFTAR LANGKAH (TEKS) ---------- */
.daftar-langkah {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.langkah-tombol {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 15px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

html:not(.tutorial-js) .langkah-tombol {
    cursor: default;
}

.langkah-tombol:hover {
    border-color: var(--brand-400);
}

.langkah.aktif .langkah-tombol {
    background: var(--brand-50);
    border-color: var(--brand-600);
    box-shadow: var(--shadow);
}

.langkah-nomor {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    background: var(--brand-100);
    border-radius: 50%;
    color: var(--brand-700);
    font-size: 15px;
    font-weight: 800;
    transition: background 0.2s, color 0.2s;
}

.langkah.aktif .langkah-nomor {
    background: var(--brand-600);
    color: #fff;
}

.langkah-isi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.langkah-isi strong {
    color: var(--brand-900);
    font-size: 16px;
    line-height: 1.4;
}

.langkah-isi span {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.7;
}

.langkah-isi span strong {
    color: var(--text);
    font-size: inherit;
}

/* ---------- AJAKAN & BANTUAN ---------- */
.ajakan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
}

.bantuan-akhir {
    max-width: 640px;
    margin: 36px auto 0;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.7;
    text-align: center;
}

/* ---------- RESPONSIF ---------- */
@media (max-width: 960px) {
    .pemutar {
        grid-template-columns: 1fr;
    }

    .pemutar-layar {
        position: static;
    }

    .kotak-siapkan ol,
    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tab-panduan {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-panduan-item {
        padding: 14px 10px;
        font-size: 14px;
    }

    .panel-kepala {
        flex-wrap: wrap;
        padding: 20px;
    }

    .panel-kepala .tombol-mulai {
        width: 100%;
    }

    .layar {
        height: 392px;
    }

    .berkas-aksi {
        min-width: 96px;
    }

    .penghitung {
        width: 100%;
        margin-left: 0;
    }

    .ajakan .tombol-mulai,
    .ajakan .tombol-kedua {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- PENGGUNA YANG MEMATIKAN ANIMASI ---------- */
@media (prefers-reduced-motion: reduce) {
    .scene *,
    .scene *::before,
    .scene *::after {
        animation: none !important;
        transition: none !important;
    }

    .muncul,
    .ps.p3 {
        opacity: 1;
    }

    .ps.p1,
    .ps.p2,
    .kursor,
    .klik,
    .mock-memuat.muncul,
    .pilih-berkas,
    .bar-unggah {
        display: none;
    }

    .ketik {
        width: auto;
        border-right: 0;
    }

    .kotak-cek {
        background: var(--brand-600);
        border-color: var(--brand-600);
    }

    .t1 .titik,
    .t2 .titik,
    .t3 .titik {
        background: var(--tk);
        border-color: var(--tk);
        color: #fff;
    }

    .sambung::after {
        width: 100%;
    }

    html.tutorial-js .panel-panduan.aktif {
        animation: none;
    }
}
