:root {
    --bg-light: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-dim: #94a3b8;
    --border-color: #e2e8f0;
    
    --primary-indigo: #4f46e5;
    --primary-indigo-hover: #4338ca;
    --accent-violet: #7c3aed;
    --accent-violet-hover: #6d28d9;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --gold: #eab308;
    
    --font-primary: 'Rubik', 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes confettiExplode {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite ease-in-out;
}

.animate-float {
    animation: floatBadge 4s infinite ease-in-out;
}

/* Common Layout Components */
.container {
    max-width: 1680px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-indigo);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-indigo-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background-color: var(--accent-violet);
    color: white;
}
.btn-accent:hover {
    background-color: var(--accent-violet-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn-danger {
    background-color: #fee2e2;
    color: var(--accent-rose);
}
.btn-danger:hover {
    background-color: #fecaca;
}

.btn.sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.full-width {
    width: 100%;
}

/* Form Controls */
.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-textarea {
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

/* Checkboxes */
.form-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--text-dim);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary-indigo);
}

/* Save / Offline Indicator Toast */
.save-toast-indicator {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: #1e293b;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    z-index: 10005;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.save-toast-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.offline-status-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-rose);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10006;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Gateway Screen Overlay */
.gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.gate-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.gate-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary-indigo);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gate-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.gate-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.gate-tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gate-tab-btn.active {
    color: var(--primary-indigo);
    border-bottom: 2px solid var(--primary-indigo);
    margin-bottom: -2px;
}

.gate-form {
    display: none;
}

.gate-form.active {
    display: block;
}

.json-import-section {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.import-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-align: center;
}

/* Main Application Layout */
.main-app-content {
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 100%;
}

.main-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emoji {
    font-size: 2rem;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.app-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.active-studio-tag {
    font-weight: 600;
    color: var(--primary-indigo);
    background-color: rgba(79, 70, 229, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
}

/* Tabs Navigation Menu */
.main-tabs-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 20px !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tabs-utility-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    width: 100% !important;
}

.main-tabs-grid,
.lesson-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 6px !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

.nav-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 9px 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    font-family: var(--font-primary, inherit) !important;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    color: #334155 !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: normal !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.nav-tab:hover:not(.locked) {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

.nav-tab.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    font-weight: 700 !important;
}

.nav-tab.active .tab-badge {
    background-color: #ffffff !important;
    color: #4f46e5 !important;
    font-weight: 800 !important;
}

.nav-tab.locked {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

.nav-tab.completed:not(.active) {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    color: #065f46 !important;
}

.nav-tab.completed:not(.active) .tab-badge {
    background: #10b981 !important;
    color: #ffffff !important;
}

.nav-tab.admin-only {
    border: 1.5px dashed var(--accent-violet, #8b5cf6) !important;
    color: var(--accent-violet, #8b5cf6) !important;
}
.nav-tab.admin-only.active {
    background: var(--accent-violet, #8b5cf6) !important;
    color: white !important;
}

.tab-badge {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

@media (max-width: 900px) {
    .main-tabs-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .nav-tab {
        padding: 6px 4px !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
    }
}

@media (max-width: 600px) {
    .main-tabs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Workspace Grid */
.workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 25px;
    align-items: start;
}

/* Removed workspace-layout media query per user request */

.main-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 500px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Dashboard Panel */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
    max-width: 650px;
}

.hero-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.progress-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-indigo);
}

.progress-ring-fill {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

.progress-details {
    display: flex;
    flex-direction: column;
}

.progress-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.progress-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Badges Showcase Vitrine */
.dashboard-section {
    margin-top: 20px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.badge-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.badge-icon-wrapper {
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lesson-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.badge-item:hover .lesson-badge-image {
    transform: scale(1.06);
}

.badge-item.approved .lesson-badge-image {
    filter: drop-shadow(0 6px 14px rgba(79, 70, 229, 0.28));
}

.badge-item.locked .lesson-badge-image {
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

/* SVG Embroidery badge design fallback */
.badge-patch {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    transition: var(--transition-smooth);
}

.patch-border {
    fill: none;
    stroke: #94a3b8;
    stroke-width: 3.5;
    stroke-dasharray: 4, 3;
}

.patch-bg {
    fill: #f1f5f9;
    stroke: #cbd5e1;
    stroke-width: 1.5;
}

.patch-emoji {
    font-size: 2.2rem;
    text-anchor: middle;
    dominant-baseline: middle;
    filter: grayscale(1);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.patch-text {
    font-family: var(--font-primary);
    font-size: 7.5px;
    font-weight: 800;
    fill: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Badge States */
.badge-item.locked .patch-border {
    stroke: #cbd5e1;
}

.badge-item.locked .patch-bg {
    fill: #f8fafc;
}

.badge-item.locked .badge-status {
    color: var(--text-dim);
    background-color: #f1f5f9;
}

.badge-item.pending .patch-border {
    stroke: var(--accent-amber);
    stroke-dasharray: 4, 3;
    animation: pulseSlow 2s infinite ease-in-out;
}

.badge-item.pending .patch-bg {
    fill: #fffbeb;
}

.badge-item.pending .patch-emoji {
    filter: none;
    opacity: 0.85;
}

.badge-item.pending .patch-text {
    fill: var(--accent-amber);
}

.badge-item.pending .badge-status {
    color: #b45309;
    background-color: #fef3c7;
    animation: pulseSlow 2s infinite ease-in-out;
}

.badge-item.approved {
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.12);
}

.badge-item.approved .patch-border {
    stroke: var(--primary-indigo);
    stroke-dasharray: none;
}

.badge-item.approved .patch-bg {
    fill: #e0e7ff;
}

.badge-item.approved .patch-emoji {
    filter: none;
    opacity: 1;
    animation: floatBadge 4s infinite ease-in-out;
}

.badge-item.approved .patch-text {
    fill: var(--primary-indigo);
}

.badge-item.approved .badge-status {
    color: #3730a3;
    background-color: #e0e7ff;
    font-weight: 600;
}

.badge-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.badge-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 9999px;
    background-color: #cbd5e1;
    color: var(--text-secondary);
}

/* Certified Badge Row */
.certified-badge-container {
    margin-top: 30px;
    background: #fafafa;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.certified-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.certified-badge-container.locked {
    opacity: 0.5;
}

.certified-badge-container.approved {
    opacity: 1;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.certified-patch {
    width: 90px;
    height: 90px;
}

.gold-border {
    stroke: #fbbf24;
}

.gold-bg {
    fill: #fef3c7;
}

.gold-text {
    fill: #d97706;
}

.certified-badge-container.approved .gold-border {
    stroke: #d97706;
    stroke-dasharray: none;
}

.certified-badge-container h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.certified-badge-container p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* Placeholder card for modules 2-8 */
.placeholder-module-card {
    text-align: center;
    padding: 50px 20px;
    background: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.placeholder-module-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.placeholder-module-card .lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 550px;
    margin: 0 auto 24px auto;
}

.badge-preview-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Worksheet Meeting Layout */
.meeting-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
}

/* Removed meeting-layout media query per user request */

.module-sidebar {
    border-left: 1.5px solid var(--border-color);
    padding-left: 20px;
}

@media (max-width: 768px) {
    .module-sidebar {
        border-left: none;
        border-bottom: 1.5px solid var(--border-color);
        padding-left: 0;
        padding-bottom: 20px;
    }
}

.module-sidebar h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.steps-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.step-nav-item:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
}

.step-nav-item.active {
    background-color: rgba(79, 70, 229, 0.06);
    color: var(--primary-indigo);
    font-weight: 600;
}

.step-nav-item.active i {
    transform: translateX(-3px);
}

.slide-progress-container {
    margin-top: 25px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
}

.slide-progress-bar-wrapper {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.slide-progress-fill {
    height: 100%;
    background-color: var(--primary-indigo);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

#m1-progress-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Slide Cards display */
.module-slides {
    min-height: 400px;
}

.slide-card {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.25s ease-out;
}

.slide-card.active {
    display: flex;
}

.slide-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.slide-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Why is this important header strip */
.why-important {
    background: #eff6ff;
    border-right: 3.5px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.why-desc {
    font-size: 0.85rem;
    color: #1e3a8a;
}

/* Welcome block card */
.welcome-banner {
    display: flex;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.banner-emoji {
    font-size: 2.2rem;
}

.lead {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Quote box (Key statement without title) */
.quote-box {
    background: #faf5ff;
    border-right: 3.5px solid var(--accent-violet);
    padding: 14px;
    border-radius: 0 6px 6px 0;
    margin: 20px 0;
}

.quote-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4c1d95;
    line-height: 1.5;
}

.checkbox-confirmation {
    margin-top: 24px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

.check-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fafafa;
    border: 1.5px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.check-item-card:hover {
    border-color: var(--primary-indigo);
    background-color: #fcfcfc;
}

.check-label-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.slide-navigation-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.slide-navigation-actions .prev-slide-btn {
    margin-left: auto;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .inputs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Walt Disney 3 brains layout */
.disney-brains-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .disney-brains-container {
        grid-template-columns: 1fr;
    }
}

.brain-card {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition-smooth);
    background: white;
}

.brain-card:hover {
    transform: translateY(-3px);
}

.brain-header {
    margin-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
}

.brain-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.brain-card.dream {
    border-color: rgba(124, 58, 237, 0.15);
}
.brain-card.dream:hover {
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
}
.brain-card.dream .brain-badge {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.brain-card.think {
    border-color: rgba(59, 130, 246, 0.15);
}
.brain-card.think:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}
.brain-card.think .brain-badge {
    background-color: #eff6ff;
    color: #3b82f6;
}

.brain-card.reality {
    border-color: rgba(16, 185, 129, 0.15);
}
.brain-card.reality:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}
.brain-card.reality .brain-badge {
    background-color: #ecfdf5;
    color: #10b981;
}

.brain-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 6px;
}

.brain-card ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brain-card ul li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    position: relative;
    padding-right: 12px;
}

.brain-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--text-dim);
}

/* Pain Cards blocks */
.pains-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pain-block-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.pain-block-card.mandatory {
    background-color: #f1f5f9; /* Highlighted Slate gray background */
    border: 1.5px solid #cbd5e1; /* Slate 300 */
    box-shadow: inset 0 0 4px rgba(0,0,0,0.02);
}

.pain-number {
    background: var(--primary-indigo);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.pain-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.pain-title-input {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .pain-inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .pain-title-input {
        grid-column: span 1;
    }
}

.pain-inputs input {
    font-size: 0.85rem;
    padding: 10px 14px;
    height: 42px;
}

/* Pitch Summary Card */
.pitch-builder-card {
    background: linear-gradient(135deg, rgba(79,70,229,0.02) 0%, rgba(124,58,237,0.02) 100%);
    border: 1.5px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.pitch-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-indigo);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pitch-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.pitch-template-inputs {
    line-height: 2.2;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: white;
    border: 1.5px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
}

/* Startup Memory Panel */
.startup-memory-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    color: #e2e8f0;
    margin-top: 25px;
    border: 1px solid #334155;
    box-shadow: var(--shadow-md);
}

.memory-card-title {
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.memory-card-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
    margin-bottom: 15px;
}

.prompt-box-wrapper {
    position: relative;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-preview-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 250px;
    overflow-y: auto;
    color: #38bdf8;
    text-align: left;
    direction: ltr;
    padding: 6px;
}

.btn-copy-prompt {
    align-self: flex-end;
}

/* Badge Checklist Card */
.badge-checklist-card {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    background: white;
}

.badge-header-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.badge-visual-small {
    width: 60px;
    height: 60px;
}

.badge-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}

.check-item-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mentor-badge-status-container {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-status-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge-indicator.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge-indicator.approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge-indicator.locked {
    background-color: #f1f5f9;
    color: var(--text-dim);
}

/* Contextual Glossary Sidebar */
.glossary-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    width: 240px;
    flex-shrink: 0;
}

.glossary-header {
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.glossary-header h4 {
    font-size: 1rem;
    font-weight: 700;
}

.glossary-header p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.glossary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 550px;
    overflow-y: auto;
}

.glossary-item {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    transition: var(--transition-smooth);
}

.glossary-item:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.glossary-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.glossary-item-term {
    font-weight: 600;
    font-size: 0.85rem;
}

.glossary-item-english {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
}

.glossary-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Admin Panel Styling */
.admin-panel-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stats-summary {
    display: flex;
    gap: 10px;
}

.stat-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.85rem;
}

.admin-table th {
    background-color: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.table-loading-msg {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
}

.student-progress-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
}

.progress-bar-track {
    width: 100px;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-emerald);
}

.progress-percent-lbl {
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge-buttons-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-admin-action {
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    transition: var(--transition-smooth);
}

.btn-admin-action:hover {
    background-color: #f1f5f9;
}

.btn-admin-action.approved {
    background-color: #d1fae5;
    border-color: #34d399;
    color: #065f46;
    font-weight: 600;
}

.admin-text-snippet {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    cursor: help;
}

/* Celebration Modal Overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    padding: 20px;
}

.celebration-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: confettiExplode 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confetti-particles {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.celebration-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.celebration-badge-display {
    width: 120px;
    height: 120px;
    margin: 20px 0;
}

.celebration-badge-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-indigo);
    margin-bottom: 10px;
}

.celebration-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 320px;
}

/* Footer styling */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* --- Added rules for new curriculum workflow --- */

/* Checkbox AI Tools Grid */
.ai-tools-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
}
@media (max-width: 600px) {
    .ai-tools-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.tool-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

/* Challenge double persona block */
.challenge-bonus-card {
    background-color: #fafbfc;
    border: 1.5px dashed #d8b4fe;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    color: var(--text-secondary);
}
.challenge-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-violet);
    margin-bottom: 4px;
}
.challenge-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.challenge-prompt-copy-block {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* 3 solution entries and Disney evaluations */
.solutions-grid-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.solution-entry-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sol-badge {
    background-color: var(--primary-indigo);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}
.disney-sol-block {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.sol-eval-header {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.disney-inputs-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (max-width: 768px) {
    .disney-inputs-row {
        grid-template-columns: 1fr;
    }
}

.solutions-grid-inputs textarea,
.disney-inputs-row textarea {
    min-height: 90px;
}

.winning-selection-card {
    background: #fffbeb;
    border: 1.5px solid #fef3c7;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}
.winning-radios {
    display: flex;
    gap: 20px;
    margin: 12px 0;
}
.winning-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Floating AI Mentor Button & Drawer Popup */
.ai-mentor-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--accent-violet);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 10004;
    transition: var(--transition-smooth);
    user-select: none;
}
.ai-mentor-floating-btn:hover {
    background-color: var(--accent-violet-hover);
    transform: scale(1.06) rotate(5deg);
}
.ai-mentor-drawer {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 330px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10003;
    overflow: hidden;
    animation: fadeIn 0.25s ease-out;
}
.mentor-drawer-header {
    background-color: var(--accent-violet);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mentor-drawer-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.close-drawer-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.mentor-drawer-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mentor-instruction {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.mentor-prompt-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#mentor-prompt-text-content {
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.mentor-tip {
    font-size: 0.75rem;
    color: #7c3aed;
    background-color: #f5f3ff;
    padding: 8px;
    border-radius: 6px;
    line-height: 1.4;
}

/* Three lessons styling */
.three-lessons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 18px;
}
.three-lessons-wrapper .input-group {
    margin-bottom: 0;
}

/* Validation Checkmarks inside Steps navigation list */
.step-nav-item i.check-completed {
    color: var(--accent-emerald);
    font-size: 0.95rem;
    margin-right: auto;
    margin-left: 8px;
    transition: var(--transition-smooth);
}
.step-nav-item i.check-completed.hidden {
    display: none !important;
}

/* Dynamic Pains remove layout */
.remove-pain-btn {
    align-self: center;
}

/* Active class for Role cards */
.role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .role-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.role-card-item {
    border: 1.5px solid var(--border-color);
    background: white;
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.role-card-item:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    transform: translateY(-1px);
}
.role-card-item.active {
    background-color: var(--accent-violet);
    color: white;
    border-color: var(--accent-violet);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}

/* Impersonation top bar */
.mentor-impersonation-bar {
    background-color: var(--accent-violet);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10006;
    box-shadow: var(--shadow-md);
}
.impersonation-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin stats layout updates */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}
.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}
.stat-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.stat-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-value-small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-line;
}
.text-purple { color: var(--accent-violet); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-blue { color: #3b82f6; }

/* Inline badges grid inside admin table row */
.badge-grid-inline {
    display: flex;
    gap: 4px;
    align-items: center;
}
.btn-badge-grid {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.btn-badge-grid:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}
.btn-badge-grid.pending {
    border-color: var(--accent-amber);
    background-color: #fffbeb;
    color: var(--accent-amber);
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.2);
    animation: pulseSlow 2s infinite ease-in-out;
}
.btn-badge-grid.approved {
    border-color: var(--accent-emerald);
    background-color: #d1fae5;
    color: var(--accent-emerald);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
}
.admin-table th, .admin-table td {
    padding: 10px;
}
.clickable-studio-name {
    color: var(--primary-indigo);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 700;
}
.clickable-studio-name:hover {
    color: var(--primary-indigo-hover);
}

/* -----------------------------------------------------------------------------
   Worksheet 2: Choosing the Right Startup Styles
   ----------------------------------------------------------------------------- */

/* Flex layout with persistent side timeline panel */
.worksheet-layout-with-timeline {
    display: flex;
    gap: 30px;
    width: 100%;
}

.timeline-panel {
    width: 220px;
    background: white;
    border-left: 1.5px solid var(--border-color);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .worksheet-layout-with-timeline {
        flex-direction: column;
    }
    .timeline-panel {
        width: 100%;
        border-left: none;
        border-bottom: 1.5px solid var(--border-color);
        padding-left: 0;
        padding-bottom: 20px;
    }
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-indigo);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-right: 15px;
}

/* Timeline vertical line */
.timeline-steps::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.timeline-step.completed .timeline-icon {
    background: #ecfdf5;
    border-color: var(--accent-emerald);
}

.timeline-step.active .timeline-icon {
    background: #e0e7ff;
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.timeline-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-val {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.timeline-step.completed .timeline-lbl {
    color: var(--accent-emerald);
}

/* Persistent top decisions bar */
.persistent-decisions-bar {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.persistent-decisions-bar .bar-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-indigo);
    display: flex;
    align-items: center;
    gap: 4px;
}

.persistent-decisions-bar .bar-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.persistent-decisions-bar .bar-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.persistent-decisions-bar .bar-item strong {
    color: var(--text-primary);
}

/* Star Rating Component */
.star-rating-container {
    display: flex;
    gap: 4px;
    direction: ltr;
    justify-content: center;
}

.star-rating-container .star-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.1s ease, color 0.15s ease;
    padding: 0;
}

.star-rating-container .star-btn:hover {
    transform: scale(1.2);
}

.star-rating-container .star-btn.active {
    color: #fbbf24;
}

/* Star rating table styles */
.rating-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
    margin-bottom: 20px;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.rating-table th, .rating-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.rating-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-table td:first-child {
    text-align: right;
    font-weight: 600;
    width: 25%;
}

.rating-why-textarea {
    width: 100%;
    margin-top: 6px;
    font-size: 0.75rem !important;
    padding: 6px 8px !important;
    min-height: 45px !important;
}

.rating-total-row {
    background-color: #f1f5f9;
    font-weight: 700;
}

.rating-total-row td {
    font-size: 0.95rem;
    color: var(--primary-indigo);
}

/* Business Model Cards */
.business-models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
}

@media (max-width: 576px) {
    .business-models-grid {
        grid-template-columns: 1fr;
    }
}

.business-model-card {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    background: white;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.business-model-card:hover {
    border-color: var(--primary-indigo);
    box-shadow: var(--shadow-sm);
}

.business-model-card.selected {
    border-color: var(--primary-indigo);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
    box-shadow: 0 0 0 1px var(--primary-indigo);
}

.business-model-card .model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-model-card .model-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.business-model-card.selected .model-title {
    color: var(--primary-indigo);
}

.business-model-card .model-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.business-model-card .model-examples {
    font-size: 0.75rem;
    color: var(--primary-indigo);
    font-style: italic;
    margin-top: auto;
}

.business-model-card .model-textarea {
    width: 100%;
    margin-top: 8px;
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    min-height: 60px !important;
    display: none;
}

.business-model-card.selected .model-textarea {
    display: block;
}

/* Shark Tank investment components */
.shark-tank-container {
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.shark-coins-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1.5px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.coins-budget-indicator {
    font-size: 1.1rem;
    font-weight: 800;
}

.coins-budget-indicator.valid {
    color: var(--accent-emerald);
}

.coins-budget-indicator.invalid {
    color: var(--accent-rose);
}

.shark-teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .shark-teams-grid {
        grid-template-columns: 1fr;
    }
}

.shark-team-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shark-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shark-team-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.shark-team-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    min-height: 38px;
}

.shark-investment-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.shark-investment-input-group label {
    font-size: 0.8rem;
    font-weight: 700;
}

.shark-coin-input {
    width: 80px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px !important;
    height: 34px !important;
}

/* Custom styles for criteria cards (Table out, Cards in) */
.filter-criteria-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    border-right: 4px solid var(--accent-color, #6c5ce7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.filter-criteria-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.criteria-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.criteria-num {
    background: var(--accent-color, #6c5ce7);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
.criteria-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.criteria-ratings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}
@media (max-width: 768px) {
    .criteria-ratings-grid {
        grid-template-columns: 1fr;
    }
}
.criteria-rating-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}
.rating-startup-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #33415c;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    line-height: 1.3;
}
.criteria-explanation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.explanation-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-color, #6c5ce7);
}
.filter-scores-panel {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.score-result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.score-result-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.score-result-val {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
.score-result-val.winner {
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

/* Shark Tank VC Game Components */
.shark-startup-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 290px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.shark-startup-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.startup-logo-placeholder svg {
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}
.shark-startup-card:hover .startup-logo-placeholder svg {
    transform: scale(1.08) rotate(3deg);
}
.coins-budget-indicator {
    transition: all 0.3s ease;
}
.coins-budget-indicator.valid {
    background: rgba(46, 204, 113, 0.12) !important;
    border: 1.5px solid #2ecc71 !important;
    color: #2ecc71 !important;
}
.coins-budget-indicator.invalid {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1.5px solid #ef4444 !important;
    color: #ef4444 !important;
}
.result-portfolio-msg.win {
    background: rgba(46, 204, 113, 0.12) !important;
    border: 1.5px solid #2ecc71 !important;
    color: #2ecc71 !important;
}
.result-portfolio-msg.loss {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1.5px solid #ef4444 !important;
    color: #ef4444 !important;
}
.result-portfolio-msg.even {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1.5px solid #f59e0b !important;
    color: #f59e0b !important;
}
.performance-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.performance-badge.huge-success { background: rgba(46,204,113,0.2); color:#2ecc71; border:1px solid #2ecc71; }
.performance-badge.success { background: rgba(54,162,235,0.2); color:#36a2eb; border:1px solid #36a2eb; }
.performance-badge.even { background: rgba(245,158,11,0.2); color:#f59e0b; border:1px solid #f59e0b; }
.performance-badge.fail { background: rgba(239,68,68,0.2); color:#ef4444; border:1px solid #ef4444; }

.outcome-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}
.outcome-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ===== RTL Global Rules for Hebrew Text ===== */
.form-textarea,
.form-input,
.form-select,
.slide-subtitle,
.why-desc,
.criteria-text,
.explanation-label,
.field-label,
.model-textarea,
.rating-why-textarea {
    direction: rtl;
    text-align: right;
}

/* Filter list compact layout */
.filter-criteria-cards-list {
    gap: 14px !important;
}

/* Admin Lesson Checklist */
.lesson-checkbox-item:hover {
    border-color: var(--accent-color) !important;
    background: rgba(108, 92, 231, 0.1) !important;
}
.lesson-checkbox-item:has(input:checked) {
    border-color: var(--accent-color) !important;
    background: rgba(108, 92, 231, 0.15) !important;
}

/* =============================================================================
   Investment Simulator Redesign (Card Layout)
   ============================================================================= */

.simulator-startups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 20px auto 0;
}

@media (max-width: 900px) {
    .simulator-startups-grid {
        grid-template-columns: 1fr;
    }
}

.startup-investment-card {
    --startup-accent: #3b82f6;

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    direction: rtl;

    border: 1px solid color-mix(in srgb, var(--startup-accent) 28%, #dfe5f0);
    border-radius: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--startup-accent) 8%, #ffffff), #ffffff 55%);
    box-shadow: 0 10px 28px rgba(31, 42, 68, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.startup-investment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(31, 42, 68, 0.12);
}

.startup-card-main {
    display: flex;
    gap: 18px;
    align-items: start;
}

.startup-logo-column {
    flex-shrink: 0;
}

.startup-logo-area {
    width: 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.startup-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.startup-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.startup-name {
    margin: 0;
    font-size: 23px;
    font-weight: 850;
    color: #15213a;
    direction: ltr;
    text-align: right;
}

.startup-description {
    margin: 5px 0 14px;
    color: #61708a;
    line-height: 1.55;
    font-size: 14px;
    text-align: right;
}

.startup-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.startup-profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f5;
    text-align: right;
}

.profile-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--startup-accent);
}

.profile-value {
    font-size: 13px;
    line-height: 1.45;
    color: #33415c;
}

.startup-card-bottom {
    display: flex;
    gap: 18px;
    margin-top: auto;
}

.killer-feature-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.killer-feature-section {
    padding: 10px 12px;
    text-align: right;
    border-radius: 13px;
    border-right: 4px solid var(--startup-accent);
    background: color-mix(in srgb, var(--startup-accent) 8%, #ffffff);
}

.killer-feature-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--startup-accent);
    display: block;
    margin-bottom: 2px;
}

.killer-feature-value {
    font-size: 13px;
    margin: 0;
    color: #33415c;
}

.investment-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    justify-content: flex-start;
}

.investment-section label {
    font-size: 14px;
    font-weight: 700;
    color: #33415c;
}

.startup-coins-input {
    width: 90px;
    height: 42px;
    border: 2px solid color-mix(in srgb, var(--startup-accent) 35%, #d5dbe7);
    border-radius: 12px;
    background: #ffffff;
    font-size: 18px;
    font-weight: 850;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.startup-coins-input:focus {
    border-color: var(--startup-accent);
}

/* Results styles */
.reveal-result {
    padding: 14px;
    border-radius: 15px;
    text-align: right;
    animation: result-reveal 0.4s ease forwards;
    margin-top: 10px;
}

.reveal-result--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}

.reveal-result--failure {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

.reveal-result--neutral {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

.investment-result-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    margin-bottom: 6px;
}

.reveal-result--success .investment-result-badge {
    background: #dcfce7;
    color: #15803d;
}

.reveal-result--failure .investment-result-badge {
    background: #fed7d7;
    color: #c53030;
}

.reveal-result--neutral .investment-result-badge {
    background: #e0f2fe;
    color: #0369a1;
}

.reveal-result p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.result-detail-extra {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.08);
    font-size: 12.5px;
    line-height: 1.45;
}

.startup-investment-card.result-revealed-success {
    border-color: #2ecc71 !important;
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.12);
}

.startup-investment-card.result-revealed-fail {
    border-color: #e74c3c !important;
    box-shadow: 0 10px 28px rgba(231, 76, 60, 0.12);
}

.startup-investment-card.result-revealed-even {
    border-color: #3498db !important;
    box-shadow: 0 10px 28px rgba(52, 152, 219, 0.12);
}

.simulator-code-section {
    width: min(100%, 620px);
    margin: 28px auto 0;
    padding: 22px;
    direction: rtl;
    text-align: right;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dde4ef;
    box-shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
}

@keyframes result-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 620px) {
    .startup-card-main {
        flex-direction: column;
    }
    .startup-logo-area {
        margin: 0 auto;
    }
    .startup-profile-grid {
        grid-template-columns: 1fr;
    }
    .startup-card-bottom {
        flex-direction: column;
    }
    .investment-section {
        align-items: flex-start;
    }
}


/* ========================================================= */
:root {
  --neon-blue: #4c1d95;
  --neon-purple: #4c1d95;
  --neon-pink: #4c1d95;
  --bg-dark: #ffffff;
  --glass-bg: #ffffff;
  --glass-border: #cbd5e1;
}

.slide-card h2 {
    color: var(--neon-blue);
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 0.5rem;
}

.cyber-subtitle {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cyber-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #0f172a;
}

.cyber-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

.cyber-btn {
    background: #ffffff !important;
    border: 2px solid var(--neon-blue) !important;
    color: var(--neon-blue) !important;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cyber-btn:hover {
    background: rgba(109, 40, 217, 0.05) !important;
    border-color: var(--neon-blue) !important;
}

.cyber-action-btn {
    background: var(--neon-blue) !important;
    border: 1px solid var(--neon-blue) !important;
    color: #ffffff !important;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
}

.cyber-action-btn:hover {
    background: #3b0764 !important;
    border-color: #3b0764 !important;
}

.cyber-sliders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.slider-group .slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--neon-blue);
}

.cyber-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #cbd5e1;
    border-radius: 3px;
    outline: none;
}
.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-purple);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(109, 40, 217, 0.3);
}

.cyber-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.color-picker-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.color-input-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.cyber-color {
    width: 150%;
    height: 150%;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    margin: 0;
    flex-shrink: 0;
}

.hex-display {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 1px solid #cbd5e1;
}

.drag-drop-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: #475569;
    transition: all 0.3s;
    cursor: pointer;
    background: #f8fafc;
}
.drag-drop-area:hover {
    border-color: var(--neon-blue);
    background: rgba(109, 40, 217, 0.05);
    color: var(--neon-blue);
}

.prompt-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    margin-top: 1rem;
}

.prompt-box .cyber-prompt-text {
    margin: 0;
    line-height: 1.6;
    font-family: monospace;
    font-size: 1.1rem;
    color: #0f172a;
}

.copy-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(109, 40, 217, 0.05);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.char-counter {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.hacker-vibe {
    border-color: var(--neon-blue) !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

.hacker-box {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
}
.hacker-text {
    color: #0f172a !important;
}

.cyber-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    border-right: 4px solid var(--neon-purple);
}

.summary-item h4 {
    margin: 0 0 0.5rem 0;
    color: #475569;
    font-size: 0.9rem;
}

.summary-item p {
    margin: 0;
    font-weight: bold;
    color: #0f172a;
}

.cyber-final-action {
    text-align: center;
    margin-top: 3rem;
}

.instruction-text {
    color: #a6e22e;
    margin-bottom: 1rem;
    font-weight: bold;
}

.ltr-box {
    text-align: left;
    direction: ltr;
    background: rgba(0,0,0,0.8);
}
.ltr-box .copy-btn {
    left: auto;
    right: 10px;
}
.english-prompt {
    color: var(--neon-blue) !important;
}


/* FIX FOR LOGIN DROPDOWN BUG */
#login-gate .select-wrapper {
    position: relative;
    z-index: 100000 !important;
}
#login-studio-select {
    position: relative;
    z-index: 100001 !important;
    cursor: pointer;
    pointer-events: auto !important;
}


/* CLEAN LIGHT THEME */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
}

.workspace-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 96% !important;
    margin: 0 auto;
    direction: rtl;
    height: 100vh;
    width: 96% !important;
}

/* Sidebar Table of Contents */
.toc-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.toc-sidebar h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.toc-item {
    padding: 10px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.toc-item:hover {
    background-color: #ffffff;
    color: var(--accent-color);
}

.toc-item.active {
    background-color: #f3e8ff;
    color: #4c1d95;
    border-right-color: #4c1d95;
    font-weight: 600;
}

.toc-item i {
    margin-left: 10px;
    font-size: 1.1em;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.slide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.slide-card.hidden {
    display: none;
}

.slide-card h3 {
    margin-top: 0;
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Inputs and Buttons */
.form-control, .form-select, textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    width: 100%;
    transition: border-color 0.2s;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Sliders */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    margin-top: -8px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 2px;
}

/* Color Pickers */
input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

/* Day 4 custom style extensions */
.bg-grid-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-8px); }
  100% { transform: translateX(0); }
}

.shake-anim {
  animation: shake 0.3s ease-in-out;
}

.wire-tool-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: #a78bfa !important;
}

.drawing-tool {
    transition: var(--transition-smooth);
    user-select: none;
}
.drawing-tool:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.drawing-tool.active {
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.3) !important;
}

@media (min-width: 1200px) {
    .main-app-content.container {
        max-width: 96% !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    .workspace-layout {
        max-width: 96% !important;
        width: 96% !important;
    }
    .container {
        max-width: 96% !important;
    }
}

/* ==========================================================================
   Day 7 — Simple Product Finish Checklist (Light Theme)
   ========================================================================== */
.m7-finish-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 15px 40px;
    direction: rtl;
    background: transparent;
    color: #1e293b;
}

.m7-finish-header {
    text-align: center;
    margin-bottom: 24px;
}

.m7-finish-badge {
    display: inline-block;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.m7-finish-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 8px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.m7-finish-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0 0 20px;
    font-weight: 600;
}

.m7-top-status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: right;
}

.m7-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .m7-top-grid {
        grid-template-columns: 1fr;
    }
}

.m7-progress-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.m7-progress-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.m7-progress-text {
    font-size: 1.05rem;
    color: #0f172a;
}

.m7-progress-pct-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
}

.m7-progress-track {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    height: 12px;
    border-radius: 99px;
    overflow: hidden;
}

.m7-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.m7-sections-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.m7-checklist-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.m7-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 10px;
}

.m7-sec-icon {
    font-size: 1.5rem;
}

.m7-sec-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.m7-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m7-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.m7-task-row:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.m7-task-row.m7-row--done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.m7-task-row.m7-row--in_progress {
    background: #fffbeb;
    border-color: #fde68a;
}

.m7-task-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    min-width: 200px;
}

.m7-task-row.m7-row--done .m7-task-label {
    color: #166534;
}

.m7-status-pills {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.m7-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s ease;
    font-family: inherit;
    user-select: none;
}

/* Status Pill Variations */
.m7-pill--gray {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}
.m7-pill--gray:hover {
    background: #e2e8f0;
    color: #334155;
}
.m7-pill--gray.active {
    background: #475569;
    color: #ffffff;
    border-color: #334155;
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.25);
}

.m7-pill--orange {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}
.m7-pill--orange:hover {
    background: #fde68a;
    color: #92400e;
}
.m7-pill--orange.active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.m7-pill--green {
    background: #d1fae5;
    color: #047857;
    border-color: #a7f3d0;
}
.m7-pill--green:hover {
    background: #a7f3d0;
    color: #065f46;
}
.m7-pill--green.active {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.m7-pill--slate {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.m7-pill--slate:hover {
    background: #dbeafe;
    color: #1d4ed8;
}
.m7-pill--slate.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.m7-missing-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.m7-missing-box label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

/* Release Gate Card */
.m7-release-gate-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.m7-release-gate-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.m7-sec-desc {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #64748b;
}

.m7-gate-items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 800px) {
    .m7-gate-items-grid {
        grid-template-columns: 1fr;
    }
}

.m7-gate-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.m7-gate-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.m7-gate-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.3;
}

.m7-gate-item--done {
    background: #f0fdf4;
    border-color: #86efac;
}

.m7-gate-item--done .m7-gate-label {
    color: #15803d;
}

.m7-gate-banner {
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.m7-gate-banner--pending {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    color: #92400e;
}

.m7-gate-banner--ready {
    background: #dcfce7;
    border: 1.5px solid #86efac;
    color: #15803d;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
}

/* ==========================================================================
   Day 8 — Marketing Sprint & Podcast Pitch Styles (Light Workbook Theme)
   ========================================================================== */
.m8-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 15px 40px;
    direction: rtl;
    background: transparent;
    color: #1e293b;
}

.m8-header {
    text-align: center;
    margin-bottom: 30px;
}

.m8-header-badge {
    display: inline-block;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.m8-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 8px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.m8-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0 0 20px;
    font-weight: 600;
}

.m8-intro-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.m8-intro-icon {
    font-size: 1.8rem;
    color: #d97706;
    flex-shrink: 0;
}

.m8-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.m8-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.m8-section-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.m8-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.m8-section-desc {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.m8-callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e40af;
    font-size: 0.9rem;
    margin-bottom: 22px;
}

.m8-callout-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.m8-subcard {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
}

.m8-subcard:last-child {
    margin-bottom: 0;
}

.m8-subcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.m8-subcard-header h4 {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.m8-subcard-hint {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0 0 16px;
    line-height: 1.5;
}

.m8-tag-target {
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    color: #7e22ce;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m8-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.m8-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .m8-grid-2, .m8-grid-3 {
        grid-template-columns: 1fr;
    }
}

.m8-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.m8-form-group:last-child {
    margin-bottom: 0;
}

.m8-form-group label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
}

.m8-field-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: -2px;
    margin-bottom: 4px;
}

.m8-input, .m8-textarea, .m8-select {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    color: #0f172a;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.m8-input::placeholder, .m8-textarea::placeholder {
    color: #94a3b8;
}

.m8-input:focus, .m8-textarea:focus, .m8-select:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.m8-fixed-sentence-box {
    background: #f5f3ff;
    border: 1px dashed #c4b5fd;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 12px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.m8-fixed-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6366f1;
}

.m8-fixed-text {
    margin: 0;
    color: #312e81;
    font-size: 0.9rem;
    font-weight: 600;
}

.m8-checklist-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 14px;
}

.m8-checklist-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    display: block;
    margin-bottom: 8px;
}

.m8-checklist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.m8-check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.86rem;
    color: #334155;
    user-select: none;
}

.m8-check-item input[type="checkbox"] {
    accent-color: #10b981;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.m8-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.m8-btn-ai-prompt {
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    color: #7e22ce;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.m8-btn-ai-prompt:hover {
    background: #e9d5ff;
    border-color: #c084fc;
    color: #581c87;
}

.m8-features-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.m8-feature-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.m8-feature-block-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 10px;
}

/* 90 Second Map Timeline */
.m8-timeline-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 800px) {
    .m8-timeline-track {
        grid-template-columns: 1fr;
    }
}

.m8-timeline-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}

.m8-timeline-badge {
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 6px;
}

.m8-timeline-info strong {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.m8-timeline-info span {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.3;
    display: block;
}

.m8-ready-action-box {
    text-align: center;
    margin-top: 24px;
}

.m8-btn-ready {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 14px 34px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.m8-btn-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.m8-btn-ready--active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Recordings Grid */
.m8-recordings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .m8-recordings-grid {
        grid-template-columns: 1fr;
    }
}

.m8-rec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.m8-rec-highlight {
    border-color: #fcd34d;
    background: #fffbeb;
    grid-column: 1 / -1;
}

.m8-rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.m8-rec-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
}

.m8-rec-header h5 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    flex: 1;
}

.m8-rec-badge-vip {
    display: inline-block;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 8px;
    align-self: flex-start;
}

.m8-rec-inst {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.4;
}

.m8-rec-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.m8-rec-done-chk {
    color: #059669;
    margin-top: auto;
    padding-top: 8px;
}

.m8-nested-chk {
    margin-top: 8px;
    margin-bottom: 12px;
    background: #ffffff;
}

/* ==========================================================================
   DAY 9 — FINAL SPRINT STYLES
   ========================================================================== */
.m9-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: inherit;
    direction: rtl;
}

.m9-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.m9-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #c7d2fe;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.m9-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.m9-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    margin: 0 0 18px;
    line-height: 1.55;
    max-width: 800px;
}

.m9-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.m9-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    color: #f1f5f9;
    font-weight: 600;
}

.m9-chip-accent {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fef3c7;
}

.m9-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.m9-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.m9-section-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.m9-section-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.m9-section-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Definition of Done Grid */
.m9-dod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.m9-dod-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.m9-dod-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.m9-dod-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-indigo, #4f46e5);
    cursor: pointer;
    flex-shrink: 0;
}

.m9-dod-item:has(input:checked) {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* Project Header & Card */
.m9-project-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.m9-project-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.m9-project-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m9-project-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.m9-student-badge {
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    color: #6d28d9;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m9-project-desc {
    font-size: 0.92rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Progress Area */
.m9-progress-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.m9-progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.m9-progress-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.m9-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #10b981 100%);
    border-radius: 9999px;
    transition: width 0.35s ease;
}

/* Priority Groups */
.m9-priority-group {
    margin-bottom: 26px;
}

.m9-priority-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.m9-priority-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.m9-priority-yellow {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.m9-priority-green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Task Rows */
.m9-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m9-task-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease;
}

.m9-task-card:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.m9-task-card.m9-task--done {
    background: #f0fdf4;
    border-color: #86efac;
}

.m9-task-card.m9-task--in_progress {
    background: #fffbeb;
    border-color: #fde68a;
}

.m9-task-content {
    flex: 1;
}

.m9-task-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.m9-task-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
}

.m9-task-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.m9-task-desc {
    font-size: 0.86rem;
    color: #475569;
    margin: 4px 0 0;
    line-height: 1.45;
}

/* Status Pills */
.m9-pills-group {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
    flex-shrink: 0;
}

.m9-pill {
    padding: 5px 11px;
    font-size: 0.76rem;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.m9-pill:hover {
    color: #1e293b;
}

.m9-pill.active[data-status="not_started"] {
    background: #ffffff;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.m9-pill.active[data-status="in_progress"] {
    background: #fef3c7;
    color: #b45309;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.m9-pill.active[data-status="done"] {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Callout Boxes */
.m9-callout-barak {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 14px 18px;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.m9-callout-barak i {
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Fallback state */
.m9-fallback-box {
    background: #fffbeb;
    border: 2px dashed #fcd34d;
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    color: #92400e;
    margin-bottom: 24px;
}

.m9-fallback-box.m9-fallback-empty {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    color: #475569;
    padding: 48px 24px;
}

.m9-fallback-empty h4 {
    color: #334155;
}

.m9-fallback-empty p {
    color: #64748b;
}

.m9-fallback-box h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.m9-fallback-box p {
    font-size: 0.95rem;
    margin: 0;
    color: #78350f;
}

/* Project Selector */
.m9-project-selector-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
}

.m9-selector-wrap {
    margin-top: 16px;
}

.m9-select {
    width: 100%;
    max-width: 420px;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat left 14px center;
    border: 2px solid #c7d2fe;
    border-radius: 12px;
    padding: 12px 18px 12px 42px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    direction: rtl;
}

.m9-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.m9-select:hover {
    border-color: #818cf8;
}

/* Textareas & Inputs */
.m9-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: #1e293b;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.m9-textarea:focus {
    outline: none;
    border-color: var(--primary-indigo, #4f46e5);
    background: #ffffff;
}

@media (max-width: 768px) {
    .m9-header {
        padding: 24px 18px;
    }
    .m9-title {
        font-size: 1.45rem;
    }
    .m9-task-card {
        flex-direction: column;
        gap: 12px;
    }
    .m9-pills-group {
        align-self: flex-start;
    }
    .m9-dod-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LESSON 10 (M10) — CapCut Final Product Trailer & Demo Day Launch
   ========================================================================== */

.m10-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px 0 40px;
    direction: rtl;
}

.m10-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.3);
    position: relative;
    overflow: hidden;
}

.m10-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, rgba(244, 63, 94, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.m10-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbcfe8;
    margin-bottom: 12px;
}

.m10-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.m10-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin: 0 0 20px 0;
    max-width: 720px;
    line-height: 1.5;
}

.m10-intro-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
}

.m10-intro-banner i {
    font-size: 1.8rem;
    color: #fb7185;
}

.m10-intro-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f1f5f9;
}

/* Lesson 10 Stepper & Single-Card Navigation */
.m10-stepper-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.m10-stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.m10-step-indicator-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.m10-stepper-controls-mini {
    display: flex;
    gap: 6px;
}

.m10-mini-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m10-mini-nav-btn:hover:not(:disabled) {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
}

.m10-mini-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.m10-progress-track {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.m10-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #ec4899);
    border-radius: 9999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m10-steps-pills-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.m10-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.m10-pill-item:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.m10-pill-item.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.m10-pill-num {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.m10-pill-item.active .m10-pill-num {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* Sections & Single-Card Show/Hide */
.m10-section-card {
    display: none;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.m10-section-card.is-active {
    display: block;
    animation: fadeInM10 0.25s ease-out;
}

@keyframes fadeInM10 {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.m10-card-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1.5px solid #e2e8f0;
}

.m10-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.m10-section-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.m10-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.m10-section-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.m10-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.m10-section-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.m10-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.m10-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Tool Badges Grid */
.m10-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .m10-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .m10-tools-grid {
        grid-template-columns: 1fr;
    }
}

.m10-tool-badge,
.m10-tool-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.m10-tool-badge:hover,
.m10-tool-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.m10-tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.m10-tool-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m10-shortcut-chip {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #c7d2fe;
}

.m10-tool-desc {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.m10-tool-used-for {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
    color: #334155;
    margin-top: auto;
}

.m10-toolkit-mini-check {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 16px;
}

/* Checklists */
.m10-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.m10-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1e293b;
}

.m10-check-item:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.m10-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}

.m10-check-item input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #4338ca;
}

/* Camera Selection Cards */
.m10-camera-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.m10-camera-card:hover {
    border-color: #818cf8;
    background: #ffffff;
    transform: translateY(-2px);
}

.m10-camera-card.selected {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.m10-camera-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: #e0e7ff;
    color: #3730a3;
    align-self: flex-start;
}

.m10-camera-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.m10-camera-list {
    margin: 0;
    padding-right: 18px;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.5;
}

/* Story Blocks Planner */
.m10-story-block {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.m10-story-block.included {
    border-color: #818cf8;
    background: #ffffff;
}

.m10-story-block.skipped {
    opacity: 0.55;
    background: #f1f5f9;
}

.m10-story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.m10-story-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m10-story-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #4f46e5;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m10-story-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.m10-time-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.m10-story-note-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #1e293b;
    box-sizing: border-box;
}

/* Mapping Table (What I say -> What we show) */
.m10-mapping-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.m10-mapping-row {
    display: grid;
    grid-template-columns: 24px 1fr 30px 1.2fr;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
}

.m10-arrow-icon {
    text-align: center;
    color: #6366f1;
    font-weight: 700;
}

.m10-speech-pill {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.m10-screen-pill {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Logo Position Corner Selector */
.m10-corner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 480px;
    margin: 16px 0;
}

.m10-corner-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.m10-corner-btn:hover {
    border-color: #818cf8;
    background: #ffffff;
}

.m10-corner-btn.selected {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #3730a3;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* End Card Selector */
.m10-endcard-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.m10-endcard-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.m10-endcard-option:hover {
    border-color: #818cf8;
    background: #ffffff;
}

.m10-endcard-option.selected {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.m10-endcard-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

/* Bonus / Advanced Audio Card */
.m10-bonus-card {
    border: 2px solid #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    position: relative;
}

.m10-bonus-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.m10-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.m10-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #78350f;
}

.m10-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Export Panel */
.m10-export-settings-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.m10-setting-chip {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m10-filename-box {
    background: #0f172a;
    color: #38bdf8;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: monospace;
    font-size: 0.95rem;
    direction: ltr;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.m10-filename-copy-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.m10-filename-copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Summary Dashboard Card */
.m10-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.m10-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    font-size: 0.88rem;
}

.m10-summary-label {
    color: #64748b;
    font-weight: 500;
}

.m10-summary-value {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 768px) {
    .m10-tools-grid {
        grid-template-columns: 1fr;
    }
    .m10-grid-2, .m10-grid-3, .m10-checklist-grid, .m10-summary-grid {
        grid-template-columns: 1fr;
    }
    .m10-mapping-row {
        grid-template-columns: 24px 1fr;
    }
    .m10-arrow-icon {
        display: none;
    }
}