@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;700;900&display=swap');

/* Video placeholder while YouTube loads */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}
.video-wrapper::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    z-index: 1;
    animation: pulse-play 2s ease infinite;
}
@keyframes pulse-play {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ===================================
   משתני צבעים (קל לשנות במקום אחד)
   =================================== */
:root {
    /* צבעים ראשיים */
    --primary: #319795;
    --primary-dark: #2c7a7b;
    --primary-light: #38b2ac;
    --primary-bg: #e6fffa;
    
    /* צבעי טקסט */
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;
    
    /* צבעי רקע */
    --bg-light: #f7fafc;
    --bg-lighter: #f8f9fa;
     
    /* צבעי גבולות */
    --border-light: #e2e8f0;
    --border-lighter: #edf2f7;
    
    /* צבעי הדגשה */
    --gold: #d69e2e;
    --gold-light: #f6e05e;
    --orange: #ed8936;
    --green: #48bb78;
    --green-bg: #f0fff4;
}

/* ===================================
   הפחתת אנימציות למי שמעדיף
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   עיצוב צ'ק ליסט 
   =================================== */
.check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.check-item:hover {
    border-color: var(--primary);
    background: var(--green-bg);
}

.check-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    display: grid;
    place-content: center;
    cursor: pointer;
    position: relative;
}

.check-item input[type="checkbox"]::before {
    content: "✓";
    color: white;
    font-size: 16px;
    font-weight: bold;
    transform: scale(0);
    transition: 0.2s transform;
    line-height: 1;
}

.check-item input[type="checkbox"]:checked {
    background-color: var(--primary);
}

.check-item input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.check-text strong { 
    display: block; 
    color: var(--text-dark); 
}

.check-text span { 
    font-size: 0.9rem; 
    color: var(--text-light); 
}

/* ===================================
   ביטול סמן כתיבה ובחירת טקסט
   =================================== */
.lesson-link, 
.tab-btn, 
.nav-btn, 
.module-title, 
.mobile-menu-btn,
.close-sidebar-btn,
.golden-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.lesson-link:focus, 
.tab-btn:focus, 
.nav-btn:focus,
button:focus {
    outline: none;
}

/* נגישות מקלדת - focus ring ברור */
.lesson-link:focus-visible,
.tab-btn:focus-visible,
.nav-btn:focus-visible,
.golden-btn:focus-visible,
.belief-button:focus-visible,
.mark-complete-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ===================================
   Wrapper ראשי
   =================================== */
.architect-course-wrapper {
    font-family: 'Heebo', sans-serif;
    background-color: var(--bg-lighter);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: -10px;
    scroll-behavior: smooth;
}

/* צבע בחירת טקסט */
.architect-course-wrapper ::selection {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

@media (min-width: 1024px) {
    .architect-course-wrapper {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }
}

/* ===================================
   סרגל צד (תפריט)
   =================================== */
.course-sidebar {
    background: white;
    width: 100%;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

@media (min-width: 1024px) {
    .course-sidebar {
        width: 320px;
        flex-shrink: 0;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
        display: flex !important;
        transform: none !important;
    }
}

@media (max-width: 1023px) {
    .course-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .course-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 40;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-header {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-lighter);
    position: relative;
    text-align: center;
}

.sidebar-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.close-sidebar-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    display: none;
}

@media (max-width: 1023px) {
    .close-sidebar-btn {
        display: block;
    }
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.instructor-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* כשגובה המסך קטן (זום גבוה בדפדפן) — כיווץ ה-header בלבד כדי לפנות מקום לשיעורים */
@media (max-height: 700px) {
    .sidebar-header {
        padding: 0.5rem 1rem;
    }
    .sidebar-logo {
        max-width: 60px;
        margin-bottom: 0.2rem;
    }
    .sidebar-title {
        font-size: 1rem;
    }
    .sidebar-subtitle,
    .instructor-name {
        font-size: 0.7rem;
    }
    .progress-bar-container {
        margin-top: 0.4rem;
    }
}

@media (max-height: 500px) {
    .sidebar-logo {
        display: none;
    }
    .sidebar-header {
        padding: 0.4rem 0.8rem;
    }
}

/* ===================================
   Progress Bar
   =================================== */
.progress-bar-container {
    margin-top: 1rem;
    text-align: right;
}

.progress-bar-bg {
    background-color: var(--border-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--primary-light);
    height: 100%;
    width: 5%;
    transition: width 0.5s ease;
}

.rank-badge {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: bold;
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: inline-block;
}

/* ===================================
   רשימת המודולים
   =================================== */
.modules-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;

    /* סרגל גלילה יפה */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--border-lighter);
}

.modules-list::-webkit-scrollbar {
    width: 6px;
}

.modules-list::-webkit-scrollbar-track {
    background: var(--border-lighter);
    border-radius: 3px;
}

.modules-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.modules-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.module-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem;
}

.module-title.intro {
    color: var(--primary-dark);
    margin-top: 0.5rem;
}

.module-section.active-module {
    background: linear-gradient(135deg, var(--green-bg) 0%, var(--primary-bg) 100%);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.5rem -0.5rem;
    border: 1px solid #c6f6d5;
}

.module-section.active-module .module-title {
    color: #234e52;
}
.architect-course-wrapper.dark-mode .module-title {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .module-section.active-module .module-title {
    color: #90cdf4 !important;
}

.lesson-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    color: var(--text-medium);
    cursor: pointer;
}

.lesson-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.lesson-link.active {
    background-color: var(--primary-bg);
    color: #285e61;
    font-weight: 700;
    border-right: 3px solid var(--primary-light);
}

.lesson-link.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: transparent;
}

.lesson-link.completed {
    background-color: var(--green-bg);
    border-right: 3px solid var(--green) !important;
}

.lesson-link.completed .lesson-icon {
    display: none;
}

.lesson-link.completed::before {
    content: "✓";
    font-weight: bold;
    color: var(--primary-light);
    width: 24px;
    text-align: center;
    margin-left: 0.75rem;
}

.lesson-link.completed:hover {
    background-color: #c6f6d5;
}

.lesson-icon {
    width: 24px;
    text-align: center;
    margin-left: 0.75rem;
}

/* ===================================
   תעודת סיום - עיצוב פרימיום
   =================================== */
.certificate-container {
    padding: 1.25rem;
    margin-top: auto;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--border-lighter) 100%);
    border-top: 2px solid var(--border-light);
}

.cert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* מצב נעול - עיצוב מעומעם אבל אלגנטי */
.cert-btn.locked {
    background: linear-gradient(135deg, var(--border-light) 0%, #cbd5e0 100%);
    color: var(--text-light);
    cursor: not-allowed;
    border: 2px dashed var(--text-muted);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.cert-btn.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    pointer-events: none;
}

.cert-btn.locked #certIcon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.cert-btn.locked #certText {
    font-size: 0.8rem;
}

/* טקסט עזר מתחת לכפתור הנעול */
.cert-btn.locked::after {
    content: 'השלימו את כל השיעורים';
    display: block;
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* מצב פתוח - חגיגי וזהוב */
.cert-btn.unlocked {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #ecc94b 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(214, 158, 46, 0.4),
        0 0 30px rgba(246, 224, 94, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    animation: cert-glow 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cert-btn.unlocked #certIcon {
    font-size: 1.3rem;
    animation: cert-bounce 1s ease-in-out infinite;
}

.cert-btn.unlocked #certText {
    font-size: 0.85rem;
}

.cert-btn.unlocked:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(214, 158, 46, 0.5),
        0 0 40px rgba(246, 224, 94, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.cert-btn.unlocked::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.1) 50%,
        transparent 70%
    );
    animation: cert-shine 3s ease-in-out infinite;
}

/* אנימציות לכפתור התעודה */
@keyframes cert-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(214, 158, 46, 0.4), 0 0 20px rgba(246, 224, 94, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(214, 158, 46, 0.6), 0 0 35px rgba(246, 224, 94, 0.4); }
}

@keyframes cert-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes cert-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ===================================
   תוכן ראשי
   =================================== */
.course-main {
    flex: 1;
    background-color: var(--bg-light);
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
}

@media (min-width: 1024px) {
    .course-main {
        padding: 2.5rem;
    }
}

.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    border: 1px solid var(--border-light);
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--primary-dark);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: block;
    }
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 4rem;
    padding-top: 2rem;
}

@media (min-width: 1024px) {
    .main-container {
        padding-top: 0;
    }
}

/* ===================================
   פירורי לחם
   =================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

.current-badge {
    background-color: var(--primary-bg);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.intro-badge {
    background: linear-gradient(135deg, #9f7aea 0%, #b794f4 100%) !important;
    color: white !important;
}

h1.page-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    h1.page-title { 
        font-size: 2.5rem; 
    }
}

/* ===================================
   נגן וידאו
   =================================== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================
   טיפ זהב
   =================================== */
.golden-tip-box {
    background: linear-gradient(to right, #fffbe6, #ffffff);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: stretch;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.golden-tip-video-area {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.golden-tip-video-area:hover { background: rgba(0,0,0,0.04); }

.golden-tip-card-link {
    flex: none;
    width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    color: #4a5568;
    padding: 10px;
    border-right: 1px solid #edf2f7;
    transition: background 0.2s;
}
.golden-tip-card-link:hover { background: rgba(0,0,0,0.03); }
.golden-tip-card-link div:first-child { font-size: 1.2rem; }
.golden-tip-card-link div:last-child { font-size: 0.75rem; font-weight: bold; line-height: 1.2; }

.golden-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gold-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-left: 1rem;
}

.golden-content {
    flex: 1;
}

.golden-content h4 {
    margin: 0;
    font-weight: 800;
    color: var(--text-dark);
}

.golden-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.golden-btn {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse-gold 2s infinite;
    white-space: nowrap;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(214, 158, 46, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(214, 158, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 158, 46, 0); }
}

/* ===================================
   טאבים
   =================================== */
.tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* עטיפת גלילת טאבים */
.tabs-scroll-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    border-bottom: 1px solid var(--border-lighter);
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

/* כפתורי טאב בתוך wrapper — תמיד ברוחב טבעי (לאפשר גלילה) */
.tabs-scroll-wrapper .tab-btn {
    flex: 0 0 auto;
}

/* חצי גלילה */
.tab-scroll-arrow {
    position: absolute;
    top: 0;
    bottom: 1px;
    width: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-medium);
    border: none;
    padding: 0;
    transition: color 0.2s, background 0.2s;
}

.tab-scroll-arrow:hover {
    color: var(--primary-dark);
}

.tab-scroll-arrow.arrow-right {
    right: 0;
    background: linear-gradient(to right, transparent 0%, white 60%);
}

.tab-scroll-arrow.arrow-left {
    left: 0;
    background: linear-gradient(to left, transparent 0%, white 60%);
}

.tabs-scroll-wrapper.has-overflow .tab-scroll-arrow {
    display: flex;
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 1rem;
    text-align: center;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    min-width: 100px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-medium);
    background-color: var(--bg-light);
}

.tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-light);
    background-color: var(--bg-light);
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* ===================================
   כפתורי ניווט תחתונים
   =================================== */
.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-btn.prev {
    color: var(--text-light);
}

.nav-btn.prev:hover {
    color: var(--text-dark);
}

.nav-btn.next {
    background-color: var(--text-dark);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-btn.next:hover {
    background-color: #1a202c;
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.5 !important;
    background-color: #cbd5e0 !important;
    border-color: #cbd5e0 !important;
    color: var(--text-light) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* ===================================
   קרדיט תחתון
   =================================== */
.course-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-lighter);
}

/* ===================================
   מודאל וידאו
   =================================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal.show { 
    display: flex; 
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    aspect-ratio: 9/16;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* ===================================
   מודאל סיום מודול
   =================================== */
.module-modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.module-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.module-modal-icon { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    display: block; 
}

.module-modal h2 { 
    color: var(--primary-dark); 
    margin: 0 0 0.5rem 0; 
}

.module-modal p { 
    color: var(--text-light); 
    margin-bottom: 1.5rem; 
    line-height: 1.6; 
}

.module-modal-btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.module-modal-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===================================
   תצוגת שיעורים
   =================================== */
.lesson-content {
    display: none;
}

.lesson-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* ===================================
   הצהרת האדריכל
   =================================== */
.declaration-box {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.declaration-input {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s;
    color: #1a202c !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
}

.declaration-input::placeholder {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    opacity: 0.8;
}

.declaration-input:focus {
    border-color: var(--primary) !important;
    background-color: #fafdff !important;
    color: #000 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.2) !important;
}

/* תיקון ספציפי לתיבות הטקסט הגדולות */
textarea.declaration-input {
    max-width: 100% !important;
    text-align: right !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.sign-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.sign-btn:hover {
    background: #285e61;
    transform: translateY(-2px);
}

.signed-message {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 1.1rem;
    animation: fadeIn 1s;
}

/* ===================================
   צ'ק ליסט פשוט
   =================================== */
.simple-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.simple-checklist li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-medium);
}

.simple-checklist li::before {
    content: "✓";
    color: var(--primary-light);
    font-weight: bold;
    margin-left: 0.75rem;
    width: 20px;
}

/* ===================================
   צ'ק ליסט מתקדם (עם אייקונים ממוספרים)
   =================================== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
}

.checklist-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
}

.checklist-content {
    flex: 1;
}

.checklist-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.checklist-content span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===================================
   כפתור סיימתי
   =================================== */
.mark-complete-btn {
    background-color: white;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.mark-complete-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.mark-complete-btn.completed {
    background-color: var(--primary-light);
    color: white;
}

.mark-complete-btn.completed:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.mark-complete-btn:focus {
    outline: none;
}

.mark-complete-btn:focus:not(:hover) {
    background-color: white;
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.mark-complete-btn.completed:focus:not(:hover) {
    background-color: var(--primary-light);
    color: white;
}

/* ===================================
   תיבת ציטוט
   =================================== */
.quote-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.quote-box p {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
}

/* ===================================
   כרטיסי הורדה
   =================================== */
.download-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.download-card:hover {
    border-color: var(--primary);
    background-color: var(--green-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(49, 151, 149, 0.15);
}

.download-card .file-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* כרטיסי הורדה אנכיים (3 עמודות) */
.tools-row-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.tools-vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.download-card-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 15px;
    text-decoration: none;
    height: 100%;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.download-card-vertical:hover {
    border-color: var(--primary);
    background-color: var(--green-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(49, 151, 149, 0.1);
    color: var(--text-dark) !important;
}

.download-card-vertical:hover div {
    color: var(--text-dark) !important;
}

.download-card-vertical:hover .file-icon {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.download-card-vertical .file-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .tools-row-layout {
        grid-template-columns: 1fr;
    }
    
    .download-card-vertical {
        flex-direction: row;
        text-align: right;
    }
    
    .download-card-vertical .file-icon {
        margin-bottom: 0;
        margin-left: 15px;
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }
}

/* ===================================
   כפתור פתיחת פענוח
   =================================== */
.reveal-summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.reveal-summary:hover {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.reveal-summary:hover span:last-child {
    transform: translateY(2px);
}

/* ===================================
   כלי AI
   =================================== */
.ai-tool-container { 
    font-family: 'Heebo', sans-serif; 
    direction: rtl; 
}

.ai-tool-header h3 { 
    margin-top: 0; 
    color: var(--text-dark); 
    text-align: center; 
}

.ai-tool-header p { 
    text-align: center; 
    color: var(--text-light); 
    margin-bottom: 1.5rem; 
}

.ai-welcome-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px dashed #cbd5e0;
    margin: 1rem 0;
}

.welcome-icon { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    animation: float 3s ease-in-out infinite; 
}

.ai-welcome-box h3 { 
    color: var(--text-dark); 
    margin-bottom: 0.5rem; 
}

.ai-welcome-box p { 
    color: var(--text-light); 
    max-width: 400px; 
    margin: 0 auto 2rem auto; 
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* סליידרים */
.sliders-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 20px; 
}

@media (max-width: 600px) { 
    .sliders-grid { 
        grid-template-columns: 1fr; 
    } 
}

.slider-item label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 5px; 
    color: var(--text-medium); 
    font-size: 0.9rem; 
}

.range-wrap { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.range-slider { 
    flex: 1; 
    -webkit-appearance: none; 
    height: 6px; 
    border-radius: 5px; 
    background: var(--border-light); 
    outline: none; 
}

.range-slider::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    background: var(--primary); 
    cursor: pointer; 
    border: 2px solid #fff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

.range-val { 
    font-weight: bold; 
    color: white; 
    background: var(--primary); 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.85rem; 
    transition: background 0.3s; 
}

/* טפסים */
.belief-input-wrapper { 
    background: var(--bg-light); 
    padding: 1.5rem; 
    border-radius: 8px; 
    border: 1px solid var(--border-lighter); 
    margin-bottom: 1.5rem; 
    position: relative; 
}

.belief-label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: bold; 
    color: var(--text-dark); 
}

.belief-desc { 
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 0.5rem; 
}

.belief-input { 
    width: 100%; 
    min-height: 80px; 
    padding: 10px; 
    border: 1px solid #cbd5e0; 
    border-radius: 6px; 
    font-family: inherit; 
    resize: vertical; 
}

/* כפתורי AI */
.belief-button { 
    width: 100%; 
    padding: 12px; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 1.1rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    transition: 0.2s; 
    box-shadow: 0 4px 10px rgba(49, 151, 149, 0.2); 
}

.belief-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(49, 151, 149, 0.3); 
}

.belief-button:disabled { 
    opacity: 0.7; 
    cursor: wait; 
    transform: none; 
}

.belief-button.start-btn { 
    width: auto; 
    padding: 10px 30px; 
    margin: 0 auto; 
    display: inline-flex; 
}

/* תוצאות */
.belief-results {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: none;
    line-height: 1.6;
    overflow-x: auto;
}
/* Limit AI-generated heading sizes */
.belief-results h1 { font-size: 1.15rem !important; margin: 10px 0 8px !important; }
.belief-results h2 { font-size: 1.05rem !important; margin: 10px 0 6px !important; }
.belief-results h3 { font-size: 0.95rem !important; margin: 8px 0 5px !important; }
.belief-results h4 { font-size: 0.9rem !important; margin: 6px 0 4px !important; }
.belief-results p { margin: 4px 0 !important; }

.action-buttons-wrapper { 
    display: none; 
    gap: 10px; 
    margin-top: 15px; 
}

.action-button { 
    flex: 1; 
    padding: 10px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
}

.copy-button { 
    background: var(--border-lighter); 
    color: var(--text-medium); 
}

/* סימון שיעור פעיל בתפריט הצד */
.sidebar-nav li.active-lesson-item {
    background-color: #e6fffa; /* טורקיז בהיר מאוד */
    color: #319795; /* טורקיז של המותג */
    border-right: 4px solid #319795; /* פס טורקיז בצד */
    font-weight: bold;
}

/* התאמה למצב לילה או עיצוב זהב (אופציונלי) */
.sidebar-nav li.active-lesson-item .lesson-number {
    background: #319795;
    color: white;
}
/* ===================================
   מנגנון המפתח לקסם
   =================================== */
.magic-key-container { 
    margin: 30px auto; 
    max-width: 600px; 
}

.magic-toggle-btn {
    background: white; 
    border: 2px solid var(--primary); 
    color: var(--primary);
    width: 100%; 
    padding: 15px 25px; 
    border-radius: 50px;
    font-size: 1.1rem; 
    font-weight: bold; 
    cursor: pointer;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 4px 10px rgba(49, 151, 149, 0.1); 
    transition: 0.2s;
}

.magic-toggle-btn:hover { 
    background: var(--primary-bg); 
    transform: translateY(-2px); 
    color: #234e52; 
}

.magic-toggle-btn.active .arrow { 
    transform: rotate(180deg); 
}

.magic-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.5s ease; 
    opacity: 0; 
}

.magic-content.open { 
    opacity: 1; 
}

.magic-card {
    background: #fff; 
    border: 2px solid #fbd38d; 
    border-radius: 20px;
    padding: 25px; 
    margin-top: 15px; 
    color: #5a4a42; 
    text-align: center;
}

.magic-card h3 { 
    color: #c05621; 
    margin: 0 0 20px; 
    font-size: 1.3rem; 
}

.interpretation-grid { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.inter-item {
    background: white; 
    border: 1px solid #f0e6dc; 
    border-radius: 15px;
    padding: 15px; 
    flex: 1 1 200px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.inter-item h4 { 
    color: #dd6b20; 
    margin: 10px 0; 
}

.icon-circle { 
    font-size: 2rem; 
    background: #fdf2e9; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: grid; 
    place-items: center; 
    margin-bottom: 10px;
}

.harmony-section { 
    background: #fffaf0; 
    border-right: 4px solid var(--orange); 
    padding: 15px; 
    margin: 20px 0; 
    text-align: right; 
    border-radius: 8px; 
}

.cage-note { 
    background: #34495e; 
    color: white; 
    padding: 15px; 
    border-radius: 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* ===================================
   טאב השראה
   =================================== */
#tab-2-inspire.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inspire-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0e6dc;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
}

.main-insight {
    padding: 30px 25px 25px 25px;
    border-top: 4px solid var(--orange);
}

.card-header-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.inspire-title {
    margin: 0 0 15px 0;
    color: #c05621;
    font-size: 1.4rem;
    text-align: center;
}

.text-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.text-content-wrapper.collapsed {
    max-height: 50px;
}

.text-content-wrapper.expanded {
    max-height: 1000px;
}

.text-body {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1rem;
}

.text-body p { 
    margin-bottom: 15px; 
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.text-content-wrapper.expanded .fade-overlay {
    opacity: 0;
}

.inspire-toggle-btn {
    display: inline-block;
    margin: 10px auto 20px auto;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: 'Heebo', sans-serif;
}

.inspire-toggle-btn:focus {
    outline: none;
}

.inspire-toggle-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.thought-box {
    background: var(--green-bg);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 10px;
}

.thought-icon { 
    font-size: 1.5rem; 
}

.thought-content { 
    color: #234e52; 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

/* כרטיס המשל */
.story-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    background: #fffaf0;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-color: var(--orange);
}

.story-icon {
    font-size: 2.5rem;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.story-content h4 { 
    margin: 0 0 5px 0; 
    color: var(--text-dark); 
    font-size: 1.1rem; 
}

.story-content p { 
    margin: 0 0 8px 0; 
    color: var(--text-light); 
    font-size: 0.9rem; 
}

.read-story-link { 
    color: var(--orange); 
    font-weight: bold; 
    font-size: 0.9rem; 
}

/* ===================================
   מנגנון "קרא עוד" לקלף מסר (מקובץ 1)
   =================================== */
.expandable-text-container {
    position: relative;
    transition: all 0.5s ease;
}

.expandable-text-container.collapsed {
    max-height: 80px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.expandable-text-container.expanded {
    max-height: 1000px;
    -webkit-mask-image: none;
    mask-image: none;
}

.read-more-btn {
    display: block;
    margin: -10px auto 0 auto;
    background: white;
    border: 1px solid var(--border-lighter);
    color: var(--orange);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 10;
    position: relative;
    transition: all 0.2s;
}

.read-more-btn:hover {
    background: #fffaf0;
    transform: translateY(2px);
}

/* ===================================
   ענן ערכים (Values Cloud) - מקובץ 1
   =================================== */
.values-cloud {
    display: none;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.8;
    text-align: center;
}

.values-cloud.show { 
    display: block !important; 
    animation: fadeIn 0.3s; 
}

/* ===================================
   תיקונים למובייל
   =================================== */
@media (max-width: 768px) {
    .course-main {
        padding: 1rem !important;
    }

    .main-container {
        width: 100%;
        padding-bottom: 6rem;
    }

    .tabs-header {
        justify-content: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-bottom-width: 2px;
    }

    .tab-content {
        padding: 1rem !important;
        margin: 0;
    }
    
    .tab-content > div {
        padding: 1rem !important;
    }

    .tab-content h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    #tab-0-1-2 > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #tab-0-1-2 img {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 1rem;
    }

    /* תיקון טיפ זהב במובייל */
    .golden-tip-box {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .golden-tip-video-area {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .golden-tip-card-link {
        border-right: none;
        border-top: 1px solid #edf2f7;
        flex-direction: row;
        padding: 8px;
        gap: 6px;
        width: auto;
    }

    .golden-icon {
        margin-left: 0;
    }

    /* תיקון footer nav במובייל */
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-btn {
        justify-content: center;
    }
}

/* ===================================
   Skeleton Loading - טעינת שלד
   =================================== */
.skeleton-container {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border-lighter) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

.skeleton-line.title {
    height: 24px;
    width: 60%;
    margin-bottom: 20px;
}

.skeleton-line.short {
    width: 75%;
}

.skeleton-line.medium {
    width: 90%;
}

.skeleton-line.long {
    width: 100%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   Toast Messages - הודעות צפות
   =================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--text-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.3s ease-out;
    pointer-events: auto;
}

.toast.success {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.toast.info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.toast.warning {
    background: linear-gradient(135deg, var(--gold) 0%, #b7791f 100%);
}

.toast.error {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.hiding {
    animation: toast-out 0.3s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===================================
   תיקון למצב עריכה באלמנטור
   =================================== */
body.elementor-editor-active .lesson-link.locked,
body.elementor-editor-preview .lesson-link.locked {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: white !important;
}

body.elementor-editor-active .lesson-link.locked .lesson-icon,
body.elementor-editor-preview .lesson-link.locked .lesson-icon {
    visibility: hidden;
    position: relative;
    width: 20px;
}

body.elementor-editor-active .lesson-link.locked .lesson-icon::after,
body.elementor-editor-preview .lesson-link.locked .lesson-icon::after {
    content: '🔵';
    visibility: visible;
    position: absolute;
    right: 0;
    top: 0;
}

/* ===================================
   כרטיסי פיצ'רים (Feature Cards)
   =================================== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* גריד פיצ'רים קומפקטי */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.feature-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-item .label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===================================
   תיבות הדגשה
   =================================== */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--green-bg) 100%);
    border: 1px solid #81e6d9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-box h3 {
    margin: 0 0 0.5rem 0;
    color: #234e52;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-box p {
    margin: 0;
    color: #285e61;
}

/* תיבת הדגשה הקדמה */
.intro-highlight-box {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #b2f5ea 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-right: 4px solid var(--primary-dark);
}

.intro-highlight-box h3 {
    margin: 0 0 0.5rem 0;
    color: #234e52;
    font-size: 1.1rem;
}

.intro-highlight-box p {
    margin: 0;
    color: #285e61;
    line-height: 1.6;
}

/* ===================================
   קלטים עם גריד (Values/Strengths)
   =================================== */
.values-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.input-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

/* ===================================
   Expandable Intro (תיבת הסבר מתרחבת)
   =================================== */
.expandable-intro {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.intro-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ebf8ff;
    transition: background 0.2s;
}

.intro-header:hover {
    background: var(--primary-bg);
}

.toggle-icon {
    color: #2c5282;
    font-weight: bold;
    transition: transform 0.3s;
}

.intro-body {
    padding: 25px;
    line-height: 1.7;
    color: var(--text-medium);
    border-top: 1px solid var(--border-light);
}

/* ===================================
   אקורדיון (Accordion)
   =================================== */
.accordion-container details {
    margin-bottom: 10px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.accordion-container summary {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
}

.accordion-container summary::-webkit-details-marker {
    display: none;
}

.accordion-container details[open] summary {
    border-bottom: 1px solid var(--border-lighter);
}

/* ===================================
   מודאל מייל (Email Modal)
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.email-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: right;
}

.email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    margin: 10px 0;
}

.email-buttons-row {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.checkbox-wrapper {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* רווח לתוצאות הגלאי */
.detector-results {
    margin-top: 30px !important; /* הוספת המרווח המבוקש */
    border-top: 1px dashed #e2e8f0; /* קו הפרדה עדין */
    padding-top: 20px;
}

/* כשהכפתור מנוטרל (בזמן עבודה) - העכבר יהפוך לממתין */
.detector-button:disabled, 
.belief-button:disabled {
    cursor: wait !important; /* זה השינוי החשוב */
    opacity: 0.7;
    transform: none !important;
}

/* עיצוב כפתור העתקה לקייטי בוט */
.copy-action-btn {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    margin-top: 15px;
}
.copy-action-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}


    /* עיצוב הכספת - גרסה בהירה ונקייה */
    .premium-vault-box {
        background: #ffffff; /* רקע לבן נקי */
        background-image: radial-gradient(#f0e6dc 1px, transparent 1px); /* נקודות עדינות */
        background-size: 20px 20px;
        color: #2d3748;
        padding: 35px;
        border-radius: 16px;
        text-align: center;
        border: 2px solid #d69e2e; /* מסגרת זהב */
        box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* צל עדין מאוד */
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
    }

    .vault-badge {
        background: #d69e2e;
        color: white;
        display: inline-block;
        padding: 6px 15px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 0.8rem;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .vault-title {
        color: #2d3748 !important;
        margin: 0 0 15px 0;
        font-size: 1.8rem;
        font-weight: 800;
    }

    .vault-desc {
        color: #4a5568 !important;
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 600px;
        margin: 0 auto 25px auto;
    }

    .vault-access-area {
        background: #fffaf0; /* רקע שמנת עדין לאזור הפעולה */
        border: 1px solid #fbd38d;
        border-radius: 12px;
        padding: 20px;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .password-box {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .pass-code {
        font-family: monospace;
        font-size: 1.4rem;
        letter-spacing: 2px;
        background: white;
        padding: 5px 15px;
        border-radius: 6px;
        border: 1px dashed #cbd5e0;
        color: #2d3748;
        user-select: all; /* מקל על העתקה */
    }

    .vault-main-btn {
        background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
        color: white;
        text-decoration: none;
        padding: 12px 40px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 4px 10px rgba(214, 158, 46, 0.3);
    }

    .vault-main-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(214, 158, 46, 0.4);
    }

    /* עיצוב הריבועים (השוואה) - נשאר זהה וטוב */
    .comparison-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .comparison-card {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 30px 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        transition: transform 0.2s;
    }

    .comparison-card:hover {
        transform: translateY(-5px);
        border-color: #319795;
    }

    .comp-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        background: #f7fafc;
        width: 80px;
        height: 80px;
        line-height: 80px;
        border-radius: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .comparison-card strong {
        display: block;
        font-size: 1.3rem;
        color: #2d3748;
        margin-bottom: 10px;
    }

    .comparison-card p {
        font-size: 1rem;
        color: #718096;
        line-height: 1.6;
        margin: 0;
    }
    
    
    /* תוספת לכפתור ה-PDF */
    .pdf-btn {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.3);
        color: white;
    }
    .pdf-btn:hover {
        background: rgba(255,255,255,0.2);
    }


  .detector-container { background: #f9f9f9; border-radius: 12px; padding: 20px; margin-top: 20px; border: 1px solid #e2e8f0; }
  .progress-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 15px; }
  .progress-step { width: 10px; height: 10px; background: #cbd5e0; border-radius: 50%; transition: 0.3s; }
  .progress-step.active { background: #319795; transform: scale(1.3); }
  .progress-step.completed { background: #319795; }
  .question-label { font-size: 1.1rem; font-weight: bold; color: #2d3748; display: block; margin-bottom: 10px; }
  .question-input { width: 100%; border: 1px solid #cbd5e0; border-radius: 8px; padding: 12px; font-size: 1rem; min-height: 100px; resize: vertical; }
  .navigation-buttons { display: flex; justify-content: space-between; margin-top: 15px; }
  .nav-button, .detector-button { background: #319795; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 1rem; }
  .nav-button.back-button { background: #edf2f7; color: #4a5568; }
  .detector-button { background: linear-gradient(135deg, #319795, #2c7a7b); width: 100%; margin-top: 10px; display:flex; justify-content:center; gap:10px;}
  
  /* עיצוב התוצאות וההפרדה */
  .detector-results {
    margin-top: 30px; 
    border-top: 1px dashed #e2e8f0; 
    padding-top: 20px;
  }
  
  .belief-item { background: white; padding: 15px; margin-bottom: 10px; border-radius: 8px; border-right: 4px solid #319795; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
  .belief-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .belief-explanation { font-size: 0.9rem; color: #718096; margin-top: 5px; }
  
  /* עיצוב כפתור העתקה לקייטי */
  .copy-action-btn {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    margin-top: 15px;
  }
  .copy-action-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
  }
  .error-shake { animation: shake 0.4s; }
  @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
  
  /* אנימציית המתנה */
  @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

  /* הוספתי רק את ה-CSS הרלוונטי לכלי כדי לא להתנגש עם העיצוב הכללי */
  .detector-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
  }
  .progress-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 15px; }
  .progress-step { width: 10px; height: 10px; background: #cbd5e0; border-radius: 50%; transition: 0.3s; }
  .progress-step.active { background: #319795; transform: scale(1.3); }
  .progress-step.completed { background: #319795; }
  .question-label { font-size: 1.1rem; font-weight: bold; color: #2d3748; display: block; margin-bottom: 10px; }
  .question-input { width: 100%; border: 1px solid #cbd5e0; border-radius: 8px; padding: 12px; font-size: 1rem; min-height: 100px; resize: vertical; }
  .navigation-buttons { display: flex; justify-content: space-between; margin-top: 15px; }
  .nav-button, .detector-button { background: #319795; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 1rem; }
  .nav-button.back-button { background: #edf2f7; color: #4a5568; }
  .detector-button { background: linear-gradient(135deg, #319795, #2c7a7b); width: 100%; margin-top: 10px; display:flex; justify-content:center; gap:10px;}
  .belief-item { background: white; padding: 15px; margin-bottom: 10px; border-radius: 8px; border-right: 4px solid #319795; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
  .belief-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .belief-explanation { font-size: 0.9rem; color: #718096; margin-top: 5px; }
  .error-shake { animation: shake 0.4s; }
  @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
  
  

    .values-cloud.show { display: block !important; animation: fadeIn 0.3s; }

/* --- עיצוב ציר הזמן הויזואלי (טאב העמקה) --- */
.timeline-visual {
    position: relative;
    padding: 20px 0;
}

/* הקו המקשר */
.timeline-visual::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 50px;
    right: 24px; /* מיקום הקו */
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.t-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #319795;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.t-content {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
}

.t-content strong {
    display: block;
    color: #319795;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.t-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.timeline-summary {
    background: #ebf8ff; /* כחול בהיר מאוד */
    border: 1px dashed #319795;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

.timeline-summary strong {
    color: #2c5282;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* מוודא שפופאפים של אלמנטור יהיו מעל הכל */
.elementor-popup-modal {
    z-index: 99999999 !important;
}


/* === אנימציות לכפתורי שותפים === */

/* כפתור ראשי - הצטרפות */
.partner-join-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* מעבר חלק ונעים */
}

.partner-join-btn:hover {
    transform: translateY(-3px); /* עולה טיפה למעלה */
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.5) !important; /* הצל מתחזק */
    filter: brightness(1.08); /* נהיה קצת יותר מואר */
}

/* כפתור משני - צפייה ברשימה */
.partner-list-btn {
    transition: all 0.3s ease;
}

.partner-list-btn:hover {
    background-color: #38a169 !important; /* הרקע מתמלא בירוק */
    color: white !important; /* הטקסט הופך ללבן */
    border-color: #38a169 !important;
    transform: scale(1.02); /* גדל ממש בקטנה */
}

/* === עיצובים לשיעור 2 (גן החיות והכלים) === */

/* עיצוב המפענח (כלובים) */
.instruction-box {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
    text-align: center;
    color: #4a5568;
}

.cage-input-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #cbd5e0;
}

.cage-input-group:last-child {
    border-bottom: none;
}

.declaration-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.bg-light {
    background-color: #f9fbfb;
}

.checkbox-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* כרטיסיות נפתחות (השראה) */
.text-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.text-content-wrapper.collapsed {
    max-height: 100px; /* גובה התחלתי סגור */
}

.text-content-wrapper.expanded {
    max-height: 1000px; /* גובה מספיק כדי להכיל הכל */
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #fffaf0); /* תואם לרקע הכרטיס */
    display: block;
}

.text-content-wrapper.expanded .fade-overlay {
    display: none;
}



/* === לוח הציור (Drawing Canvas) === */
.drawing-wrapper {
    position: relative;
    width: 100%;       /* תמיד ינסה לתפוס את כל הרוחב הזמין */
    max-width: 1200;  /* גבול עליון רחב יותר (הגדלתי מ-600) */
    margin: 0 auto;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    overflow: hidden;
    touch-action: none;
    background-color: white; /* שיהיה רקע לבן מתחת */
}

.drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: crosshair;
    width: 100%;
    height: 100%;
}

.background-image {
    display: block;
    width: 100%;
    height: auto;
}

.toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tool-btn {
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
}

.tool-btn.active-tool {
    background: #fefcbf;
    border-color: #f6e05e;
    font-weight: bold;
}

/* === עיצובים לשיעור 2 (גן החיות והכלים) === */

/* עיצוב המפענח (כלובים) */
.instruction-box {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
    text-align: center;
    color: #4a5568;
}

.cage-input-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #cbd5e0;
}

.cage-input-group:last-child {
    border-bottom: none;
}

.declaration-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.bg-light {
    background-color: #f9fbfb;
}

.checkbox-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* כרטיסיות נפתחות (השראה) */
.text-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.text-content-wrapper.collapsed {
    max-height: 100px; /* גובה התחלתי סגור */
}

.text-content-wrapper.expanded {
    max-height: 1000px; /* גובה מספיק כדי להכיל הכל */
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #fffaf0); /* תואם לרקע הכרטיס */
    display: block;
}

.text-content-wrapper.expanded .fade-overlay {
    display: none;
}



/* סגנון ספציפי למכשול ה-range slider */
#sevenLayersBrushSize::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #764ba2;
    cursor: pointer;
}

#sevenLayersBrushSize::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #764ba2;
    cursor: pointer;
    border: none;
}

.drawing-color-btn:hover {
    transform: scale(1.1);
}

/* סגנון ל-summary */
.reveal-summary {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.reveal-summary:hover {
    background: #f7fafc !important;
}


/* === עיצוב משופר למשחקי האבחון (שיעור 3) === */

/* מסגרת הכלי */
.diagnosis-tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px; /* פינות עגולות יותר */
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.diagnosis-tool-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* כותרת הכלי */
.tool-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.tool-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tool-emoji {
    font-size: 2.5rem;
    background: #f7fafc;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* כפתורי הפעולה (הורדה + ציור) */
.action-buttons-wrapper {
    display: flex;
    gap: 10px;
}

.clean-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* כפתור הורדה - עיצוב */
.btn-download {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-download:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* כפתור ציור - עיצוב */
.btn-draw {
    background-color: #319795; /* הצבע הירוק-טורקיז שלך */
    color: white;
    box-shadow: 0 2px 5px rgba(49, 151, 149, 0.3);
}

.btn-draw:hover {
    background-color: #2c7a7b;
    transform: translateY(-2px);
}

/* === סרגל הכלים של הציור (משופר) === */
.drawing-toolbar-styled {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.draw-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569; /* טקסט כהה וברור */
    font-weight: 500;
    transition: all 0.2s;
}

.draw-tool-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* מצב פעיל - בולט מאוד */
.draw-tool-btn.active-tool {
    background: #2d3748; /* רקע כהה */
    color: white; /* טקסט לבן */
    border-color: #2d3748;
    box-shadow: 0 2px 6px rgba(45, 55, 72, 0.3);
    font-weight: bold;
}

/* כפתור ניקוי (אדום עדין) */
.draw-tool-btn.btn-clear {
    color: #e53e3e;
    border-color: #feb2b2;
}

.draw-tool-btn.btn-clear:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

/* עיצוב כפתורי צבעים לתרגילי אבחון */
.drawing-color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #cbd5e1;
    transition: all 0.2s;
}

.drawing-color-btn:hover {
    transform: scale(1.1);
}

.drawing-color-btn.active {
    border: 2px solid white;
    box-shadow: 0 0 0 3px #2d3748; /* טבעת כהה מסביב לנבחר */
    transform: scale(1.1);
}


/* ============================================
   מודל אישור מותאם אישית (במקום confirm)
   ============================================ */

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.custom-confirm-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.custom-confirm-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.custom-confirm-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.custom-confirm-text {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-confirm-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.custom-confirm-btn.primary {
    background: linear-gradient(135deg, #319795 0%, #285e61 100%);
    color: white;
}

.custom-confirm-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 151, 149, 0.4);
}

.custom-confirm-btn.secondary {
    background: #edf2f7;
    color: #4a5568;
}

.custom-confirm-btn.secondary:hover {
    background: #e2e8f0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* =========================================
   עיצוב חדש לשאלון פרואקטיביות
   ========================================= *//* --- עיצוב כללי לכרטיסיות והסברים --- */
.concept-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.concept-title {
    color: #2b6cb0;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #ebf8ff;
    padding-bottom: 10px;
}

/* --- דיאגרמת המעגלים (ויזואלית) --- */
/* --- דיאגרמת המעגלים (מתוקן למניעת דריסת טקסט) --- */
.circles-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    position: relative;
    height: 350px; /* הגדלנו גובה */
}

.circle-concern {
    width: 320px; /* הגדלנו את הקוטר */
    height: 320px;
    background-color: #fff5f5;
    border: 2px solid #feb2b2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* מצמיד את הטקסט למעלה */
    padding-top: 35px; /* דוחף את הטקסט פנימה שלא ייצמד לקו */
    position: relative;
    color: #c53030;
    font-weight: bold;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
    text-align: center;
}

.circle-influence {
    width: 150px; /* הקטנו מעט כדי לפנות מקום */
    height: 150px;
    background-color: #f0fff4;
    border: 2px solid #9ae6b4;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #276749;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 10px; /* כדי שהטקסט הפנימי לא ייצמד לשוליים */
}

/* --- השוואה: נהג מול נוסע --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.compare-box {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.reactive-box {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.proactive-box {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

/* --- שאלון וכפתורים --- */
.rating-btns {
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 280px;
    margin-top: 5px;
}

.rate-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #cbd5e0;
    background: #fff;
    color: #718096;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rate-btn:hover {
    background: #ebf8ff;
    color: #2b6cb0;
    border-color: #bee3f8;
}

.rate-btn.selected {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
    box-shadow: 0 2px 5px rgba(49, 130, 206, 0.3);
}

/* --- אזור תוצאות (ללא מסגרת אדומה!) --- */
#proactive-results-area {
    display: none; /* מוסתר עד לחישוב */
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

/* --- כפתור חישוב --- */
.calc-btn-styled {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    margin: 30px auto;
}

.calc-btn-styled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
}

/* --- עיצוב דוח התוצאות החדש --- */
.results-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #edf2f7;
    margin-top: 30px;
    animation: slideUp 0.7s ease-out;
}

.results-header {
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.archetype-icon {
    font-size: 3.5rem;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.results-body {
    padding: 30px;
}

.insight-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.insight-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #2b6cb0;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ברים של ציונים */
.bars-container {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.bar-label {
    width: 120px;
    font-weight: bold;
    color: #4a5568;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 10px;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out;
}

.bar-value {
    width: 30px;
    text-align: right;
    font-weight: bold;
    color: #2d3748;
}

.action-list {
    margin: 0;
    padding-right: 20px;
}

.action-list li {
    margin-bottom: 8px;
    color: #2d3748;
}

/* --- הגדרות הדפסה (ה"קסם" של כפתור ההדפסה) --- */
@media print {
    /* הסתרת כל האלמנטים בדף */
    body * {
        visibility: hidden;
    }
    
    /* הסתרת אלמנטים שמפריעים כמו כפתורים */
    .no-print, button, .ai-tool-header, .tabs-header {
        display: none !important;
    }

    /* הצגת כרטיס התוצאות בלבד */
    #proactive-results-area, 
    #proactive-results-area * {
        visibility: visible;
    }

    /* מיקום הכרטיס בראש הדף הלבן */
    #proactive-results-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
    }
    
    /* וידוא שהרקעים הצבעוניים יודפסו */
    .results-header, .bars-container, .bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- מובייל --- */
@media (max-width: 600px) {
    .comparison-grid { grid-template-columns: 1fr; }
    .q-row { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .rating-btns { max-width: 100%; justify-content: space-between; }
}

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

/* --- התאמה למובייל --- */
@media (max-width: 600px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .circle-concern {
        width: 240px;
        height: 240px;
    }
    .circle-influence {
        width: 130px;
        height: 130px;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


  .tab-continue-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #38b2ac, #319795);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: softPulse 2.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.3);
    position: relative;
}
.tab-continue-btn::before {
    content: '⬅';
    font-size: 1.3rem;
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(56, 178, 172, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(56, 178, 172, 0.55); }
}

.tab-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 178, 172, 0.5);
    animation: none;
}
  
  
  @keyframes chipAppear {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.chip-container {
    min-height: 20px;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
  
  .arch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}
@media (min-width: 768px) {
    .arch-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.arch-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}
  
  /* טאבים נעולים */
.tab-btn.tab-locked {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
    color: #a0aec0 !important;
}
.tab-btn.tab-locked::after {
    content: '🔒';
    font-size: 0.75rem;
    margin-right: 4px;
}

/* טאב שהושלם */
.tab-btn.tab-completed {
    color: var(--primary-dark);
}
.tab-btn.tab-completed::before {
    content: '✓ ';
    color: #38a169;
    font-weight: 900;
}

/* כפתור "הושלם" — מושבת עד שכל הטאבים נפתחו */
.mark-complete-btn:not(.completed) {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
}
.mark-complete-btn.all-tabs-done:not(.completed) {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    border-style: solid;
}
.mark-complete-btn.completed {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    border-style: solid;
}
  
  /* 🧭 Intentions System — CSS */
@keyframes intentionSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#intentions-areas-grid > div:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#add-custom-area-btn:hover {
    border-color: #38b2ac;
    color: #38b2ac;
}

#save-intentions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56,178,172,0.4);
}
  
  /* 👤 Personal Area Panel — CSS */

#personal-area-btn:hover {
    background: linear-gradient(135deg, #e6fffa, #ebf8ff) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 178, 172, 0.2);
}

#personal-area-panel::-webkit-scrollbar {
    width: 5px;
}
#personal-area-panel::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.pa-locked-item {
    transition: all 0.2s;
}
.pa-locked-item:hover {
    background: #edf2f7 !important;
}

/* =============================== */
/* 👤 אזור אישי — סקשנים חדשים   */
/* =============================== */
.pa-insight-section .pa-section-header {
    transition: all 0.2s ease;
}
.pa-insight-section .pa-section-header:hover {
    background: #f7fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pa-insight-section.pa-unlocked .pa-section-header {
    background: #fff !important;
    border-color: #c6f6d5 !important;
}
.pa-insight-section.pa-unlocked .pa-section-header span:first-child {
    font-size: 1.05rem;
}
.pa-insight-section.pa-unlocked .pa-section-header span:nth-child(2) {
    color: #2d3748 !important;
    font-weight: bold;
}

.pa-section-body {
    animation: paSlideDown 0.2s ease;
}
@keyframes paSlideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================== */
/* 💡 קופסת שמירת תובנה (AI)      */
/* =============================== */
.insight-save-box {
    animation: insightFadeIn 0.4s ease;
}
@keyframes insightFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.insight-save-box textarea:focus {
    outline: none;
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.15);
}
.insight-save-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 178, 172, 0.3);
}

/* כפתור שמירת snapshot גלגל */
#save-wheel-snapshot-btn:hover {
    background: linear-gradient(135deg, #d6f5ff, #c6f6d5) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(49, 151, 149, 0.2);
}
#save-wheel-snapshot-btn:active {
    transform: translateY(0);
}
/* גרף מגמות */
#wheel-history-chart-container,
#pa-wheel-trends .pa-section-body {
    transition: all 0.3s ease;
}

/* פאנל אזור אישי — מצב פתוח */
#personal-area-panel.panel-open {
    right: 0 !important;
}

/* מובייל */
@media (max-width: 640px) {
    #personal-area-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw !important;
    }
    #personal-area-panel.panel-open {
        right: 0 !important;
    }

    /* מודאל קהילה ותמיכה — תיקון מובייל */
    #communityModal {
        align-items: flex-start !important;
        padding: 2vh 0;
        overflow-y: auto !important;
    }
    #communityModal .module-modal-content {
        max-height: none !important;
        overflow: visible !important;
        width: 98% !important;
        max-width: 98% !important;
        border-radius: 12px !important;
        margin: 0 auto;
    }
    #communityModal .module-modal-content > div:first-child {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    #communityModal .module-modal-content > div:first-child span[onclick] {
        font-size: 2.5rem !important;
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    #communityModal .module-modal-content > div:last-child {
        padding: 15px !important;
        gap: 15px !important;
        grid-template-columns: 1fr !important;
    }
}

/* =============================== */
/* AI Coach — Personal Area        */
/* =============================== */
#ai-coach-input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

#ai-coach-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

#ai-coach-send-btn:active:not(:disabled) {
    transform: translateY(0);
}

#ai-coach-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ai-coach-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aiCoachSpin 0.6s linear infinite;
}

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

#ai-coach-response h4 {
    color: #2c5282;
    font-size: 0.9rem;
    margin: 0 0 6px 0;
}

#ai-coach-response b,
#ai-coach-response strong {
    font-weight: normal;
    color: #2d3748;
}

#ai-coach-response p {
    margin: 0.3em 0;
}

/* =============================================
   🌙 DARK MODE
   ============================================= */

/* --- שכבה 1: CSS Variables Override --- */
.architect-course-wrapper.dark-mode {
    --primary: #4fd1c5;
    --primary-dark: #38b2ac;
    --primary-light: #81e6d9;
    --primary-bg: #1a3a3a;
    --text-dark: #e2e8f0;
    --text-medium: #cbd5e0;
    --text-light: #a0aec0;
    --text-muted: #718096;
    --bg-light: #1a202c;
    --bg-lighter: #171923;
    --border-light: #2d3748;
    --border-lighter: #252d3d;
    --gold: #ecc94b;
    --gold-light: #d69e2e;
    --orange: #ed8936;
    --green: #68d391;
    --green-bg: #1a2e1a;
    background-color: #171923 !important;
    color: #e2e8f0 !important;
}

/* --- שכבה 2: Class selector overrides --- */
.architect-course-wrapper.dark-mode .course-sidebar { background: #1e2533; }
.architect-course-wrapper.dark-mode .course-main { background-color: #171923; }
.architect-course-wrapper.dark-mode .tabs-container { background: #1e2533; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.architect-course-wrapper.dark-mode .tab-content { background: #1e2533; }
.architect-course-wrapper.dark-mode .check-item { background: #1e2533; }
.architect-course-wrapper.dark-mode .check-item:hover { background: var(--green-bg); }
.architect-course-wrapper.dark-mode .check-item input[type="checkbox"] { background-color: #2d3748; }
.architect-course-wrapper.dark-mode .mobile-menu-btn { background: #1e2533; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.architect-course-wrapper.dark-mode h1.page-title { color: #f7fafc; }
.architect-course-wrapper.dark-mode .download-card { background: #1e2533; }
.architect-course-wrapper.dark-mode .download-card:hover { background-color: var(--green-bg); }
.architect-course-wrapper.dark-mode .timeline-visual { background: #1e2533 !important; }
.architect-course-wrapper.dark-mode .timeline-visual::before { background: #4a5568; }
.architect-course-wrapper.dark-mode .t-icon { background: #2d3748; color: #4fd1c5; border-color: #4fd1c5; }
.architect-course-wrapper.dark-mode .t-content { background: #2d3748; }
.architect-course-wrapper.dark-mode .t-content strong { color: #4fd1c5; }
.architect-course-wrapper.dark-mode .t-content p { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .timeline-summary { background: #1a3a4a !important; border-color: #4fd1c5; }
.architect-course-wrapper.dark-mode .timeline-summary p { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode #tab-5-deep > div[style*="background:#fff"] { background: #1e2533 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .declaration-box { background: #1e2533; }
.architect-course-wrapper.dark-mode .declaration-input { color: #e2e8f0 !important; background-color: #2d3748 !important; border-color: #4a5568; }
.architect-course-wrapper.dark-mode .declaration-input:focus { background-color: #2d3748 !important; color: #f7fafc !important; }
.architect-course-wrapper.dark-mode .declaration-input::placeholder { color: #718096 !important; }
.architect-course-wrapper.dark-mode .module-modal-content { background: #1e2533; }
.architect-course-wrapper.dark-mode .mark-complete-btn { background-color: #1e2533; }
.architect-course-wrapper.dark-mode .mark-complete-btn:focus:not(:hover) { background-color: #1e2533; }
.architect-course-wrapper.dark-mode .golden-tip-box { background: linear-gradient(to right, #2a2517, #1e2533); }
.architect-course-wrapper.dark-mode .nav-btn.next { background-color: #4fd1c5; color: #1a202c; }
.architect-course-wrapper.dark-mode .nav-btn.next:hover { background-color: #38b2ac; }
.architect-course-wrapper.dark-mode .nav-btn.disabled { background-color: #4a5568 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .belief-item { background: #1e2533; }
.architect-course-wrapper.dark-mode .toast { background: #e2e8f0; color: #1a202c; }
.architect-course-wrapper.dark-mode .tab-continue-btn { background: linear-gradient(135deg, #4fd1c5, #38b2ac); color: #1a202c; }

/* --- שיעור פעיל בסיידבר --- */
.architect-course-wrapper.dark-mode .lesson-link.active { color: #4fd1c5; }
.architect-course-wrapper.dark-mode .lesson-link.active .lesson-icon { filter: brightness(1.2); }
.architect-course-wrapper.dark-mode .lesson-link { color: #a0aec0; }
.architect-course-wrapper.dark-mode .lesson-link:hover { color: #e2e8f0; background-color: #252d3d; }

/* --- כרטיסי השראה --- */
.architect-course-wrapper.dark-mode .inspire-card { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .inspire-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.architect-course-wrapper.dark-mode .inspire-title { color: #ed8936; }
.architect-course-wrapper.dark-mode .inspire-toggle-btn { background: #2d3748; color: #a0aec0; border-color: #4a5568; }
.architect-course-wrapper.dark-mode .inspire-toggle-btn:hover { background: #1a3a3a; color: #4fd1c5; }
.architect-course-wrapper.dark-mode .text-body { color: #cbd5e0; }

/* --- כרטיסי אבחון (שיעור 3) --- */
.architect-course-wrapper.dark-mode .diagnosis-tool-card { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .diagnosis-tool-card:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

/* --- כרטיסי ארכיאולוגיה --- */
.architect-course-wrapper.dark-mode .arch-card { background: #1e2533; border-color: #2d3748; }

/* --- Reveal/Details sections --- */
.architect-course-wrapper.dark-mode .reveal-summary { color: #e2e8f0; }
.architect-course-wrapper.dark-mode .reveal-summary:hover { background: #252d3d !important; color: #63b3ed; }
.architect-course-wrapper.dark-mode details { background: #1a202c; border-color: #2d3748; }

/* --- Chip inputs --- */
.architect-course-wrapper.dark-mode .chip-input { background: #2d3748 !important; color: #e2e8f0 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .chip-input::placeholder { color: #718096 !important; }
.architect-course-wrapper.dark-mode .chip-input:focus { border-color: #4fd1c5 !important; }

/* --- Download cards vertical --- */
.architect-course-wrapper.dark-mode .download-card-vertical { background: #1e2533; border-color: #2d3748; }

/* --- Feature/Input/Concept cards --- */
.architect-course-wrapper.dark-mode .feature-card { background: #1e2533; }
.architect-course-wrapper.dark-mode .input-card { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .concept-card { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .results-card { background: #1e2533; }
.architect-course-wrapper.dark-mode .comparison-card { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .skeleton-container { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .custom-confirm-box { background: #1e2533; }
.architect-course-wrapper.dark-mode .email-modal-content { background: #1e2533; }

/* --- Expandable/Accordion --- */
.architect-course-wrapper.dark-mode .expandable-intro { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .accordion-container details { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .accordion-container summary { color: #e2e8f0; }

/* --- Magic key / Stories --- */
.architect-course-wrapper.dark-mode .magic-card { background: #1e2533; border-color: #fbd38d; }
.architect-course-wrapper.dark-mode .magic-toggle-btn { background: #1e2533; }
.architect-course-wrapper.dark-mode .inter-item { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .harmony-section { background: #2a2517; }
.architect-course-wrapper.dark-mode .story-link { background: #2a2517; }
.architect-course-wrapper.dark-mode .story-icon { background: #2d3748; }
.architect-course-wrapper.dark-mode .read-more-btn { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .read-more-btn:hover { background: #2a2517; }

/* --- Checkbox and reactive --- */
.architect-course-wrapper.dark-mode .checkbox-wrapper { background: #1e2533; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .reactive-box { background: #2d1a1a; border-color: #742a2a; }

/* --- Drawing tools --- */
.architect-course-wrapper.dark-mode .draw-tool-btn { background: #1e2533; border-color: #4a5568; color: #a0aec0; }
.architect-course-wrapper.dark-mode .draw-tool-btn:hover { background: #2d3748; }
.architect-course-wrapper.dark-mode .draw-tool-btn.active { background: #252d3d; border-color: #4fd1c5; color: #4fd1c5; }
.architect-course-wrapper.dark-mode .draw-tool-btn.btn-clear:hover { background: #2d1a1a; border-color: #fc8181; }

/* --- Premium vault --- */
.architect-course-wrapper.dark-mode .premium-vault-box { background: #1e2533 !important; background-image: none !important; }
.architect-course-wrapper.dark-mode .vault-access-area { background: #2a2517; border-color: #744210; }

/* --- Belief explanation --- */
.architect-course-wrapper.dark-mode .belief-explanation { color: #a0aec0; }

/* --- Belief dropdown (Katie) --- */
.architect-course-wrapper.dark-mode #belief-dropdown { background: #2d3748; color: #e2e8f0; border-color: #4a5568; }
.architect-course-wrapper.dark-mode .belief-input-wrapper { background: #1a202c !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode .belief-input-wrapper label { color: #e2e8f0; }
.architect-course-wrapper.dark-mode #belief-list-container { color: #e2e8f0; }

/* --- Belief list rows (Katie tab) --- */
.belief-list-row { display:flex; align-items:center; gap:8px; padding:8px 10px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; margin-bottom:6px; cursor:pointer; transition:background 0.15s; }
.belief-list-row span { flex:1; font-size:0.9rem; color:#2d3748; }
.belief-list-row .belief-delete-btn { background:none; border:none; color:#e53e3e; cursor:pointer; font-size:1.1rem; padding:0 4px; line-height:1; opacity:0.5; transition:opacity 0.15s; }
.belief-list-row .belief-delete-btn:hover { opacity:1; }
.belief-list-row.selected { background:#ebf8ff; }

.architect-course-wrapper.dark-mode .belief-list-row { background:#2d3748; border-color:#4a5568; }
.architect-course-wrapper.dark-mode .belief-list-row span { color:#e2e8f0; }
.architect-course-wrapper.dark-mode .belief-list-row.selected { background:#1a2535; }

/* --- Tab buttons --- */
.architect-course-wrapper.dark-mode .tab-btn { color: #a0aec0; border-color: #2d3748; }
.architect-course-wrapper.dark-mode .tab-btn:hover { color: #e2e8f0; background: #252d3d; }
.architect-course-wrapper.dark-mode .tab-btn.active { color: #4fd1c5; border-color: #4fd1c5; }
.architect-course-wrapper.dark-mode .tab-btn.tab-locked { color: #4a5568; }
.architect-course-wrapper.dark-mode .tab-btn.tab-completed { color: #4fd1c5; }
.architect-course-wrapper.dark-mode .tab-btn.tab-completed::before { color: #48bb78; }

/* --- Detector buttons / Nav buttons --- */
.architect-course-wrapper.dark-mode .nav-button.back-button { background: #252d3d; color: #a0aec0; }

/* --- Golden tip box text colors --- */
.architect-course-wrapper.dark-mode .golden-tip-box * { color: #ecc94b; }
.architect-course-wrapper.dark-mode .golden-tip-box { border-color: #744210; }
.architect-course-wrapper.dark-mode .golden-btn { color: #fff !important; }
.architect-course-wrapper.dark-mode .golden-tip-card-link { color: #ecc94b; border-color: #4a5568; }
.architect-course-wrapper.dark-mode .golden-tip-video-area:hover { background: rgba(255,255,255,0.05); }
.architect-course-wrapper.dark-mode .golden-tip-card-link:hover { background: rgba(255,255,255,0.05); }

/* --- Fade overlay on inspire cards --- */
.architect-course-wrapper.dark-mode .fade-overlay { background: linear-gradient(to bottom, rgba(30,37,51,0), #1e2533) !important; }

/* --- Story/Inspiration inner elements --- */
.architect-course-wrapper.dark-mode .main-insight { border-top-color: var(--orange); }
.architect-course-wrapper.dark-mode .card-header-icon { opacity: 0.7; }

/* --- AI Coach response area --- */
.architect-course-wrapper.dark-mode #ai-coach-response { background: #1e2533 !important; color: #e2e8f0 !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode #ai-coach-response h4 { color: #90cdf4 !important; }
.architect-course-wrapper.dark-mode #ai-coach-input { background: #2d3748 !important; color: #e2e8f0 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode #ai-coach-input::placeholder { color: #718096 !important; }

/* --- Concept cards (lesson 6 proactivity) --- */
.architect-course-wrapper.dark-mode .concept-title { color: #63b3ed; }
.architect-course-wrapper.dark-mode .proactive-box { background: #1a2e1a; border-color: #276749; }
.architect-course-wrapper.dark-mode .circle-concern { background-color: #2d1a1a; border-color: #742a2a; color: #e2e8f0; }
.architect-course-wrapper.dark-mode .circle-influence { background-color: #1a2e1a; border-color: #276749; color: #e2e8f0; }
.architect-course-wrapper.dark-mode .circle-concern span, .architect-course-wrapper.dark-mode .circle-influence span { color: #e2e8f0; }
.architect-course-wrapper.dark-mode .compare-box { color: #e2e8f0; }

/* --- Intro header (expandable sections) --- */
.architect-course-wrapper.dark-mode .intro-header { background: #1a2535 !important; }
.architect-course-wrapper.dark-mode .intro-body { color: #cbd5e0 !important; border-top-color: #2d3748 !important; }

/* --- Frequency table - emotion scale (gradient backgrounds) --- */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(90deg, #f6e05e"] { background: linear-gradient(90deg, #7c6e1a, #6b5e15) !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(90deg, #e53e3e"] { background: linear-gradient(90deg, #742a2a, #5a2020) !important; }
.architect-course-wrapper.dark-mode [style*="background:#fc8181"] { background: #5a2020 !important; }

/* --- Belief detector / Questionnaire (lesson 5 & 6) --- */
.architect-course-wrapper.dark-mode .belief-button { background: linear-gradient(135deg, #38b2ac, #319795) !important; color: white !important; }
.architect-course-wrapper.dark-mode .q-row { background: #1e2533; }

/* --- Questionnaire results (JS-generated) --- */
.architect-course-wrapper.dark-mode .results-card * { color: #e2e8f0; }
.architect-course-wrapper.dark-mode .results-card h3, .architect-course-wrapper.dark-mode .results-card h4 { color: #90cdf4; }
.architect-course-wrapper.dark-mode .results-card strong { color: #ecc94b; }

/* --- All h3/h4 inside tab-content --- */
.architect-course-wrapper.dark-mode .tab-content h3 { color: #e2e8f0; }
.architect-course-wrapper.dark-mode .tab-content h4 { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .tab-content p { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .tab-content li { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .tab-content strong { color: #e2e8f0; }

/* --- Accordion (lesson 0.3 / all lessons) --- */
.architect-course-wrapper.dark-mode .accordion-container details summary { color: #e2e8f0; background: #252d3d; }
.architect-course-wrapper.dark-mode .accordion-container details[open] summary { background: #2d3748; }
.architect-course-wrapper.dark-mode .accordion-container details > div { color: #cbd5e0; }

/* --- Arch download button (FFF3E0 background) --- */
.architect-course-wrapper.dark-mode [style*="background:#FFF3E0"] { background: #2e2517 !important; }

/* --- Lesson 5 map - blue gradient areas --- */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(180deg,#ebf8ff"] { background: linear-gradient(180deg, #1a2535, #1e2d42) !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(180deg,#2d3748"] { background: linear-gradient(180deg, #1a202c, #2d3748) !important; }

/* --- Specific color overrides for deeply nested inline elements --- */
.architect-course-wrapper.dark-mode [style*="color:#48bb78"] { color: #68d391 !important; }
.architect-course-wrapper.dark-mode [style*="color:#9ae6b4"] { color: #9ae6b4 !important; }
.architect-course-wrapper.dark-mode [style*="color:#fc8181"] { color: #fc8181 !important; }
.architect-course-wrapper.dark-mode [style*="color:#feb2b2"] { color: #feb2b2 !important; }
.architect-course-wrapper.dark-mode [style*="color:#d69e2e"] { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode [style*="color:#ed8936"] { color: #f6ad55 !important; }
.architect-course-wrapper.dark-mode [style*="color:#f687b3"] { color: #f687b3 !important; }

/* --- Force all inline background:#fff inside tab-content to dark --- */
.architect-course-wrapper.dark-mode .tab-content [style*="background:#fff"] { background: #1e2533 !important; }
.architect-course-wrapper.dark-mode .tab-content [style*="background: #fff"] { background: #1e2533 !important; }
.architect-course-wrapper.dark-mode .tab-content [style*="background:white"] { background: #1e2533 !important; }

/* --- Broad catch: any text with inline dark colors inside dark-mode --- */
.architect-course-wrapper.dark-mode .tab-content [style*="color:#2d3748"] { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .tab-content [style*="color:#4a5568"] { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode .tab-content [style*="color:#718096"] { color: #a0aec0 !important; }

/* --- PA section body text --- */
.architect-course-wrapper.dark-mode .pa-section-body { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .pa-section-body * { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .pa-section-body strong { color: #e2e8f0; }

/* --- Intentions saved cards --- */
.architect-course-wrapper.dark-mode #intentions-saved-list > div { background: #1e2533 !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode #intentions-saved-list label { background: #252d3d !important; }
.architect-course-wrapper.dark-mode #intentions-areas-grid > div { background: #1e2533 !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode #intentions-forms-area > div { background: #1e2533 !important; border-color: #2d3748 !important; }

.architect-course-wrapper.dark-mode .course-sidebar::-webkit-scrollbar-thumb,
.architect-course-wrapper.dark-mode #personal-area-panel::-webkit-scrollbar-thumb { background: #4a5568; }
.architect-course-wrapper.dark-mode .course-main::-webkit-scrollbar-track { background: #171923; }

.architect-course-wrapper.dark-mode #personal-area-panel { background: #1a202c !important; }
.architect-course-wrapper.dark-mode .pa-locked-item:hover { background: #2d3748 !important; }
.architect-course-wrapper.dark-mode .pa-insight-section .pa-section-header:hover { background: #2d3748 !important; }
.architect-course-wrapper.dark-mode .pa-insight-section.pa-unlocked .pa-section-header { background: #1e2533 !important; border-color: #276749 !important; }

.architect-course-wrapper.dark-mode input,
.architect-course-wrapper.dark-mode textarea,
.architect-course-wrapper.dark-mode select { background-color: #2d3748; color: #e2e8f0; border-color: #4a5568; }
.architect-course-wrapper.dark-mode input:focus,
.architect-course-wrapper.dark-mode textarea:focus,
.architect-course-wrapper.dark-mode select:focus { border-color: var(--primary); }

.architect-course-wrapper.dark-mode img:not([src*="logo"]) { filter: brightness(0.92); }
.architect-course-wrapper.dark-mode .architect-course-wrapper ::selection { background: #285e61; color: #e6fffa; }
.architect-course-wrapper.dark-mode #page-loader { background: #171923; }
.architect-course-wrapper.dark-mode hr { border-color: #2d3748; }

/* --- שכבה 3: Attribute selectors for inline styles --- */

/* רקעים לבנים */
.architect-course-wrapper.dark-mode [style*="background:#fff"],
.architect-course-wrapper.dark-mode [style*="background: #fff"],
.architect-course-wrapper.dark-mode [style*="background:#ffffff"],
.architect-course-wrapper.dark-mode [style*="background:white"],
.architect-course-wrapper.dark-mode [style*="background: white"] { background: #1e2533 !important; }

.architect-course-wrapper.dark-mode [style*="background-color:white"],
.architect-course-wrapper.dark-mode [style*="background-color: white"] { background-color: #1e2533 !important; }

/* רקעים אפורים בהירים */
.architect-course-wrapper.dark-mode [style*="background:#f7fafc"],
.architect-course-wrapper.dark-mode [style*="background: #f7fafc"],
.architect-course-wrapper.dark-mode [style*="background:#f8f9fa"],
.architect-course-wrapper.dark-mode [style*="background:#f8fafc"],
.architect-course-wrapper.dark-mode [style*="background:#f9fafb"] { background: #1a202c !important; }

.architect-course-wrapper.dark-mode [style*="background-color:#f8f9fa"] { background-color: #1a202c !important; }

.architect-course-wrapper.dark-mode [style*="background:#edf2f7"],
.architect-course-wrapper.dark-mode [style*="background: #edf2f7"] { background: #252d3d !important; }

.architect-course-wrapper.dark-mode [style*="background:#e2e8f0"],
.architect-course-wrapper.dark-mode [style*="background: #e2e8f0"] { background: #2d3748 !important; }

/* רקעי accent — ירוק */
.architect-course-wrapper.dark-mode [style*="background:#f0fff4"],
.architect-course-wrapper.dark-mode [style*="background: #f0fff4"] { background: #1a2e1a !important; }
.architect-course-wrapper.dark-mode [style*="background:#c6f6d5"],
.architect-course-wrapper.dark-mode [style*="background:#C6F6D5"] { background: #1e3a1e !important; }
.architect-course-wrapper.dark-mode [style*="background-color:#f0fff4"] { background-color: #1a2e1a !important; }

/* רקעי accent — זהב/חם */
.architect-course-wrapper.dark-mode [style*="background:#fffaf0"],
.architect-course-wrapper.dark-mode [style*="background:#fffff0"],
.architect-course-wrapper.dark-mode [style*="background:#fffbeb"],
.architect-course-wrapper.dark-mode [style*="background:#FFF8E1"] { background: #2a2517 !important; }
.architect-course-wrapper.dark-mode [style*="background:#fefcbf"] { background: #2e2a15 !important; }
.architect-course-wrapper.dark-mode [style*="background:#feebc8"] { background: #2e2517 !important; }

/* רקעי accent — אדום */
.architect-course-wrapper.dark-mode [style*="background:#fff5f5"],
.architect-course-wrapper.dark-mode [style*="background: #fff5f5"] { background: #2d1a1a !important; }
.architect-course-wrapper.dark-mode [style*="background:#fed7d7"] { background: #3d1e1e !important; }
.architect-course-wrapper.dark-mode [style*="background:#feb2b2"] { background: #4d2222 !important; }
.architect-course-wrapper.dark-mode [style*="background-color:#fff5f5"] { background-color: #2d1a1a !important; }

/* רקעי accent — כחול */
.architect-course-wrapper.dark-mode [style*="background:#ebf8ff"],
.architect-course-wrapper.dark-mode [style*="background: #ebf8ff"] { background: #1a2535 !important; }
.architect-course-wrapper.dark-mode [style*="background:#bee3f8"],
.architect-course-wrapper.dark-mode [style*="background:#BEE3F8"] { background: #1e2d42 !important; }
.architect-course-wrapper.dark-mode [style*="background:#e6f7ff"],
.architect-course-wrapper.dark-mode [style*="background:#e6f3ff"] { background: #1a2535 !important; }
.architect-course-wrapper.dark-mode [style*="background:#ebf4ff"] { background: #1a2535 !important; }

/* רקעי accent — טורקיז */
.architect-course-wrapper.dark-mode [style*="background:#e6fffa"],
.architect-course-wrapper.dark-mode [style*="background: #e6fffa"] { background: #1a2e2e !important; }

/* רקעי accent — סגול */
.architect-course-wrapper.dark-mode [style*="background:#e9d8fd"],
.architect-course-wrapper.dark-mode [style*="background:#E9D8FD"] { background: #2a1e3d !important; }
.architect-course-wrapper.dark-mode [style*="background:#faf5ff"],
.architect-course-wrapper.dark-mode [style*="background: #faf5ff"] { background: #231a30 !important; }
.architect-course-wrapper.dark-mode [style*="background:#f3e8ff"],
.architect-course-wrapper.dark-mode [style*="background:#f0e6ff"] { background: #261e35 !important; }

/* רקעי accent — ורוד */
.architect-course-wrapper.dark-mode [style*="background:#fed7e2"],
.architect-course-wrapper.dark-mode [style*="background:#FED7E2"] { background: #3d1a28 !important; }
.architect-course-wrapper.dark-mode [style*="background:#FFF5F7"] { background: #2d1a22 !important; }

/* רקעי accent — חום */
.architect-course-wrapper.dark-mode [style*="background:#f7f0e0"] { background: #2a2517 !important; }
.architect-course-wrapper.dark-mode [style*="background:#f0f4ff"] { background: #1a2040 !important; }
.architect-course-wrapper.dark-mode [style*="background:#f1f5f9"] { background: #252d3d !important; }

/* רקע אפור לקווים מפרידים */
.architect-course-wrapper.dark-mode [style*="background:#cbd5e0"],
.architect-course-wrapper.dark-mode [style*="background: #cbd5e0"] { background: #4a5568 !important; }

/* --- צבעי טקסט כהים → בהירים --- */
.architect-course-wrapper.dark-mode [style*="color:#2d3748"],
.architect-course-wrapper.dark-mode [style*="color: #2d3748"] { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#4a5568"],
.architect-course-wrapper.dark-mode [style*="color: #4a5568"] { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#718096"],
.architect-course-wrapper.dark-mode [style*="color: #718096"] { color: #a0aec0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#a0aec0"],
.architect-course-wrapper.dark-mode [style*="color: #a0aec0"] { color: #718096 !important; }
.architect-course-wrapper.dark-mode [style*="color:#1a202c"] { color: #f7fafc !important; }
.architect-course-wrapper.dark-mode [style*="color:#cbd5e0"] { color: #4a5568 !important; }

/* --- צבעי accent טקסט → גרסאות בהירות --- */
.architect-course-wrapper.dark-mode [style*="color:#276749"] { color: #68d391 !important; }
.architect-course-wrapper.dark-mode [style*="color:#234e52"] { color: #81e6d9 !important; }
.architect-course-wrapper.dark-mode [style*="color:#285e61"] { color: #4fd1c5 !important; }
.architect-course-wrapper.dark-mode [style*="color:#2c7a7b"] { color: #4fd1c5 !important; }
.architect-course-wrapper.dark-mode [style*="color:#2b6cb0"] { color: #63b3ed !important; }
.architect-course-wrapper.dark-mode [style*="color:#2c5282"] { color: #90cdf4 !important; }
.architect-course-wrapper.dark-mode [style*="color:#2a4365"] { color: #90cdf4 !important; }
.architect-course-wrapper.dark-mode [style*="color:#744210"] { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode [style*="color:#8B6914"] { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode [style*="color:#975a16"] { color: #d69e2e !important; }
.architect-course-wrapper.dark-mode [style*="color:#c53030"] { color: #fc8181 !important; }
.architect-course-wrapper.dark-mode [style*="color:#9b2c2c"] { color: #feb2b2 !important; }
.architect-course-wrapper.dark-mode [style*="color:#742a2a"] { color: #fc8181 !important; }
.architect-course-wrapper.dark-mode [style*="color:#553c9a"],
.architect-course-wrapper.dark-mode [style*="color:#553C9A"] { color: #b794f4 !important; }
.architect-course-wrapper.dark-mode [style*="color:#6b46c1"],
.architect-course-wrapper.dark-mode [style*="color:#6B46C1"] { color: #d6bcfa !important; }
.architect-course-wrapper.dark-mode [style*="color:#44337a"] { color: #d6bcfa !important; }
.architect-course-wrapper.dark-mode [style*="color:#805ad5"],
.architect-course-wrapper.dark-mode [style*="color:#805AD5"] { color: #b794f4 !important; }
.architect-course-wrapper.dark-mode [style*="color:#c05621"] { color: #ed8936 !important; }
.architect-course-wrapper.dark-mode [style*="color:#9c4221"] { color: #ed8936 !important; }
.architect-course-wrapper.dark-mode [style*="color:#702459"] { color: #f687b3 !important; }
.architect-course-wrapper.dark-mode [style*="color:#a08050"] { color: #d4a857 !important; }
.architect-course-wrapper.dark-mode [style*="color:#a08c5a"] { color: #d4b56a !important; }
.architect-course-wrapper.dark-mode [style*="color:#b7791f"] { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode [style*="color:#9c6c10"] { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode [style*="color:#7b341e"] { color: #ed8936 !important; }
.architect-course-wrapper.dark-mode [style*="color:#2d5016"] { color: #68d391 !important; }
.architect-course-wrapper.dark-mode [style*="color:#2f855a"] { color: #68d391 !important; }
.architect-course-wrapper.dark-mode [style*="color:#319795"] { color: #4fd1c5 !important; }
.architect-course-wrapper.dark-mode [style*="color:#38a169"] { color: #68d391 !important; }
.architect-course-wrapper.dark-mode [style*="color:#4a148c"] { color: #b794f4 !important; }
.architect-course-wrapper.dark-mode [style*="color:#5a4630"] { color: #c4a882 !important; }
.architect-course-wrapper.dark-mode [style*="color:#e53e3e"] { color: #fc8181 !important; }
.architect-course-wrapper.dark-mode [style*="color:#dd6b20"] { color: #ed8936 !important; }
.architect-course-wrapper.dark-mode [style*="color:#97266d"] { color: #f687b3 !important; }
.architect-course-wrapper.dark-mode [style*="color:#b83280"] { color: #f687b3 !important; }

/* חום (ביירון קייטי וכו') */
.architect-course-wrapper.dark-mode [style*="color:#5D4037"],
.architect-course-wrapper.dark-mode [style*="color:#4E342E"],
.architect-course-wrapper.dark-mode [style*="color:#8D6E63"],
.architect-course-wrapper.dark-mode [style*="color:#A1887F"] { color: #d7ccc8 !important; }
.architect-course-wrapper.dark-mode [style*="color:#4a3c2a"],
.architect-course-wrapper.dark-mode [style*="color:#6b5a2a"],
.architect-course-wrapper.dark-mode [style*="color:#5a4a30"],
.architect-course-wrapper.dark-mode [style*="color:#5a4a2f"],
.architect-course-wrapper.dark-mode [style*="color:#4a3520"],
.architect-course-wrapper.dark-mode [style*="color:#5a4a42"] { color: #c4a882 !important; }

/* שמירה על טקסט לבן */
.architect-course-wrapper.dark-mode [style*="color:#fff"],
.architect-course-wrapper.dark-mode [style*="color: #fff"],
.architect-course-wrapper.dark-mode [style*="color:white"],
.architect-course-wrapper.dark-mode [style*="color: white"] { color: #fff !important; }

/* --- גבולות --- */
.architect-course-wrapper.dark-mode [style*="border:1px solid #e2e8f0"],
.architect-course-wrapper.dark-mode [style*="border: 1px solid #e2e8f0"] { border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode [style*="border:2px solid #e2e8f0"] { border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #cbd5e0"] { border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode [style*="border:2px solid #cbd5e0"] { border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #edf2f7"] { border-color: #252d3d !important; }
.architect-course-wrapper.dark-mode [style*="border-top:1px solid #e2e8f0"] { border-top-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode [style*="border-top:1px solid #edf2f7"] { border-top-color: #252d3d !important; }
.architect-course-wrapper.dark-mode [style*="border-top:1px solid #eee"] { border-top-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode [style*="border-bottom:1px solid #f7fafc"] { border-bottom-color: #1a202c !important; }
.architect-course-wrapper.dark-mode [style*="border-left:1px solid #edf2f7"] { border-left-color: #252d3d !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #d4c5a9"] { border-color: #5a4a30 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px dashed #cbd5e0"] { border-color: #4a5568 !important; }

/* גבולות accent */
.architect-course-wrapper.dark-mode [style*="border:1px solid #c6f6d5"] { border-color: #276749 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #b2f5ea"] { border-color: #285e61 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #bee3f8"] { border-color: #2a4365 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #fbd38d"] { border-color: #744210 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #e9d8fd"] { border-color: #553c9a !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #d6bcfa"] { border-color: #553c9a !important; }
.architect-course-wrapper.dark-mode [style*="border:2px solid #81e6d9"] { border-color: #285e61 !important; }
.architect-course-wrapper.dark-mode [style*="border-right:3px solid #e2e8f0"] { border-right-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #D7CCC8"] { border-color: #5a4a30 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #f0e6dc"] { border-color: #4a3520 !important; }
.architect-course-wrapper.dark-mode [style*="border:1px solid #FFE0B2"] { border-color: #744210 !important; }
.architect-course-wrapper.dark-mode [style*="border-right:3px solid #FFB300"] { border-right-color: #d69e2e !important; }
.architect-course-wrapper.dark-mode [style*="border-left:4px solid #ed8936"] { border-left-color: #ed8936 !important; }
.architect-course-wrapper.dark-mode [style*="border:2px solid #38b2ac"] { border-color: #38b2ac !important; }
.architect-course-wrapper.dark-mode [style*="border:2px dashed #cbd5e0"] { border-color: #4a5568 !important; }

/* --- שכבה 4: Gradients --- */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#ebf8ff,#f0fff4)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #ebf8ff, #f0fff4)"] { background: linear-gradient(135deg, #1a2535, #1a2e1a) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #e6fffa, #ebf8ff)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#e6fffa,#f0fff4)"] { background: linear-gradient(135deg, #1a2e2e, #1a2e1a) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#ebf8ff,#fff)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#f0fff4,#fff)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#faf5ff,#fff)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fffff0,#fff)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fffaf0,#fff)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fff5f5,#fff)"] { background: linear-gradient(135deg, #252d3d, #1e2533) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fefcbf,#fffff0)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fefcbf,#faf5ff)"] { background: linear-gradient(135deg, #2e2a15, #231a30) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fff5f5,#fef3c7)"] { background: linear-gradient(135deg, #2d1a1a, #2e2a15) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #fefcf3 0%, #f7f0e0 100%)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #faf5eb, #f5efe0)"] { background: linear-gradient(135deg, #2a2517, #252015) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #EFEBE9, #D7CCC8)"] { background: linear-gradient(135deg, #2e2520, #352d28) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #ebf8ff 0%, #e9d8fd 100%)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #EBF8FF, #E9D8FD, #FED7E2)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #FAF5FF, #EBF8FF)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #EBF8FF, #FAF5FF)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #FAF5FF, #E9D8FD)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #EBF8FF, #BEE3F8)"] { background: linear-gradient(135deg, #1a2535, #2a1e3d) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #FFF5F7, #FED7E2)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #FFF5F7, #FAF5FF)"] { background: linear-gradient(135deg, #2d1a22, #231a30) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #fffaf0 0%, #fff5f5 100%)"] { background: linear-gradient(135deg, #2a2517, #2d1a1a) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #F0FFF4, #C6F6D5)"] { background: linear-gradient(135deg, #1a2e1a, #1e3a1e) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #fefcbf 0%, #fefce8 100%)"] { background: linear-gradient(135deg, #2e2a15, #2a2517) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#faf5ff,#e6fffa)"] { background: linear-gradient(135deg, #231a30, #1a2e2e) !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#faf5ff,#ebf8ff)"] { background: linear-gradient(135deg, #231a30, #1a2535) !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#ebf8ff,#e6fffa)"] { background: linear-gradient(135deg, #1a2535, #1a2e2e) !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#ebf8ff,#f0fff4)"] { background: linear-gradient(135deg, #1a2535, #1a2e1a) !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fffaf0,#fff5f5)"] { background: linear-gradient(135deg, #2e2a15, #2e1a1a) !important; }

/* Dark mode for SMART, Eisenhower, decision guide interactive elements */
.architect-course-wrapper.dark-mode .smart-field,
.architect-course-wrapper.dark-mode .eisenhower-cell { background: #1a202c !important; border-color: #4a5568 !important; color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .decision-check-item { background: #2d3748 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .decision-check-item strong { color: #fbd38d !important; }
.architect-course-wrapper.dark-mode .decision-check-item span { color: #cbd5e0 !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #ebf4ff, #f0fff4)"] { background: linear-gradient(135deg, #1a2535, #1a2e1a) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(to right, #ebf8ff, #fff)"] { background: linear-gradient(to right, #1a2535, #1e2533) !important; }

.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%)"],
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #fff 0%, #f7fafc 100%)"] { background: linear-gradient(135deg, #1a202c, #252d3d) !important; }

/* --- שכבה 5: Dark Mode Icon (פינה ימנית עליונה) --- */
.dark-mode-icon {
    position: fixed;
    top: 5rem;
    right: 18px;
    z-index: 9997;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
}
.dark-mode-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
}
.architect-course-wrapper.dark-mode .dark-mode-icon {
    background: rgba(26,32,44,0.92);
    border-color: #4a5568;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.architect-course-wrapper.dark-mode .dark-mode-icon:hover {
    background: #2d3748;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
@media (max-width: 1023px) {
    .dark-mode-icon {
        top: 4.5rem;
        right: 14px;
    }
}

/* Box-shadow adjustments */
.architect-course-wrapper.dark-mode .tabs-container,
.architect-course-wrapper.dark-mode .download-card,
.architect-course-wrapper.dark-mode .declaration-box,
.architect-course-wrapper.dark-mode .module-modal-content { box-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* Smooth transition for main areas */
.architect-course-wrapper.dark-mode .architect-course-wrapper,
.architect-course-wrapper.dark-mode .course-sidebar,
.architect-course-wrapper.dark-mode .course-main,
.architect-course-wrapper.dark-mode .tabs-container,
.architect-course-wrapper.dark-mode .tab-content { transition: background-color 0.3s ease, color 0.3s ease; }

/* ============================================
   🔧 ROUND 4 FIX — all remaining dark mode gaps
   ============================================ */

/* --- 1. ALL AI results areas (.belief-results) — CRITICAL --- */
.architect-course-wrapper.dark-mode .belief-results,
.architect-course-wrapper.dark-mode .belief-results > div {
    background: #1e2533 !important;
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .belief-results div[style*="background"] {
    background: #1e2533 !important;
}
.architect-course-wrapper.dark-mode .belief-results {
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .belief-results h3,
.architect-course-wrapper.dark-mode .belief-results h4 { color: #90cdf4 !important; }
.architect-course-wrapper.dark-mode .belief-results p,
.architect-course-wrapper.dark-mode .belief-results li,
.architect-course-wrapper.dark-mode .belief-results span,
.architect-course-wrapper.dark-mode .belief-results div { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .belief-results strong { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode .belief-results blockquote { background: #252d3d !important; border-color: #805ad5 !important; color: #fff !important; }
.architect-course-wrapper.dark-mode .belief-results [style*="border-left"] { background: #252d3d !important; color: #fff !important; }

/* Strip results container (lesson 7 identity) */
.architect-course-wrapper.dark-mode #strip-results { color: #e2e8f0; }
.architect-course-wrapper.dark-mode #strip-results h4 { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode #strip-ai-results { color: #e2e8f0; }
.architect-course-wrapper.dark-mode #strip-ai-results div,
.architect-course-wrapper.dark-mode #strip-ai-results p,
.architect-course-wrapper.dark-mode #strip-ai-results span { color: #e2e8f0 !important; }

/* Proactive results area (lesson 6) */
.architect-course-wrapper.dark-mode #proactive-results-area { color: #e2e8f0; }

/* --- 2. Thought box ("נקודה למחשבה") --- */
.architect-course-wrapper.dark-mode .thought-box {
    background: #1a2e2e !important;
    border-color: #285e61 !important;
}
.architect-course-wrapper.dark-mode .thought-content { color: #b2dfdb !important; }
.architect-course-wrapper.dark-mode .thought-content strong { color: #e2e8f0 !important; }

/* --- 3. Vault section (lesson 5 premium) --- */
.architect-course-wrapper.dark-mode .vault-title { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .vault-desc { color: #cbd5e0 !important; }

/* --- 4. "לצפייה בקלף המעוצב" buttons (rgba white bg) --- */
.architect-course-wrapper.dark-mode [style*="background:rgba(255,255,255,0.6)"] {
    background: rgba(30,37,51,0.8) !important;
    color: #ecc94b !important;
    border-color: #744210 !important;
}

/* --- 5. "כלל ה-7" box (lesson 5) + similar semi-white boxes --- */
.architect-course-wrapper.dark-mode [style*="background:rgba(255,255,255,0.6)"] strong {
    color: #ecc94b !important;
}

/* --- 6. Lesson 2 map — archaeological layers top 2 fix --- */
.architect-course-wrapper.dark-mode #tab-2-map [style*="background:linear-gradient(180deg, #90B77D"] {
    background: linear-gradient(180deg, #2d5a3a, #2d5a3a) !important;
}
.architect-course-wrapper.dark-mode #tab-2-map [style*="background:linear-gradient(180deg, #90B77D"] span {
    color: #c6f6d5 !important;
}
.architect-course-wrapper.dark-mode #tab-2-map [style*="background:#C4A882"] {
    background: #5a4a30 !important;
}
.architect-course-wrapper.dark-mode #tab-2-map [style*="background:#C4A882"] span {
    color: #ffecd2 !important;
}
.architect-course-wrapper.dark-mode #tab-2-map [style*="background:#A67B5B"] {
    background: #5a4030 !important;
}
.architect-course-wrapper.dark-mode #tab-2-map [style*="background:#8B6344"] {
    background: #4a3525 !important;
}

/* --- 7. Accordion inner content (when opened) --- */
.architect-course-wrapper.dark-mode .accordion-container details > div,
.architect-course-wrapper.dark-mode .accordion-container details > div * {
    color: #cbd5e0 !important;
}
.architect-course-wrapper.dark-mode .accordion-container details > div strong {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .accordion-container details > div a {
    color: #63b3ed !important;
}

/* --- 8. Story card (inspiration lessons) --- */
.architect-course-wrapper.dark-mode .story-card {
    background: #2a2517 !important;
    border-color: #5a4a30 !important;
}
.architect-course-wrapper.dark-mode .story-icon {
    background: #1e2533 !important;
}

/* --- 9. Lesson 4 strengths — input-card backgrounds --- */
.architect-course-wrapper.dark-mode .input-card {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .input-card label { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .input-card p { color: #cbd5e0 !important; }

/* --- 10. Generic catch-all for remaining white containers --- */
.architect-course-wrapper.dark-mode .action-buttons-wrapper { background: transparent; }
.architect-course-wrapper.dark-mode .action-buttons-wrapper button {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}
.architect-course-wrapper.dark-mode .save-insight-box,
.architect-course-wrapper.dark-mode .insight-save-box {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* --- 11. Questionnaire graph area (lesson 6 canvas container) --- */
.architect-course-wrapper.dark-mode #proactive-results-area .results-card {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode #proactive-results-area canvas {
    filter: invert(0.88) hue-rotate(180deg);
}

/* --- 12. Active lesson sidebar item --- */
.architect-course-wrapper.dark-mode .sidebar-nav li.active-lesson-item {
    background: #1a2e2e !important;
}

/* --- 13. Reactive/proactive boxes text --- */
.architect-course-wrapper.dark-mode .reactive-box { color: #e2e8f0; }
.architect-course-wrapper.dark-mode .reactive-box h4,
.architect-course-wrapper.dark-mode .reactive-box strong { color: #fc8181; }
.architect-course-wrapper.dark-mode .reactive-box li { color: #cbd5e0; }

/* --- 14. Tab continue button in dark mode --- */
.architect-course-wrapper.dark-mode .tab-continue-btn {
    background: linear-gradient(135deg, #38b2ac, #319795) !important;
    color: white !important;
}

/* --- 15. Ikigai SVG text fills (lesson 2 deepening) --- */
.architect-course-wrapper.dark-mode svg text[fill="#c53030"] { fill: #fc8181 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#276749"] { fill: #68d391 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#2c5282"] { fill: #90cdf4 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#975a16"] { fill: #ecc94b !important; }
.architect-course-wrapper.dark-mode svg text[fill="#5a3e7a"] { fill: #d6bcfa !important; }
.architect-course-wrapper.dark-mode svg text[fill="#7a6a9a"] { fill: #d6bcfa !important; }
.architect-course-wrapper.dark-mode svg text[fill="#3a5a8a"] { fill: #90cdf4 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#5a7aaa"] { fill: #90cdf4 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#4a7a3a"] { fill: #68d391 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#6a9a5a"] { fill: #9ae6b4 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#7a6a2a"] { fill: #ecc94b !important; }
.architect-course-wrapper.dark-mode svg text[fill="#9a8a4a"] { fill: #d69e2e !important; }
.architect-course-wrapper.dark-mode svg text[fill="#4a9a95"] { fill: #81e6d9 !important; }
.architect-course-wrapper.dark-mode svg text[fill="#319795"] { fill: #4fd1c5 !important; }
.architect-course-wrapper.dark-mode svg circle[fill="rgba(255,255,255,0.85)"] { fill: rgba(30,37,51,0.85) !important; }
/* Also make all SVG circles more visible on dark background */
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(254,178,178"] { fill: rgba(254,178,178,0.5) !important; }
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(154,230,180"] { fill: rgba(154,230,180,0.5) !important; }
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(190,227,248"] { fill: rgba(190,227,248,0.5) !important; }
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(254,235,200"] { fill: rgba(254,235,200,0.5) !important; }

/* --- 16. Broad: any remaining #fff inline inside belief-results --- */
.architect-course-wrapper.dark-mode .belief-results [style*="background:#fff"],
.architect-course-wrapper.dark-mode .belief-results [style*="background:white"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: #fff"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: white"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color:#fff"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color: #fff"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color:white"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color: white"],
.architect-course-wrapper.dark-mode .belief-results [style*="background:#ffffff"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: #ffffff"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color:#ffffff"] {
    background: #1e2533 !important;
}
/* AI-generated cards with light backgrounds in belief-results */
.architect-course-wrapper.dark-mode .belief-results [style*="background:#f"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: #f"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color:#f"],
.architect-course-wrapper.dark-mode .belief-results [style*="background-color: #f"],
.architect-course-wrapper.dark-mode .belief-results [style*="background:#e"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: #e"],
.architect-course-wrapper.dark-mode .belief-results [style*="background:#d"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: #d"],
.architect-course-wrapper.dark-mode .belief-results [style*="background:linear-gradient"],
.architect-course-wrapper.dark-mode .belief-results [style*="background: linear-gradient"] {
    background: #1e2533 !important;
}
.architect-course-wrapper.dark-mode .belief-results [style*="border-left"] {
    border-left-color: #805ad5 !important;
}
.architect-course-wrapper.dark-mode .belief-results [style*="border-radius:50%"],
.architect-course-wrapper.dark-mode .belief-results [style*="border-radius: 50%"] {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

/* ============================================
   🔧 ROUND 5 FIX — specific user-reported issues
   ============================================ */

/* --- 1. Lesson 0.3 expandable cards (blue container missing) --- */
.architect-course-wrapper.dark-mode [style*="background:#f0f4ff"] { background: #1a2040 !important; }
.architect-course-wrapper.dark-mode [style*="background:#f0f4ff"] strong { color: #e2e8f0 !important; }

/* --- 2. Personal area intentions (JS-generated, attribute selectors don't work) --- */
.architect-course-wrapper.dark-mode #pa-intentions-list > div {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list div {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list strong { color: #fff !important; }
.architect-course-wrapper.dark-mode #pa-intentions-empty {
    background: #1e2533 !important;
    border-color: #4a5568 !important;
}
.architect-course-wrapper.dark-mode .pa-section-header {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .pa-section-header span { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .pa-section-header:hover { background: #252d3d !important; }
.architect-course-wrapper.dark-mode .pa-section-lock { color: #718096 !important; }

/* --- 3. Lesson 3 diagnosis — quiz containers --- */
.architect-course-wrapper.dark-mode .internal-quiz-container {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .internal-quiz-container h3 { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .internal-quiz-container p { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode .internal-quiz-container strong { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .internal-quiz-container .check-text { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode .q-card p { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .q-card strong { color: #fff !important; }

/* --- 4. Lesson 4 strengths — belief-desc + labels brighter --- */
.architect-course-wrapper.dark-mode .belief-desc { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .belief-label { color: #fff !important; }
.architect-course-wrapper.dark-mode .belief-input-wrapper label { color: #e2e8f0 !important; }

/* --- 5. Lesson 6 Life Control Room — enlarge text (both modes) --- */
#tab-6-map [style*="font-size:0.65rem"] { font-size: 0.82rem !important; }
#tab-6-map [style*="font-size:0.55rem"] { font-size: 0.75rem !important; }
#tab-6-map [style*="font-size:0.5rem"] { font-size: 0.7rem !important; }
#tab-6-map [style*="font-size:0.7rem"] { font-size: 0.88rem !important; }

/* --- 6. Proactivity results — comprehensive dark mode --- */
.architect-course-wrapper.dark-mode .results-card { background: #1e2533 !important; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.architect-course-wrapper.dark-mode .results-body { background: #1e2533; }
.architect-course-wrapper.dark-mode .insight-section { border-bottom-color: #2d3748; }
.architect-course-wrapper.dark-mode .section-title { color: #63b3ed !important; }
.architect-course-wrapper.dark-mode .bar-label { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .bar-track { background: #2d3748 !important; }
.architect-course-wrapper.dark-mode .bar-value { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode .action-list li { color: #cbd5e0 !important; }

/* --- 7. Lesson 3 accordion details (types) with background:white --- */
.architect-course-wrapper.dark-mode .accordion-container details {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .accordion-container details > div {
    color: #cbd5e0 !important;
    border-top-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .accordion-container details > div p { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode .accordion-container details > div ul { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode .accordion-container details > div li { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode .accordion-container details > div strong { color: #e2e8f0 !important; }

/* --- 8. Values cloud (lesson 4/strengths) --- */
.architect-course-wrapper.dark-mode .values-cloud {
    background: #1e2533 !important;
    color: #cbd5e0 !important;
}

/* --- 9. Expandable intro header (lesson 4) --- */
.architect-course-wrapper.dark-mode .expandable-intro {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}

/* ============================================
   ROUND 6 FIX — persistent dark mode issues (final)
   ============================================ */

/* --- 1. Personal area intentions — nuclear override for ALL JS-generated elements --- */
.architect-course-wrapper.dark-mode #pa-intentions-list > div:first-child > div {
    /* Summary dots (inside the flex summary row) */
    background: #252d3d !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list > div:first-child > div div {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list > div:not(:first-child) {
    /* Detail cards */
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list > div:not(:first-child) div,
.architect-course-wrapper.dark-mode #pa-intentions-list > div:not(:first-child) span {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list > div:not(:first-child) strong {
    color: #fff !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-list > div:not(:first-child) div[style*="color:"] {
    color: #a0aec0 !important;
}
.architect-course-wrapper.dark-mode #pa-intentions-empty {
    background: #1e2533 !important;
    border-color: #4a5568 !important;
    color: #718096 !important;
}

/* --- 2. Lesson 0.3 expandable tips cards — class-based (reliable) --- */
.architect-course-wrapper.dark-mode .expandable-tips-container {
    background: #1a2040 !important;
    border-left-color: #667eea !important;
}
.architect-course-wrapper.dark-mode .expandable-tips-container > div {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
/* Nuclear: ALL divs, spans, strongs inside — white text */
.architect-course-wrapper.dark-mode .expandable-tips-container div {
    color: #fff !important;
    background: transparent !important;
}
.architect-course-wrapper.dark-mode .expandable-tips-container strong {
    color: #fff !important;
}
.architect-course-wrapper.dark-mode .expandable-tips-container .toggle-icon {
    color: #90cdf4 !important;
}
/* Card wrappers keep dark background */
.architect-course-wrapper.dark-mode .expandable-tips-container > div > div {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}

/* --- 3. Ikigai SVG — drop-shadow for text readability on overlapping circles --- */
.architect-course-wrapper.dark-mode svg text {
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.95)) drop-shadow(0 0 8px rgba(0,0,0,0.7));
}
/* Stronger circle fills for better contrast under text */
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(254,178,178"] { fill: rgba(254,178,178,0.6) !important; }
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(154,230,180"] { fill: rgba(154,230,180,0.6) !important; }
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(190,227,248"] { fill: rgba(190,227,248,0.6) !important; }
.architect-course-wrapper.dark-mode svg circle[fill*="rgba(254,235,200"] { fill: rgba(254,235,200,0.6) !important; }
/* Center circle: dark opaque background for IKIGAI text */
.architect-course-wrapper.dark-mode svg circle[fill="rgba(255,255,255,0.85)"] {
    fill: rgba(20,25,40,0.92) !important;
    stroke: #4fd1c5 !important;
}

/* --- 4. Proactivity results — comprehensive !important on every element --- */
.architect-course-wrapper.dark-mode .results-card,
.architect-course-wrapper.dark-mode #proactive-results-area > .results-card,
.architect-course-wrapper.dark-mode .printable-card {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .results-body {
    background: #1e2533 !important;
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .results-card p,
.architect-course-wrapper.dark-mode .results-body p {
    color: #cbd5e0 !important;
}
.architect-course-wrapper.dark-mode .bars-container {
    background: transparent !important;
}
.architect-course-wrapper.dark-mode .bar-row {
    background: transparent !important;
}
.architect-course-wrapper.dark-mode .bar-label {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .bar-track {
    background: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .bar-value {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .insight-section {
    border-bottom-color: #2d3748 !important;
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .insight-section p {
    color: #cbd5e0 !important;
}
.architect-course-wrapper.dark-mode .section-title {
    color: #63b3ed !important;
}
.architect-course-wrapper.dark-mode .action-list,
.architect-course-wrapper.dark-mode .action-list li {
    color: #cbd5e0 !important;
}
.architect-course-wrapper.dark-mode .notice-box {
    background: #2a2517 !important;
    border-right-color: #ed8936 !important;
}
.architect-course-wrapper.dark-mode .notice-box h3 {
    color: #ed8936 !important;
}
.architect-course-wrapper.dark-mode .notice-box p {
    color: #cbd5e0 !important;
}

/* --- 5. Personal area footer ("ככל שתתקדמו") --- */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#f0fff4,#ebf8ff)"] {
    background: linear-gradient(135deg, #1a2e1a, #1a2535) !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel [style*="color:#4a5568"] {
    color: #e2e8f0 !important;
}

/* --- 6. Personal area: unlocked section headers text white --- */
.architect-course-wrapper.dark-mode #personal-area-panel .pa-section-header span {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-section-header div span {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-section-header [style*="color:#718096"] {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-insight-section.pa-unlocked .pa-section-header {
    background: #1e2533 !important;
    border-color: #276749 !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-insight-section.pa-unlocked .pa-section-header span {
    color: #fff !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-insight-card {
    background: #252d3d !important;
    border-color: #2d3748 !important;
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-section-body [style*="background:#fff"] {
    background: #252d3d !important;
}
.architect-course-wrapper.dark-mode #personal-area-panel .pa-section-body [style*="color:#2d3748"] {
    color: #e2e8f0 !important;
}

/* --- חצי גלילת טאבים — dark mode --- */
.architect-course-wrapper.dark-mode .tab-scroll-arrow.arrow-right {
    background: linear-gradient(to right, transparent 0%, #1a202c 50%);
}
.architect-course-wrapper.dark-mode .tab-scroll-arrow.arrow-left {
    background: linear-gradient(to left, transparent 0%, #1a202c 50%);
}
.architect-course-wrapper.dark-mode .tabs-scroll-wrapper {
    border-bottom-color: #2d3748;
}

/* --- 5. שיעור 5 — dark mode תיקונים --- */
/* רקע לבן של תיבת AI — מיפוי אמונות + גלאי */
.architect-course-wrapper.dark-mode #beliefs-ai-section {
    background: #1a202c !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode #detector-ai-section {
    background: #1a202c !important;
    border-color: #2d3748 !important;
}
/* תיבת השאלות של הגלאי — רקע כהה בדארק */
.architect-course-wrapper.dark-mode .detector-container {
    background: #1a202c !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .question-label {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .question-input {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .question-number {
    color: #a0aec0 !important;
}
/* תיבת "נקודת אור" צהובה — טקסט לבן בדארק */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fffff0,#fefcbf)"] {
    background: linear-gradient(135deg, #2d2a1a, #3a3520) !important;
    border-color: #744210 !important;
    color: #fefcbf !important;
}
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fffff0,#fefcbf)"] b {
    color: #ecc94b !important;
}
/* כל הטקסט בתיבות AI של שיעור 5 */
.architect-course-wrapper.dark-mode #beliefs-ai-section h4,
.architect-course-wrapper.dark-mode #detector-ai-section h4 {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode #beliefs-ai-section p,
.architect-course-wrapper.dark-mode #beliefs-ai-section div,
.architect-course-wrapper.dark-mode #detector-ai-section p,
.architect-course-wrapper.dark-mode #detector-ai-section div {
    color: #cbd5e0 !important;
}

/* ============================================
   תיקון דארק מוד גלובלי — תבניות AI + inline styles
   ============================================ */

/* --- רקעים לבנים/בהירים גלובלי --- */
.architect-course-wrapper.dark-mode [style*="background:#fff"],
.architect-course-wrapper.dark-mode [style*="background: #fff"],
.architect-course-wrapper.dark-mode [style*="background:white"],
.architect-course-wrapper.dark-mode [style*="background: white"] {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode [style*="background:#f7fafc"],
.architect-course-wrapper.dark-mode [style*="background:#f9f9f9"],
.architect-course-wrapper.dark-mode [style*="background:#edf2f7"],
.architect-course-wrapper.dark-mode [style*="background:#f0f4ff"] {
    background: #1a2030 !important;
    border-color: #2d3748 !important;
}

/* --- טקסט כהה על רקע כהה — הפוך לבהיר --- */
.architect-course-wrapper.dark-mode [style*="color:#2d3748"] { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#1a202c"] { color: #e2e8f0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#4a5568"] { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#718096"] { color: #a0aec0 !important; }
.architect-course-wrapper.dark-mode [style*="color:#234e52"] { color: #81e6d9 !important; }
.architect-course-wrapper.dark-mode [style*="color:#7b341e"] { color: #fbd38d !important; }

/* --- תיבות צבעוניות בתשובות AI — רקע + טקסט --- */
/* ירוק */
.architect-course-wrapper.dark-mode [style*="background:#f0fff4"] {
    background: #1a2e1a !important;
    border-color: #2f855a !important;
}
.architect-course-wrapper.dark-mode [style*="background:#f0fff4"] b,
.architect-course-wrapper.dark-mode [style*="background:#f0fff4"] strong,
.architect-course-wrapper.dark-mode [style*="color:#2f855a"] { color: #68d391 !important; }
/* אדום */
.architect-course-wrapper.dark-mode [style*="background:#fff5f5"] {
    background: #2d1a1a !important;
    border-color: #c53030 !important;
}
.architect-course-wrapper.dark-mode [style*="background:#fff5f5"] b,
.architect-course-wrapper.dark-mode [style*="background:#fff5f5"] strong,
.architect-course-wrapper.dark-mode [style*="color:#c53030"]:not(.tab-continue-btn) { color: #fc8181 !important; }
/* סגול */
.architect-course-wrapper.dark-mode [style*="background:#f3e8ff"],
.architect-course-wrapper.dark-mode [style*="background:#faf5ff"] {
    background: #231a33 !important;
    border-color: #6b46c1 !important;
}
.architect-course-wrapper.dark-mode [style*="background:#f3e8ff"] b,
.architect-course-wrapper.dark-mode [style*="background:#f3e8ff"] strong { color: #d6bcfa !important; }
/* צהוב/חום */
.architect-course-wrapper.dark-mode [style*="background:#fffbe6"],
.architect-course-wrapper.dark-mode [style*="background:#fffaf0"] {
    background: #2d2a1a !important;
    border-color: #d69e2e !important;
}
.architect-course-wrapper.dark-mode [style*="background:#fffbe6"] b,
.architect-course-wrapper.dark-mode [style*="background:#fffbe6"] strong,
.architect-course-wrapper.dark-mode [style*="color:#856404"],
.architect-course-wrapper.dark-mode [style*="color:#975a16"] { color: #ecc94b !important; }
/* כחול */
.architect-course-wrapper.dark-mode [style*="background:#ebf8ff"],
.architect-course-wrapper.dark-mode [style*="background:#eff6ff"] {
    background: #1a2333 !important;
    border-color: #2b6cb0 !important;
}
.architect-course-wrapper.dark-mode [style*="background:#ebf8ff"] b,
.architect-course-wrapper.dark-mode [style*="background:#ebf8ff"] strong { color: #63b3ed !important; }
/* טורקיז */
.architect-course-wrapper.dark-mode [style*="background:#e6fffa"] {
    background: #1a2d2a !important;
    border-color: #2c7a7b !important;
}
.architect-course-wrapper.dark-mode [style*="background:#e6fffa"] b,
.architect-course-wrapper.dark-mode [style*="background:#e6fffa"] strong,
.architect-course-wrapper.dark-mode [style*="color:#2c7a7b"] { color: #81e6d9 !important; }

/* --- אזורי תוצאות AI ספציפיים --- */
.architect-course-wrapper.dark-mode #katie-final-content,
.architect-course-wrapper.dark-mode #freq-final-content,
.architect-course-wrapper.dark-mode #katie-results-area,
.architect-course-wrapper.dark-mode .detector-results,
.architect-course-wrapper.dark-mode .belief-results {
    color: #cbd5e0 !important;
}
.architect-course-wrapper.dark-mode #katie-final-content h4,
.architect-course-wrapper.dark-mode #freq-final-content h4,
.architect-course-wrapper.dark-mode #katie-results-area h4,
.architect-course-wrapper.dark-mode .detector-results h4,
.architect-course-wrapper.dark-mode .belief-results h4 {
    color: #e2e8f0 !important;
}

/* --- belief items (תוצאות גלאי אמונות) --- */
.architect-course-wrapper.dark-mode .belief-item {
    background: #1e2533 !important;
    border-color: #2d3748 !important;
}
.architect-course-wrapper.dark-mode .belief-explanation { color: #a0aec0 !important; }
.architect-course-wrapper.dark-mode .copy-action-btn {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* --- inputs עם רקע בהיר --- */
.architect-course-wrapper.dark-mode input[style*="background:white"],
.architect-course-wrapper.dark-mode input[style*="background:#fff"],
.architect-course-wrapper.dark-mode input[style*="background:#f9fbfb"],
.architect-course-wrapper.dark-mode textarea[style*="background:white"],
.architect-course-wrapper.dark-mode textarea[style*="background:#fff"] {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

/* --- character counters --- */
.architect-course-wrapper.dark-mode .character-counter { color: #718096 !important; }

/* --- download cards --- */
.architect-course-wrapper.dark-mode a[style*="background:#fff"],
.architect-course-wrapper.dark-mode a[style*="background:white"] {
    background: #1e2533 !important;
    color: #e2e8f0 !important;
    border-color: #2d3748 !important;
}

/* --- 7. שיעור 7 — dark mode תיקונים --- */
.architect-course-wrapper.dark-mode [style*="color:#4a3580"] { color: #d6bcfa !important; }
.architect-course-wrapper.dark-mode [style*="background:#f9fbfb"] { background: #1a202c !important; }
.architect-course-wrapper.dark-mode details > div[style*="color:#4a5568"] { color: #cbd5e0 !important; }
.architect-course-wrapper.dark-mode details > div p strong { color: #e2e8f0 !important; }

/* --- 8. שיעור 8 — dark mode תיקונים מקיפים --- */

/* רקעים שחסרים כיסוי */
.architect-course-wrapper.dark-mode [style*="background:#fefcff"] { background: #1e1a2e !important; }
.architect-course-wrapper.dark-mode [style*="background:#fffdf7"] { background: #2a2517 !important; }
.architect-course-wrapper.dark-mode [style*="background:white"] { background: #1e2533 !important; }

/* uppercase backgrounds — הסבר ששת הכובעים */
.architect-course-wrapper.dark-mode [style*="background:#F5F5F5"] { background: #1a202c !important; }
.architect-course-wrapper.dark-mode [style*="background:#FFF5F5"] { background: #2d1a1a !important; }
.architect-course-wrapper.dark-mode [style*="background:#FFFFF0"] { background: #2a2517 !important; }
.architect-course-wrapper.dark-mode [style*="background:#F7FAFC"] { background: #1a202c !important; }
.architect-course-wrapper.dark-mode [style*="background:#F0FFF4"] { background: #1a2e1a !important; }
.architect-course-wrapper.dark-mode [style*="background:#EBF8FF"] { background: #1e2d42 !important; }

/* משל ההשראה gradient */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#faf5ff,#fff5f5)"] { background: linear-gradient(135deg, #231a30, #2d1a1a) !important; }

/* סרגל כלי ציור + כפתורים */
.architect-course-wrapper.dark-mode .drawing-toolbar-styled { background: #1a202c !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .draw-tool-btn { background: #2d3748 !important; color: #e2e8f0 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .draw-tool-btn:hover { background: #4a5568 !important; }
.architect-course-wrapper.dark-mode .draw-tool-btn.active-tool { background: #805ad5 !important; border-color: #805ad5 !important; color: white !important; }
.architect-course-wrapper.dark-mode .drawing-color-btn { border-color: #4a5568 !important; }

/* backward refine & topics boxes dark mode */
.architect-course-wrapper.dark-mode #backward-refine-box { background: #1a2535 !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode #backward-refine-box strong { color: #90cdf4 !important; }
.architect-course-wrapper.dark-mode #backward-topics-box { background: #1a2e1a !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode #backward-topics-box strong { color: #9ae6b4 !important; }

/* מכתב מהעתיד — שיעור 7 (gradient with 0%/100%) */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg, #faf5ff 0%, #ebf8ff 100%)"] { background: linear-gradient(135deg, #231a30, #1a2535) !important; border-color: #4a5568 !important; }

/* summary של details — "מהי מטרה" */
.architect-course-wrapper.dark-mode .reveal-summary { background: #2d3748 !important; }

/* ארכיון הקלטות — dark mode */
.architect-course-wrapper.dark-mode .recording-card {
    background: #1e2533 !important;
    border-color: #4a5568 !important;
}
.architect-course-wrapper.dark-mode .recording-card div[style*="color:#2d3748"],
.architect-course-wrapper.dark-mode .recording-card div[style*="color: #2d3748"] {
    color: #e2e8f0 !important;
}
.architect-course-wrapper.dark-mode .reveal-summary strong { color: #e2e8f0 !important; }

/* כרטיס הישגים — שורות עם background:white */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#faf5ff,#ebf8ff)"] { background: linear-gradient(135deg, #231a30, #1a2535) !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#fffaf0,#fefcbf)"] { background: linear-gradient(135deg, #2a2517, #2e2a15) !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#f0fff4,#ebf8ff)"] { background: linear-gradient(135deg, #1a2e1a, #1a2535) !important; border-color: #4a5568 !important; }

/* כרטיסי מטרות */
.architect-course-wrapper.dark-mode .goal-design-card { background: #1e2533 !important; border-color: #2d3748 !important; }
.architect-course-wrapper.dark-mode .goal-design-card strong { color: #d6bcfa !important; }

/* backward pick hint dark mode */
.architect-course-wrapper.dark-mode #backward-pick-hint { background: #1e1533 !important; border-color: #805ad5 !important; color: #d6bcfa !important; }
.architect-course-wrapper.dark-mode #backward-pick-hint strong { color: #e9d8fd !important; }

/* Pick buttons & derivation chips dark mode */
.architect-course-wrapper.dark-mode .pick-goal-btn { background: #2d3748; color: #d6bcfa; border-color: #805ad5; }
.architect-course-wrapper.dark-mode .pick-goal-btn:hover { background: #805ad5; color: white; }
.architect-course-wrapper.dark-mode .derivation-chip { background: #2d3748; border-color: #4a5568; color: #cbd5e0; }
.architect-course-wrapper.dark-mode #derivation-goals-strip { background: linear-gradient(135deg, #1e2533, #1a2535) !important; border-color: #4a5568 !important; }

/* כרטיסי flip (צד קדמי בצבע כהה כבר) */
.architect-course-wrapper.dark-mode .flip-card-front { border-color: #4a5568 !important; }

/* כרטיסי כובעים — תוצאות AI */
.architect-course-wrapper.dark-mode .hat-card { background: #1e2533 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .hat-card.white-hat { background: #1a202c !important; }
.architect-course-wrapper.dark-mode .hat-card.red-hat { border-top-color: #e53e3e !important; }

/* טבלאות AI (גזירה לאחור ואחרות) */
.architect-course-wrapper.dark-mode .belief-results table,
.architect-course-wrapper.dark-mode .belief-results .derivation-table { border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .belief-results table th { background: #2d3748 !important; color: #e2e8f0 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .belief-results table td { background: #1e2533 !important; color: #cbd5e0 !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode .belief-results table tr:nth-child(even) td { background: #252d3d !important; }

/* backward no-vision + vision-box + green summary boxes */
.architect-course-wrapper.dark-mode #backward-no-vision { background: #2d2a1a !important; border-color: #d69e2e !important; }
.architect-course-wrapper.dark-mode #backward-no-vision p { color: #ecc94b !important; }
.architect-course-wrapper.dark-mode #backward-vision-box { background: #1e1533 !important; border-color: #9f7aea !important; }
.architect-course-wrapper.dark-mode #backward-vision-box strong { color: #d6bcfa !important; }
.architect-course-wrapper.dark-mode #backward-vision-text { color: #e2e8f0 !important; }

/* שיעור 2 — הערה על המודל */
.architect-course-wrapper.dark-mode #lesson2-model-note { background: #2d2a1a !important; border-color: #d69e2e !important; color: #fefcbf !important; }
.architect-course-wrapper.dark-mode #lesson2-model-note strong { color: #fefcbf !important; }

/* CTA סיום מודול — כל המודולים */
.architect-course-wrapper.dark-mode [id^="module-end-cta"] { background: linear-gradient(135deg, #1a1a2e, #2d1b4e) !important; border-color: #9f7aea !important; }
.architect-course-wrapper.dark-mode [id^="module-end-cta"] p { color: #e9d8fd !important; }

/* --- שיעור 7 — blueprint ו-4 חוקי ברזל --- */
.architect-course-wrapper.dark-mode .blueprint-box,
.architect-course-wrapper.dark-mode [style*="border:2px solid #553c9a"][style*="background:white"],
.architect-course-wrapper.dark-mode [style*="background:#fff"][style*="border:2px solid"] { background: #1e2533 !important; border-color: #4a5568 !important; }

/* --- שיעור 7 — blueprint + 4 חוקי ברזל --- */
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(180deg,#faf5ff,#e6fffa)"] { background: linear-gradient(180deg, #231a30, #1a2e2e) !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode [style*="background:linear-gradient(135deg,#faf5ff,#e9d8fd)"] { background: linear-gradient(135deg, #231a30, #2a1e3d) !important; border-color: #4a5568 !important; }
.architect-course-wrapper.dark-mode [style*="background:#fff"][style*="border-right:3px solid #805ad5"] { background: #1e2533 !important; }

/* --- סמן המתנה בזמן טעינת AI --- */
body.ai-loading, body.ai-loading * { cursor: wait !important; }
body.ai-loading .belief-button { pointer-events: none; opacity: 0.7; }

/* --- צ'קליסט 31 דברים --- */
.checklist-31-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s;
}
.checklist-31-item:hover {
    background: #f7fafc;
}
.checklist-31-item input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #805ad5;
    cursor: pointer;
    flex-shrink: 0;
}
.checklist-31-item label {
    cursor: pointer;
    line-height: 1.6;
    color: #4a5568;
    flex: 1;
}
.checklist-31-item label strong {
    color: #2d3748;
}
.checklist-31-item.checked label {
    color: #a0aec0;
    text-decoration: line-through;
}
.checklist-31-item.checked label strong {
    color: #a0aec0;
}
.checklist-31-counter {
    text-align: center;
    font-weight: bold;
    color: #805ad5;
    font-size: 1.05rem;
    padding: 10px;
    background: #faf5ff;
    border-radius: 8px;
    margin-bottom: 15px;
}
.checklist-floor-title {
    font-weight: bold;
    color: #2d3748;
    padding: 10px 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin: 15px 0 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checklist-floor-title:hover {
    background: #edf2f7;
}
/* dark mode 31 things */
.architect-course-wrapper.dark-mode .checklist-31-item:hover { background: #2d3748; }
.architect-course-wrapper.dark-mode .checklist-31-item label { color: #cbd5e0; }
.architect-course-wrapper.dark-mode .checklist-31-item label strong { color: #e2e8f0; }
.architect-course-wrapper.dark-mode .checklist-31-item.checked label,
.architect-course-wrapper.dark-mode .checklist-31-item.checked label strong { color: #4a5568; }
.architect-course-wrapper.dark-mode .checklist-31-counter { background: #2d2045; color: #d6bcfa; }
.architect-course-wrapper.dark-mode .checklist-floor-title { background: #2d3748; color: #e2e8f0; }
.architect-course-wrapper.dark-mode .checklist-floor-title:hover { background: #3d4a5c; }

/* ===================================
   About Link (sidebar bottom)
   =================================== */
.about-link-container {
    text-align: center;
    padding: 10px 15px 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}
.about-link {
    font-size: 0.72rem;
    color: #a0aec0;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.about-link:hover {
    color: #718096;
    text-decoration: underline;
}

/* ===================================
   About Modal
   =================================== */
.about-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 380px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: aboutSlideIn 0.3s ease;
    text-align: center;
    direction: rtl;
}
@keyframes aboutSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.about-modal-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    padding: 28px 24px 22px;
    position: relative;
}
.about-close-btn {
    position: absolute;
    top: 10px;
    left: 14px;
    color: rgba(255,255,255,0.6);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.about-close-btn:hover {
    color: #fff;
}
.about-logo {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.about-title {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}
.about-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    margin-top: 3px;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 1px;
    direction: ltr;
}
.about-version {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.about-modal-body {
    padding: 22px 24px 20px;
}
.about-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
    padding: 10px 0;
}
.about-section-icon {
    font-size: 1.3rem;
    margin-top: 2px;
}
.about-section-content {
    flex: 1;
}
.about-section-label {
    font-size: 0.72rem;
    color: #a0aec0;
    margin-bottom: 2px;
}
.about-section-value {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 700;
}
.about-section-sub {
    font-size: 0.82rem;
    color: #718096;
    margin-top: 1px;
}
.about-contact-link {
    display: block;
    font-size: 0.85rem;
    color: #2b6cb0;
    text-decoration: none;
    margin-top: 2px;
    direction: ltr;
    text-align: right;
}
.about-contact-link:hover {
    text-decoration: underline;
    color: #2c5282;
}
.about-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0;
}
.about-copyright {
    font-size: 0.75rem;
    color: #a0aec0;
    line-height: 1.7;
}
.about-rights {
    font-size: 0.7rem;
    color: #cbd5e0;
}
.about-quote {
    margin-top: 14px;
    padding: 10px 16px;
    background: #f7fafc;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #718096;
    font-weight: bold;
    line-height: 1.6;
}

/* === Dark Mode: About Modal === */
.architect-course-wrapper.dark-mode .about-link-container {
    border-top-color: #2d3748;
}
.architect-course-wrapper.dark-mode .about-link {
    color: #718096;
}
.architect-course-wrapper.dark-mode .about-link:hover {
    color: #a0aec0;
}
.architect-course-wrapper.dark-mode .about-modal-content {
    background: #1e2533;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.architect-course-wrapper.dark-mode .about-modal-header {
    background: linear-gradient(135deg, #0f1a2e 0%, #1a2744 50%, #1e3a5f 100%);
}
.architect-course-wrapper.dark-mode .about-section-label {
    color: #718096;
}
.architect-course-wrapper.dark-mode .about-section-value {
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .about-section-sub {
    color: #a0aec0;
}
.architect-course-wrapper.dark-mode .about-contact-link {
    color: #63b3ed;
}
.architect-course-wrapper.dark-mode .about-contact-link:hover {
    color: #90cdf4;
}
.architect-course-wrapper.dark-mode .about-divider {
    background: #2d3748;
}
.architect-course-wrapper.dark-mode .about-copyright {
    color: #718096;
}
.architect-course-wrapper.dark-mode .about-rights {
    color: #4a5568;
}
.architect-course-wrapper.dark-mode .about-quote {
    background: #171923;
    color: #a0aec0;
}

/* ===================================
   רגע של גילוי — Discovery Pulse
   =================================== */
.discovery-pulse-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #fffff0, #fefcbf);
    border: 1px dashed #d69e2e;
    border-radius: 10px;
    color: #975a16;
    font-size: 0.95rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}
.discovery-pulse-trigger:hover {
    background: linear-gradient(135deg, #fefcbf, #fef3c7);
    border-color: #b7791f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(214,158,46,0.2);
}
.discovery-pulse-trigger.open {
    border-style: solid;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    color: #975a16;
}
.discovery-pulse-trigger:focus,
.discovery-pulse-trigger:active,
.discovery-pulse-trigger:focus-visible {
    color: #975a16;
    outline: none;
}
.discovery-pulse-panel {
    display: none;
    background: #fffdf5;
    border: 1px solid #d69e2e;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 18px;
    margin-bottom: 10px;
    animation: discoverySlideDown 0.3s ease;
}
.discovery-pulse-panel.show {
    display: block;
}
@keyframes discoverySlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.discovery-pulse-panel label {
    display: block;
    font-size: 0.88rem;
    font-weight: bold;
    color: #975a16;
    margin-bottom: 6px;
    margin-top: 14px;
}
.discovery-pulse-panel label:first-child {
    margin-top: 0;
}
.discovery-pulse-panel textarea {
    width: 100%;
    min-height: 70px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-family: inherit;
    direction: rtl;
    resize: vertical;
    line-height: 1.5;
    transition: border-color 0.2s;
}
.discovery-pulse-panel textarea:focus {
    outline: none;
    border-color: #d69e2e;
    box-shadow: 0 0 0 2px rgba(214,158,46,0.15);
}
.discovery-pulse-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.discovery-pulse-save button {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}
.discovery-pulse-save button:hover {
    opacity: 0.9;
}
.discovery-pulse-saved {
    font-size: 0.75rem;
    color: #38a169;
    margin-left: 8px;
    align-self: center;
}

/* ===================================
   יומן המסע — Journey Modal
   =================================== */
.journey-journal-btn {
    background-color: var(--primary-light);
    border: 2px solid var(--primary-light);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.journey-journal-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56,178,172,0.3);
}
.journey-journal-btn:focus,
.journey-journal-btn:active {
    color: white;
    outline: none;
}
.journey-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.journey-modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: journalSlideIn 0.4s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
    direction: rtl;
}
@keyframes journalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.journey-modal-close {
    position: absolute;
    top: 12px;
    left: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
    line-height: 1;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
}
.journey-modal-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}
.journey-modal-header {
    background: linear-gradient(135deg, #975a16 0%, #d69e2e 50%, #b7791f 100%);
    padding: 28px 28px 22px;
    text-align: center;
}
.journey-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}
.journey-modal-title {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.journey-modal-subtitle {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.9rem;
}
.journey-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: #d69e2e #f7fafc;
}
.journey-modal-entry {
    background: linear-gradient(135deg, #fffff0, #fefcbf);
    border: 1px solid #fbd38d;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    animation: entryFadeIn 0.3s ease both;
}
@keyframes entryFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
.journey-modal-entry-source {
    font-size: 0.78rem;
    color: #b7791f;
    font-weight: bold;
    margin-bottom: 4px;
}
.journey-modal-entry-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}
.journey-modal-empty {
    text-align: center;
    padding: 30px 20px;
    color: #a0aec0;
}
.journey-modal-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.journey-modal-empty p {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
}
.journey-modal-empty-sub {
    font-size: 0.82rem !important;
    color: #cbd5e0;
}
.journey-modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: #975a16;
    font-size: 0.95rem;
}
.journey-modal-spinner {
    width: 32px; height: 32px;
    border: 3px solid #fefcbf;
    border-top-color: #d69e2e;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.journey-modal-reflection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.journey-modal-reflection label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #975a16;
    margin-bottom: 8px;
}
.journey-modal-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    direction: rtl;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.journey-modal-textarea:focus {
    outline: none;
    border-color: #d69e2e;
    box-shadow: 0 0 0 3px rgba(214,158,46,0.15);
}
.journey-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    gap: 10px;
}
.journey-modal-copy-btn {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.journey-modal-copy-btn:hover { background: #e2e8f0; }
.journey-modal-save-btn {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.journey-modal-save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
@media (max-width: 768px) {
    .journey-modal-content {
        max-width: 100%; width: 100%; max-height: 100vh;
        border-radius: 0; height: 100%;
    }
    .journey-modal-header { padding: 20px 20px 16px; }
    .journey-modal-body { padding: 16px 18px; }
    .journey-modal-footer { padding: 14px 18px; }
    .journey-journal-btn { padding: 0.6rem 1rem; font-size: 0.85rem; width: 100%; }
}

/* Dark mode */
.architect-course-wrapper.dark-mode .discovery-pulse-trigger,
.architect-course-wrapper.dark-mode .discovery-pulse-trigger:focus,
.architect-course-wrapper.dark-mode .discovery-pulse-trigger:active,
.architect-course-wrapper.dark-mode .discovery-pulse-trigger:focus-visible,
.architect-course-wrapper.dark-mode .discovery-pulse-trigger.open {
    background: linear-gradient(135deg, #2d2d1f, #3d3520);
    border-color: #b7791f;
    color: #ecc94b;
}
.architect-course-wrapper.dark-mode .discovery-pulse-panel {
    background: #2d2d1f;
    border-color: #b7791f;
}
.architect-course-wrapper.dark-mode .discovery-pulse-panel textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .discovery-pulse-panel label {
    color: #ecc94b;
}
.architect-course-wrapper.dark-mode .journey-journal-btn {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #1a202c;
}
.architect-course-wrapper.dark-mode .journey-journal-btn:hover {
    background-color: #4fd1c5;
    border-color: #4fd1c5;
    color: #1a202c;
}
.architect-course-wrapper.dark-mode .journey-modal-content {
    background: #1e2533;
}
.architect-course-wrapper.dark-mode .journey-modal-header {
    background: linear-gradient(135deg, #3d3520 0%, #5a4020 50%, #4a3520 100%);
}
.architect-course-wrapper.dark-mode .journey-modal-entry {
    background: linear-gradient(135deg, #2d2d1f, #3d3520);
    border-color: #5a4020;
}
.architect-course-wrapper.dark-mode .journey-modal-entry-text {
    color: #cbd5e0;
}
.architect-course-wrapper.dark-mode .journey-modal-entry-source {
    color: #ecc94b;
}
.architect-course-wrapper.dark-mode .journey-modal-reflection {
    border-top-color: #4a5568;
}
.architect-course-wrapper.dark-mode .journey-modal-reflection label {
    color: #ecc94b;
}
.architect-course-wrapper.dark-mode .journey-modal-textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .journey-modal-textarea:focus {
    border-color: #d69e2e;
    box-shadow: 0 0 0 3px rgba(214,158,46,0.2);
}
.architect-course-wrapper.dark-mode .journey-modal-footer {
    border-top-color: #4a5568;
}
.architect-course-wrapper.dark-mode .journey-modal-copy-btn {
    background: #2d3748;
    color: #a0aec0;
}
.architect-course-wrapper.dark-mode .journey-modal-copy-btn:hover {
    background: #4a5568;
}
.architect-course-wrapper.dark-mode .journey-modal-empty {
    color: #718096;
}
.architect-course-wrapper.dark-mode .journey-modal-loading {
    color: #ecc94b;
}

/* ===================================
   🤝 שותפים למסע — Partners Mission
   =================================== */
.partners-mission-btn {
    background-color: #667eea;
    border: 2px solid #667eea;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.partners-mission-btn:hover {
    background-color: #5a67d8;
    border-color: #5a67d8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.partners-mission-btn:focus,
.partners-mission-btn:active {
    color: white;
    outline: none;
}
.partners-mission-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partners-mission-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.partners-mission-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    direction: rtl;
}
.partners-mission-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 28px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.partners-mission-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}
.partners-mission-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.partners-mission-close:hover {
    background: rgba(255,255,255,0.35);
}
.partners-mission-body {
    padding: 28px;
}
.partners-mission-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
    margin: 0;
}

/* Mobile */
@media (max-width: 520px) {
    .partners-mission-btn { padding: 0.6rem 1rem; font-size: 0.85rem; width: 100%; }
    .partners-mission-content { width: 95%; border-radius: 12px; }
    .partners-mission-body { padding: 20px; }
    .partners-mission-body p { font-size: 0.95rem; }
}

/* Dark mode */
.architect-course-wrapper.dark-mode .partners-mission-btn {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}
.architect-course-wrapper.dark-mode .partners-mission-btn:hover {
    background-color: #7c8ff0;
    border-color: #7c8ff0;
}
.architect-course-wrapper.dark-mode .partners-mission-content {
    background: #1e2533;
}
.architect-course-wrapper.dark-mode .partners-mission-body p {
    color: #e2e8f0;
}

/* ========================================
   📊 Lesson 5: Belief Mapping Tab
   ======================================== */

/* Collapsible section buttons */
#tab-5-beliefs > div > button[onclick*="toggleBeliefSection"] {
    transition: background 0.2s;
}
#tab-5-beliefs > div > button[onclick*="toggleBeliefSection"]:hover {
    filter: brightness(0.97);
}

/* Timeline table cells */
.timeline-cell {
    width: 100%;
    min-height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px;
    font-size: 0.8rem;
    resize: vertical;
    direction: rtl;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.timeline-cell:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

/* Belief rating buttons (1-10 scale) */
.belief-rating-btns {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
    direction: ltr;
}
.belief-rate-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    background: #fff;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}
.belief-rate-btn:hover {
    background: #ebf8ff;
    border-color: #4299e1;
    color: #2b6cb0;
    transform: scale(1.1);
}
.belief-rate-btn.selected {
    color: #fff;
    border-color: transparent;
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.belief-rate-btn.selected.score-high {
    background: #38a169;
}
.belief-rate-btn.selected.score-mid {
    background: #d69e2e;
}
.belief-rate-btn.selected.score-low {
    background: #e53e3e;
}

/* Belief dimension card */
.beliefs-dimension {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: border-color 0.3s, background 0.3s;
}
.beliefs-dimension.flagged {
    border-color: #fc8181;
    background: #fff5f5;
}
.beliefs-dimension.safe {
    border-color: #9ae6b4;
    background: #f0fff4;
}

.belief-statement {
    font-size: 1rem;
    color: #2d3748;
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
}
.goal-placeholder {
    color: #3182ce;
    font-weight: bold;
}

/* Result cards */
.belief-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
}
.belief-result-card.limiting {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border-right: 4px solid #e53e3e;
}
.belief-result-card.supporting {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border-right: 4px solid #38a169;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timeline-cell { min-height: 40px; font-size: 0.75rem; padding: 4px; }
    .belief-rate-btn { width: 30px; height: 30px; font-size: 0.8rem; }
    .belief-statement { font-size: 0.9rem; }
    .beliefs-dimension { padding: 12px; }
}

/* --- Dark mode for Belief Mapping --- */
.architect-course-wrapper.dark-mode #tab-5-beliefs > div > button[onclick*="toggleBeliefSection"] {
    background: linear-gradient(135deg, #2d3748, #1a202c) !important;
}
.architect-course-wrapper.dark-mode #tab-5-beliefs > div > button[onclick*="toggleBeliefSection"] span:first-child {
    color: #63b3ed !important;
}
.architect-course-wrapper.dark-mode .timeline-cell {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .timeline-cell:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.2);
}
.architect-course-wrapper.dark-mode .belief-rate-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .belief-rate-btn:hover {
    background: #4a5568;
    color: #bee3f8;
}
.architect-course-wrapper.dark-mode .beliefs-dimension {
    background: #1e2533;
    border-color: #4a5568;
}
.architect-course-wrapper.dark-mode .beliefs-dimension.flagged {
    background: #2d2028;
    border-color: #e53e3e;
}
.architect-course-wrapper.dark-mode .beliefs-dimension.safe {
    background: #1a2e1a;
    border-color: #38a169;
}
.architect-course-wrapper.dark-mode .belief-statement {
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .goal-placeholder {
    color: #63b3ed;
}
.architect-course-wrapper.dark-mode #beliefs-goal-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
.architect-course-wrapper.dark-mode .belief-result-card.limiting {
    background: linear-gradient(135deg, #2d2028, #3b1f1f);
}
.architect-course-wrapper.dark-mode .belief-result-card.supporting {
    background: linear-gradient(135deg, #1a2e1a, #1e3a1e);
}

/* ===== LESSON 8: שיעור 8 — מהחזון לתוכנית ===== */

/* Flip Cards */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    min-height: 120px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
    text-align: center;
}
.flip-card-front {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #e2e8f0;
    color: #2d3748;
}
.flip-card-back {
    transform: rotateY(180deg);
    color: white;
}

/* Bridge questionnaire cards */
.bridge-q-card {
    transition: transform 0.1s ease;
}
.bridge-q-card:hover {
    transform: scale(1.03);
}

/* Hat cards — 6 hats display */
.hat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid #e2e8f0;
    transition: transform 0.2s;
}
.hat-card:hover {
    transform: translateY(-2px);
}
.hat-card.white-hat { border-top-color: #e2e8f0; background: #fafafa; }
.hat-card.red-hat { border-top-color: #e53e3e; }
.hat-card.yellow-hat { border-top-color: #ecc94b; }
.hat-card.black-hat { border-top-color: #2d3748; }
.hat-card.green-hat { border-top-color: #38a169; }
.hat-card.blue-hat { border-top-color: #3182ce; }

/* Derivation table */
.derivation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    direction: rtl;
    table-layout: fixed;
    word-wrap: break-word;
}
.derivation-table th {
    background: #805ad5;
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.8rem;
}
.derivation-table td {
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: top;
    line-height: 1.5;
}
.derivation-table tr:nth-child(even) {
    background: #faf5ff;
}
.derivation-table tr:last-child {
    background: #f0fff4;
    font-weight: bold;
}

/* Pick goal button (in derivation table) */
.pick-goal-btn {
    display: block;
    margin: 8px auto 0;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #805ad5;
    background: white;
    border: 1.5px solid #805ad5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.pick-goal-btn:hover {
    background: #805ad5;
    color: white;
    transform: scale(1.05);
}

/* Derivation chips in design room */
.derivation-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #d6bcfa;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #4a5568;
    transition: all 0.2s;
}
.derivation-chip:hover {
    border-color: #805ad5;
    box-shadow: 0 2px 8px rgba(128,90,213,0.15);
}
.derivation-chip .chip-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.derivation-chip .chip-use {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    line-height: 1;
}
.derivation-chip .chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #e53e3e;
    font-size: 0.75rem;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.derivation-chip .chip-remove:hover { opacity: 1; }

/* Goal design card */
.goal-design-card {
    transition: box-shadow 0.2s;
}
.goal-design-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Force AI result inside design tab to fill width */
#tab-8-design .belief-results > div,
#tab-8-design .belief-results div[style*="max-width"] {
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix AI score circles — ensure text fits inside */
.belief-results div[style*="border-radius:50%"],
.belief-results div[style*="border-radius: 50%"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 80px !important;
    min-height: 80px !important;
    width: auto !important;
    aspect-ratio: 1 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* Task checklist */
.task-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.task-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s;
}
.task-checklist li:hover {
    background: #f7fafc;
}
.task-checklist li.checked {
    background: #f0fff4;
    text-decoration: line-through;
    color: #a0aec0;
}
.task-checklist input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #38a169;
}

/* Stamp animation */
@keyframes stampIn {
    0% { transform: scale(3) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1) rotate(0deg); opacity: 1; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.stamp-appear {
    animation: stampIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Envelope animation */
@keyframes envelopeSeal {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0); }
    100% { transform: scaleY(1); opacity: 0.7; }
}
.envelope-sealed {
    animation: envelopeSeal 0.8s ease forwards;
}

/* Canvas toolbar active states */
.canvas-color-btn.active {
    border-color: white !important;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.canvas-size-btn.active {
    background: rgba(255,255,255,0.15) !important;
}

/* Time principle cards — make them same height */
.time-principle-card {
    min-height: 130px;
}
.time-principle-card .flip-card-front,
.time-principle-card .flip-card-back {
    min-height: 130px;
}

/* Responsive adjustments for lesson 8 */
@media (max-width: 600px) {
    .flip-card {
        min-height: 100px;
    }
    .flip-card-inner {
        min-height: 100px;
    }
    .time-principle-card {
        min-height: 110px;
    }
    .derivation-table {
        font-size: 0.75rem;
    }
    .derivation-table th, .derivation-table td {
        padding: 6px 4px;
    }
}

/* ===== CHABLEZ STEPPER ===== */
.chablez-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.chablez-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #805ad5, #319795);
    border-radius: 8px;
    transition: width 0.4s ease;
}
.chablez-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    min-height: 180px;
    position: relative;
    animation: chablezFadeIn 0.35s ease;
}
@keyframes chablezFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.chablez-card-tags {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 4px;
}
.method-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    opacity: 0.7;
}
.tag-chablez {
    background: #faf5ff;
    color: #805ad5;
    border: 1px solid #d6bcfa;
}
.tag-smart {
    background: #ebf8ff;
    color: #3182ce;
    border: 1px solid #bee3f8;
}
.chablez-card-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}
.chablez-hint {
    color: #718096;
    font-size: 0.88rem;
    margin: 0 0 12px;
    line-height: 1.5;
}
.chablez-card .declaration-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: right;
}

/* Intensity slider */
.chablez-intensity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}
.chablez-slider {
    width: 80%;
    max-width: 350px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #bee3f8, #805ad5);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}
.chablez-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #805ad5;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}
.chablez-big-number {
    font-size: 3rem;
    font-weight: 900;
    color: #805ad5;
    line-height: 1;
}
.chablez-emoji {
    font-size: 1rem;
    color: #718096;
    min-height: 24px;
}

/* Decision buttons */
.chablez-decision {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}
.chablez-yes-btn, .chablez-rethink-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: 'Heebo', sans-serif;
}
.chablez-yes-btn {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    color: #276749;
    border-color: #48bb78;
}
.chablez-yes-btn:hover {
    background: #c6f6d5;
    transform: scale(1.03);
}
.chablez-rethink-btn {
    background: linear-gradient(135deg, #fffff0, #fefcbf);
    color: #975a16;
    border-color: #ecc94b;
}
.chablez-rethink-btn:hover {
    background: #fefcbf;
    transform: scale(1.03);
}
.chablez-yes-btn.selected {
    border-color: #276749;
    box-shadow: 0 0 0 3px rgba(72,187,120,0.3);
}
.chablez-rethink-btn.selected {
    border-color: #975a16;
    box-shadow: 0 0 0 3px rgba(236,201,75,0.3);
}

/* Why details */
.chablez-why-details {
    margin-top: 12px;
    text-align: right;
}
.chablez-why-btn {
    font-size: 0.8rem;
    color: #805ad5;
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
}
.chablez-why-btn::-webkit-details-marker { display: none; }
.chablez-why-content {
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.6;
    padding: 8px 12px;
    background: #faf5ff;
    border-radius: 8px;
    margin-top: 6px;
    text-align: right;
}

/* Navigation */
.chablez-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}
.chablez-nav-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: all 0.2s ease;
}
.chablez-nav-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}
.chablez-next-btn {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
    border: none;
}
.chablez-next-btn:hover {
    background: linear-gradient(135deg, #6b46c1, #553c9a);
}

/* Dark mode */
body.dark-mode .chablez-card {
    background: #2d3748;
    border-color: #4a5568;
}
body.dark-mode .chablez-card h4 { color: #90cdf4; }
body.dark-mode .chablez-hint { color: #a0aec0; }
body.dark-mode .chablez-why-content {
    background: #1a202c;
    color: #cbd5e0;
}
body.dark-mode .chablez-nav-btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}
body.dark-mode .chablez-next-btn {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
}
body.dark-mode .chablez-yes-btn {
    background: #22543d;
    color: #c6f6d5;
    border-color: #48bb78;
}
body.dark-mode .chablez-rethink-btn {
    background: #744210;
    color: #fefcbf;
    border-color: #ecc94b;
}
body.dark-mode .chablez-big-number { color: #b794f4; }
body.dark-mode .chablez-emoji { color: #cbd5e0; }
body.dark-mode .method-tag.tag-chablez {
    background: #44337a;
    color: #d6bcfa;
    border-color: #6b46c1;
}
body.dark-mode .method-tag.tag-smart {
    background: #2a4365;
    color: #90cdf4;
    border-color: #3182ce;
}
body.dark-mode #chablez-ready > div {
    background: linear-gradient(135deg, #22543d, #2a4365);
    border-color: #48bb78;
}
body.dark-mode #chablez-ready strong { color: #c6f6d5; }

/* Mobile */
@media (max-width: 600px) {
    .chablez-card { padding: 18px 14px; }
    .chablez-big-number { font-size: 2.5rem; }
    .chablez-slider { width: 90%; }
    .chablez-decision { flex-direction: column; }
    .chablez-yes-btn, .chablez-rethink-btn { width: 100%; }
}

