/* Tutorial videos: customer page + pop-up player + small admin list rules */
.tu-page { padding-bottom: 24px; }
.tu-hero {
    position: relative; overflow: hidden; margin: 8px 0 18px; padding: 24px 20px; text-align: center; color: #fff; border-radius: 28px;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #0891b2 100%); box-shadow: 0 18px 40px rgba(79, 70, 229, .32);
}
.tu-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.tu-orb-1 { width: 190px; height: 190px; right: -50px; top: -70px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%); animation: tu-float 9s ease-in-out infinite; }
.tu-orb-2 { width: 130px; height: 130px; left: -40px; bottom: -50px; background: radial-gradient(circle at 60% 40%, rgba(16, 185, 129, .5), rgba(16, 185, 129, 0) 70%); animation: tu-float 12s ease-in-out infinite reverse; }
@keyframes tu-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-10px, 12px, 0); } }
.tu-hero-ic {
    position: relative; display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4); animation: tu-pulse 2.2s ease-out infinite;
}
.tu-hero-ic .icon { width: 28px; height: 28px; color: #fff; }
@keyframes tu-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
.tu-hero-t { position: relative; margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.tu-hero-s { position: relative; margin: 6px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .9); }

.tu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tu-card {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; color: inherit; text-decoration: none; border-radius: 22px;
    border: 1px solid var(--glass-border); transition: transform .2s ease, box-shadow .25s ease;
}
.tu-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(49, 46, 129, .18); }
.tu-card:active { transform: scale(.985); }
.tu-card:focus-visible { outline: 3px solid rgba(79, 70, 229, .5); outline-offset: 2px; }
.tu-num {
    position: absolute; top: -8px; left: 12px; min-width: 26px; padding: 2px 8px; text-align: center; font-size: .76rem; font-weight: 800; color: #fff;
    border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 4px 10px rgba(249, 115, 22, .35);
}
.tu-play {
    display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 20px; color: #fff;
    background: linear-gradient(135deg, #dc2626, #f43f5e); box-shadow: 0 10px 22px rgba(225, 29, 72, .32); transition: transform .25s ease;
}
.tu-play .icon { width: 28px; height: 28px; }
.tu-card:hover .tu-play { transform: scale(1.08); }
.tu-body { display: grid; gap: 3px; min-width: 0; }
.tu-title { font-size: 1.02rem; font-weight: 800; line-height: 1.35; }
.tu-desc { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.tu-watch { margin-top: 2px; font-size: .8rem; font-weight: 800; color: var(--primary); }

/* Pop-up player (built by tutorials.js) */
.tu-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 14px; background: rgba(15, 23, 42, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tu-fade .2s ease both; }
@keyframes tu-fade { from { opacity: 0; } to { opacity: 1; } }
.tu-modal-box { position: relative; width: 100%; max-width: 760px; padding: 10px; border-radius: 22px; background: #0f172a; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.tu-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 10px; color: #fff; }
.tu-modal-title { margin: 0; font-size: .98rem; font-weight: 800; line-height: 1.35; }
.tu-modal-close {
    display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: #fff; cursor: pointer; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.tu-modal-close:hover { background: rgba(255, 255, 255, .28); }
.tu-modal-close:focus-visible { outline: 3px solid #fcd34d; outline-offset: 2px; }
.tu-modal-close .icon { width: 20px; height: 20px; }
.tu-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.tu-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.tu-open { overflow: hidden; }

/* Admin list */
.tu-admin-n {
    display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; font-weight: 800; color: var(--primary);
    border-radius: 12px; background: rgba(79, 70, 229, .12);
}
.tu-admin-row.is-off { opacity: .65; }
@media (min-width: 700px) {
    .tu-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .tu-orb, .tu-hero-ic, .tu-modal { animation: none; }
    .tu-card, .tu-play { transition: none; }
}
