/* ==========================================================
   ElimuGen Interactive Video Tutorial Styles (Authentic Theme)
   ========================================================== */

.lp-tut-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.lp-tut-player-card {
    background: #1e1014;
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 20px;
    width: 70vw;
    max-width: 1120px;
    min-width: 320px;
    height: 75vh;
    max-height: 84vh;
    min-height: 520px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(244, 63, 94, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff1f2;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-tut-player-card.fullscreen-mode {
    width: 98vw !important;
    max-width: 98vw !important;
    max-height: 96vh !important;
    height: 96vh !important;
    border-radius: 12px !important;
}

.lp-tut-player-card .lp-tut-stage {
    flex: 1;
    min-height: 0;
    height: auto !important;
}

/* Header */
.lp-tut-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #2a141a;
    border-bottom: 1px solid rgba(244, 63, 94, 0.15);
}

.lp-tut-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-tut-badge {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lp-tut-title-wrap h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff1f2;
}

.lp-tut-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-tut-header-link {
    color: #fb923c;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-radius: 6px;
    transition: all 0.2s;
}
.lp-tut-header-link:hover {
    background: rgba(251, 146, 60, 0.15);
}

.lp-tut-close-btn {
    background: transparent;
    border: none;
    color: #fecdd3;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.lp-tut-close-btn:hover {
    color: #fff;
    background: rgba(244, 63, 94, 0.2);
}

/* Tabs Bar */
.lp-tut-tabs-bar {
    display: flex;
    background: #140b0e;
    border-bottom: 1px solid rgba(244, 63, 94, 0.1);
    overflow-x: auto;
    padding: 8px 14px;
    gap: 8px;
}

.lp-tut-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.15);
    color: #fecdd3;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.lp-tut-tab-btn:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #fff;
}

.lp-tut-tab-btn.active {
    background: rgba(244, 63, 94, 0.22);
    border-color: #f43f5e;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.lp-tut-tab-btn.completed {
    border-color: rgba(37, 211, 102, 0.4);
    color: #86efac;
}

/* Stage */
.lp-tut-stage {
    position: relative;
    background: #130a0d;
    height: clamp(380px, 52vh, 560px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-tut-scene-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Cursor Simulation */
.sim-cursor {
    position: absolute;
    width: 22px;
    height: 22px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23fff" stroke="%23f43f5e" stroke-width="1.5"><polygon points="3 3 10 22 13 14 21 11 3 3"/></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: left 1.6s cubic-bezier(0.25, 1, 0.5, 1), top 1.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.sim-cursor.cursor-click {
    transform: scale(0.85);
    filter: drop-shadow(0 0 12px #f43f5e);
}

/* Scene 1: Browser and Sidebar */
.sim-browser {
    display: flex;
    width: 100%;
    height: 100%;
}
.sim-sidebar {
    width: 240px;
    background: #1c0e12;
    border-right: 1px solid rgba(244, 63, 94, 0.15);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sim-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.sim-logo span {
    color: #f43f5e;
}
.sim-nav-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #fb923c;
    font-weight: 700;
    margin-top: 6px;
}
.sim-nav-item {
    font-size: 0.84rem;
    color: #fecdd3;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.sim-nav-item.sim-clicked {
    background: rgba(244, 63, 94, 0.25);
    color: #fff;
    border: 1px solid #f43f5e;
    transform: scale(1.02);
}
.sim-main {
    flex: 1;
    padding: 22px;
    background: #130a0d;
    overflow: hidden;
}
.sim-hero-banner h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}
.sim-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sim-hero-badge {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(251, 146, 60, 0.2));
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.sim-text-gradient {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sim-hero-banner p {
    margin: 4px 0 16px;
    font-size: 0.85rem;
    color: #fecdd3;
}
.sim-card-skeleton {
    background: rgba(35, 17, 22, 0.7);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sim-skel-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sim-skel-drop {
    height: 70px;
    border: 2px dashed rgba(244, 63, 94, 0.3);
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.05);
}
.sim-skel-line {
    height: 12px;
    background: rgba(244, 63, 94, 0.15);
    border-radius: 6px;
}
.sim-skel-btn {
    height: 36px;
    width: 220px;
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    border-radius: 8px;
    opacity: 0.7;
}

/* Scene 2: Upload Zone */
.sim-workspace {
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sim-card-header-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fb923c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.sim-badge-dot {
    width: 8px;
    height: 8px;
    background: #f43f5e;
    border-radius: 50%;
}
.sim-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.sim-dropzone {
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    background: rgba(30, 14, 18, 0.7);
    transition: all 0.3s;
}
.sim-drop-os {
    border: 2px dashed rgba(244, 63, 94, 0.6);
}
.sim-drop-curr {
    border: 2px dashed rgba(251, 146, 60, 0.6);
}
.sim-drop-icon {
    font-size: 2.2rem;
    margin-bottom: 4px;
}
.sim-drop-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.sim-drop-sub {
    font-size: 0.8rem;
    color: #fecdd3;
    margin-top: 3px;
}
.sim-file-pill {
    margin-top: 10px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.5);
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: scaleIn 0.3s ease;
}
.sim-detection-bar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
}
.sim-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(244, 63, 94, 0.3);
    border-top-color: #f43f5e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.sim-success-badge {
    margin-top: 14px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #86efac;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    animation: fadeIn 0.4s ease;
}

/* Scene 3: Form Configuration (Accurate Fields) */
.sim-config-panel {
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sim-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.sim-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff1f2;
    margin-bottom: 5px;
}
.sim-standard-selector {
    display: flex;
    gap: 8px;
}
.sim-std-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fecdd3;
    font-size: 0.8rem;
    padding: 9px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.sim-std-btn.active {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}
.sim-real-input-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s;
}
.sim-real-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 9px 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    box-sizing: border-box;
    outline: none;
}
.sim-real-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.85rem;
}
.sim-typing-active {
    border-color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.1) !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}
.sim-input-hint {
    color: #94a3b8;
    font-size: 0.72rem;
    display: block;
    margin-top: 4px;
}
.sim-callout-real {
    margin-top: 14px;
    background: rgba(251, 146, 60, 0.1);
    border-left: 3px solid #fb923c;
    padding: 9px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    color: #fdba74;
}
.sim-mode-toggle-pill {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fecdd3;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}
.sim-pulse-highlight {
    animation: pulseBorder 1s infinite alternate;
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
    border-color: #fb923c !important;
    color: #fff !important;
}
@keyframes pulseBorder {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}
.sim-split-panel {
    background: rgba(251, 146, 60, 0.05);
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 10px;
    padding: 12px;
    animation: fadeIn 0.3s ease;
}
.sim-split-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fb923c;
    margin-bottom: 8px;
}
.sim-split-options-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.sim-seq-badge {
    background: rgba(251, 146, 60, 0.2);
    border: 1px solid #fb923c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.sim-checkbox-demo {
    font-size: 0.72rem;
    color: #fecdd3;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Scene 4: Preview Table */
.sim-preview-panel {
    padding: 16px 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.sim-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.sim-real-gen-btn {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.4);
    transition: all 0.3s;
}
.sim-real-gen-btn.sim-clicked {
    transform: scale(0.96);
    filter: brightness(0.9);
}
.sim-gen-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fb923c;
    font-size: 0.82rem;
    font-weight: 600;
}
.sim-spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(251, 146, 60, 0.3);
    border-top-color: #fb923c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.sim-modal-mockup {
    flex: 1;
    background: #1c0e12;
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.sim-modal-header {
    background: #2a141a;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(244, 63, 94, 0.15);
}
.sim-modal-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.sim-pill-ready {
    background: rgba(37, 211, 102, 0.2);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.72rem;
}
.sim-preview-table-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
}
.sim-table th {
    background: #2b1318;
    color: #fecdd3;
    padding: 6px 8px;
    text-align: left;
    border: 1px solid #481e26;
    font-weight: 700;
}
.sim-table td {
    padding: 6px 8px;
    border: 1px solid #481e26;
    color: #fff1f2;
    line-height: 1.3;
}
.sim-table td.center {
    text-align: center;
    font-weight: 700;
    color: #fb923c;
}

/* Scene 5: M-Pesa Checkout */
.sim-checkout-panel {
    padding: 20px 24px;
    height: 100%;
    box-sizing: border-box;
}
.sim-checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: center;
}
.sim-checkout-card {
    background: rgba(35, 17, 22, 0.8);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 20px;
    border-radius: 14px;
}
.sim-checkout-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f43f5e;
    margin-bottom: 4px;
}
.sim-checkout-sub {
    font-size: 0.85rem;
    color: #fecdd3;
    margin-bottom: 14px;
}
.sim-field-wrap {
    margin-bottom: 14px;
}
.sim-field-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}
.sim-mpesa-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-family: monospace;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
}
.sim-stk-pay-btn {
    width: 100%;
    background: #25D366;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: all 0.2s;
}
.sim-stk-pay-btn.sim-clicked {
    transform: scale(0.97);
    background: #1eb355;
}
.sim-payment-status-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}
.sim-spinner-orange {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(251, 146, 60, 0.3);
    border-top-color: #fb923c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Phone Mockup */
.sim-phone-device {
    width: 190px;
    height: 280px;
    background: #0f0709;
    border: 3.5px solid #4a1f29;
    border-radius: 26px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    padding: 10px;
    transition: opacity 0.5s ease;
}
.sim-phone-speaker {
    width: 50px;
    height: 10px;
    background: #4a1f29;
    border-radius: 0 0 8px 8px;
    margin: 0 auto 10px;
}
.sim-stk-dialog {
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.72rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.3s ease;
}
.sim-stk-header {
    font-weight: 800;
    color: #25D366;
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.sim-stk-body {
    line-height: 1.3;
}
.sim-stk-pin {
    margin: 8px 0;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 4px;
    font-weight: 800;
    text-align: center;
    color: #0f172a;
}
.sim-stk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-weight: 700;
    color: #25D366;
}
.sim-stk-success {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid #25D366;
    color: #4ade80;
    border-radius: 10px;
    padding: 16px 8px;
    text-align: center;
    font-size: 0.72rem;
    animation: scaleIn 0.3s ease;
}
.sim-stk-check {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

/* Scene 6: Download DOCX */
.sim-download-panel {
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sim-download-box {
    background: rgba(35, 17, 22, 0.8);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 16px;
    padding: 24px 30px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}
.sim-doc-badge-icon {
    font-size: 2.4rem;
}
.sim-real-download-btn {
    background: #25D366;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.sim-real-download-btn.sim-clicked {
    transform: scale(0.96);
    background: #1eb355;
}
.sim-download-toast-real {
    margin-top: 16px;
    background: #2b1318;
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    text-align: left;
    animation: slideUp 0.3s ease-out;
}
.sim-toast-ico {
    font-size: 1.4rem;
}
.sim-complete-pill {
    margin-left: auto;
    background: #25D366;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.sim-doc-footer-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: #fecdd3;
    max-width: 600px;
    line-height: 1.4;
}

/* Footer & Controls */
.lp-tut-footer {
    background: #2a141a;
    border-top: 1px solid rgba(244, 63, 94, 0.15);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lp-tut-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.lp-tut-progress-fill {
    height: 100%;
    width: 16.66%;
    background: linear-gradient(90deg, #f43f5e, #fb923c);
    transition: width 0.4s ease;
}
.lp-tut-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-tut-cc-bar {
    background: rgba(15, 7, 10, 0.6);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #fff1f2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-right: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-tut-cc-tag {
    background: #f43f5e;
    color: #fff;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
}
.lp-tut-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-tut-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fff1f2;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.lp-tut-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #fff;
}
.lp-tut-btn.primary {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}
.lp-tut-btn.muted {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}
.lp-tut-speed-select {
    background: #1c0e12;
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fff;
    font-size: 0.78rem;
    padding: 5px 8px;
    border-radius: 6px;
    outline: none;
}

/* ── Session Plan Specific Simulation Styles ── */
.sim-sp-upload-box {
    border: 2px dashed rgba(244, 63, 94, 0.6);
    background: rgba(30, 14, 18, 0.7);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}
.sim-sp-config-panel {
    padding: 16px 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sim-sp-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    margin-bottom: 12px;
}
.sim-sp-mode-selector {
    display: flex;
    gap: 8px;
}
.sim-mode-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fecdd3;
    font-size: 0.76rem;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: all 0.2s;
}
.sim-mode-btn.active {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}
.sim-badge-discount {
    position: absolute;
    top: -8px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 800;
}
.sim-selection-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 10px;
    padding: 12px;
}
.sim-real-select {
    width: 100%;
    background: #1c0e12;
    border: none;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    border-radius: 6px;
}
.sim-extraction-preview-card {
    margin-top: 10px;
    background: rgba(244, 63, 94, 0.08);
    border-left: 3px solid #f43f5e;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
}
.sim-extract-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #fb923c;
    letter-spacing: 0.5px;
}
.sim-extract-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin: 2px 0;
}
.sim-extract-meta {
    font-size: 0.74rem;
    color: #fecdd3;
}
.sim-sp-preview-panel {
    padding: 14px 18px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.sim-sp-doc-preview {
    background: #fff;
    color: #1e293b;
    border-radius: 8px;
    padding: 14px 16px;
    height: 330px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.15);
}
.sim-sp-doc-header {
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.sim-doc-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #64748b;
}
.sim-sp-doc-header h4 {
    margin: 4px 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.sim-doc-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.72rem;
    color: #334155;
    text-align: left;
    margin-top: 4px;
    gap: 2px 10px;
}
.sim-sp-section-bar {
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.sim-table-sp th {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.72rem;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
}
.sim-table-sp td {
    color: #334155;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}
.sim-table-sp td.bold {
    font-weight: 700;
    color: #0f172a;
}

/* ── Responsive Video Player & Controls across all screen sizes ── */
@media (max-width: 860px) {
    .lp-tut-modal-overlay {
        padding: 8px;
    }
    .lp-tut-player-card {
        max-height: 94vh;
        border-radius: 14px;
    }
    .lp-tut-stage {
        height: 380px;
    }
    .lp-tut-header {
        padding: 10px 14px;
    }
    .lp-tut-header-actions {
        gap: 6px;
    }
    .lp-tut-header-actions span#lpTutStepSubtitle,
    .lp-tut-header-actions span#spTutStepSubtitle {
        display: none;
    }
    .lp-tut-controls-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .lp-tut-cc-bar {
        margin-right: 0;
        font-size: 0.74rem;
    }
    .lp-tut-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .lp-tut-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .sim-sp-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sim-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .lp-tut-stage {
        height: 340px;
    }
    .lp-tut-tabs-bar {
        padding: 6px 10px;
        gap: 6px;
    }
    .lp-tut-tab-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
    .lp-tut-title-wrap h3 {
        font-size: 0.9rem;
    }
    .lp-tut-close-btn {
        font-size: 1.3rem;
    }
}

/* ── Embedded Tutorial Card in Guide View ── */
.guide-embedded-player-card {
    background: #1e1014;
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 15px;
    margin-bottom: 10px;
}
.guide-embedded-player-card .lp-tut-stage {
    height: 420px;
}
@media (max-width: 860px) {
    .guide-embedded-player-card .lp-tut-stage {
        height: 360px;
    }
}

