/* ===================================
   WORKSHOP PAGE STYLES
   ================================ */

:root {
    --phase-1-color: #6366f1; /* Indigo - Planning */
    --phase-2-color: #8b5cf6; /* Purple - Building */
    --phase-3-color: #ec4899; /* Pink - Styling */
    --phase-4-color: #f59e0b; /* Amber - Responsive */
    --phase-5-color: #10b981; /* Green - Polish */
    --phase-6-color: #3b82f6; /* Blue - Share */
    
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Force proper theme transitions on mobile */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.01s, color 0.01s, border-color 0.01s !important;
}

/* Prevent body scroll when sidebar is active on mobile */
body.sidebar-active {
    overflow: hidden;
}

/* ===================================
   NAVBAR OVERRIDES FOR LIGHT MODE
   =================================== */

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .nav-link {
    color: #4b5563 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #6366f1 !important;
}

[data-theme="light"] .nav-brand a,
[data-theme="light"] .logo {
    color: #111827 !important;
}

[data-theme="light"] .mobile-menu-toggle span {
    background: #374151 !important;
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #374151 !important;
}

/* Language toggle button - ensure visibility */
.language-toggle-btn {
    position: relative !important;
    z-index: 1001 !important;
}

.floating-controls {
    z-index: 1001 !important;
}

[data-theme="light"] .language-toggle-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #374151 !important;
}

/* ===================================
   NAVIGATION BRAND
   =================================== */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   PROGRESS BAR
   =================================== */

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--phase-1-color), 
        var(--phase-2-color), 
        var(--phase-3-color), 
        var(--phase-4-color), 
        var(--phase-5-color), 
        var(--phase-6-color)
    );
    width: 0%;
    transition: width 0.3s ease;
}

/* ===================================
   SIDEBAR NAVIGATION
   =================================== */

.sidebar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #111827;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
}

[data-theme="dark"] .sidebar-mobile-toggle {
    color: #f3f4f6;
}

.sidebar-mobile-toggle:hover {
    color: var(--primary-color);
}

/* Sidebar backdrop for mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

.workshop-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 300px;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    z-index: 100;
    padding: 1.5rem 0;
    transition: transform 0.3s ease;
}

/* RTL Support for Arabic */
[dir="rtl"] .workshop-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.05);
}

[dir="rtl"][data-theme="dark"] .workshop-sidebar {
    border-left-color: rgba(255, 255, 255, 0.1);
}

/* Improve scrollbar on mobile */
.workshop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.workshop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.workshop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.workshop-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .workshop-sidebar {
    background: rgba(15, 23, 42, 0.98);
    border-right-color: rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 0 1.5rem 1.25rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .sidebar-header {
    border-bottom-color: rgba(99, 102, 241, 0.3);
}

.sidebar-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .sidebar-header h3 {
    color: #f3f4f6;
}

.sidebar-nav {
    padding: 1.25rem 0;
}

/* Back to Course button */
.sidebar-link.back-to-course {
    margin: 0 1rem 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    border-left: 3px solid #6366f1;
    font-weight: 600;
    gap: 0.625rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .sidebar-link.back-to-course {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.08));
    border-color: rgba(99, 102, 241, 0.3);
}

.sidebar-link.back-to-course:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.1));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .sidebar-link.back-to-course:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.12));
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.sidebar-link.back-to-course i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.sidebar-link.back-to-course:hover i {
    transform: translateX(-3px);
}

[dir="rtl"] .sidebar-link.back-to-course {
    border-left: none;
    border-right: 3px solid #6366f1;
}

[dir="rtl"] .sidebar-link.back-to-course:hover {
    transform: translateX(2px);
}

[dir="rtl"] .sidebar-link.back-to-course i {
    transform: scaleX(-1);
}

[dir="rtl"] .sidebar-link.back-to-course:hover i {
    transform: scaleX(-1) translateX(-3px);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

[data-theme="dark"] .sidebar-link {
    color: #9ca3af;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border-left-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .sidebar-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), transparent);
    color: #6366f1;
    border-left-color: #6366f1;
    font-weight: 600;
}

[data-theme="dark"] .sidebar-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), transparent);
    color: #a5b4fc;
}

.sidebar-link .link-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
}

[data-theme="dark"] .sidebar-link .link-number {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.sidebar-link:hover .link-number {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

[data-theme="dark"] .sidebar-link:hover .link-number {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.sidebar-link.active .link-number {
    background: #6366f1;
    color: white;
}

[data-theme="dark"] .sidebar-link.active .link-number {
    background: #6366f1;
}

.sidebar-section {
    margin: 1.5rem 0;
}

.sidebar-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .sidebar-section .section-title {
    color: #f3f4f6;
}

.phase-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

.phase-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phase-1 .phase-indicator { background: var(--phase-1-color); }
.phase-2 .phase-indicator { background: var(--phase-2-color); }
.phase-3 .phase-indicator { background: var(--phase-3-color); }
.phase-4 .phase-indicator { background: var(--phase-4-color); }
.phase-5 .phase-indicator { background: var(--phase-5-color); }
.phase-6 .phase-indicator { background: var(--phase-6-color); }

.time-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    min-width: 55px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

[data-theme="dark"] .time-badge {
    color: #6b7280;
    background: rgba(255, 255, 255, 0.05);
}

/* ===================================
   MAIN CONTENT LAYOUT
   =================================== */

.workshop-content {
    margin-left: 300px;
    min-height: 100vh;
    padding: 6rem 0 4rem;
}

[dir="rtl"] .workshop-content {
    margin-left: 0;
    margin-right: 300px;
}

.workshop-section {
    padding: 4rem 0;
    overflow: visible;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible;
}

/* ===================================
   WORKSHOP HEADER
   =================================== */

.workshop-header-content {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.workshop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.workshop-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.workshop-lead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 1rem auto;
    line-height: 1.7;
    font-weight: 400;
}

[data-theme="light"] .workshop-lead {
    color: rgba(0, 0, 0, 0.85);
}

/* ===================================
   SPECIAL BOXES
   =================================== */

.welcome-message {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.welcome-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.welcome-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: left;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.welcome-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 1.05rem;
    color: var(--text-color);
}

.big-picture {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--info-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.big-picture h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--info-color);
    text-align: left;
    font-weight: 700;
    line-height: 1.4;
}

.big-picture-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.reassurance-box {
    display: flex;
    gap: 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.reassurance-icon {
    font-size: 3rem;
    color: var(--success-color);
    flex-shrink: 0;
}

.reassurance-content h3 {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.reassurance-content ul {
    list-style: none;
    padding: 0;
}

.reassurance-content li {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.reassurance-content li i {
    color: var(--success-color);
    margin-top: 0.25rem;
}

.reassurance-highlight {
    background: rgba(16, 185, 129, 0.15);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    border-left: 3px solid var(--success-color);
}

/* ===================================
   PAGE POSSIBILITIES
   =================================== */

.page-possibilities {
    margin: 3rem 0;
}

.page-possibilities h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.possibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.possibility-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.possibility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.possibility-card:hover::before {
    transform: scaleX(1);
}

.possibility-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.possibility-card:hover .card-icon {
    transform: scale(1.15);
}

.possibility-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.possibility-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* ===================================
   EXAMPLES SHOWCASE
   =================================== */

.examples-showcase {
    margin: 3rem 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.example-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-img i {
    font-size: 3rem;
}

.example-info {
    padding: 1.5rem;
}

.example-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.example-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   TIME COMMITMENT
   =================================== */

.time-commitment {
    display: flex;
    gap: 2rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.time-icon {
    font-size: 3rem;
    color: var(--warning-color);
    flex-shrink: 0;
}

.time-content h3 {
    font-size: 1.5rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.time-content p {
    line-height: 1.8;
    font-size: 1.05rem;
}

.time-note {
    background: rgba(245, 158, 11, 0.15);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 3px solid var(--warning-color);
    font-weight: 500;
}

/* ===================================
   TECH CARDS (HTML, CSS, JS)
   =================================== */

.tech-cards {
    display: grid;
    gap: 2.5rem;
    margin: 3rem 0;
}

.tech-card {
    background: var(--card-background);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

[data-theme="dark"] .tech-card {
    background: linear-gradient(135deg, 
        rgba(30, 35, 50, 0.85) 0%,
        rgba(20, 25, 40, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.tech-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15);
    border-width: 3px;
}

.tech-card:hover::before {
    opacity: 1;
    height: 6px;
}

.html-card {
    border-color: rgba(227, 76, 38, 0.4);
    background: linear-gradient(135deg, 
        var(--card-background) 0%, 
        rgba(227, 76, 38, 0.05) 100%);
}

[data-theme="dark"] .html-card {
    background: linear-gradient(135deg,
        rgba(227, 76, 38, 0.15) 0%,
        rgba(30, 35, 50, 0.9) 50%,
        rgba(255, 95, 65, 0.12) 100%);
    border: 2px solid rgba(255, 95, 65, 0.5);
    box-shadow: 
        0 8px 32px rgba(227, 76, 38, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 95, 65, 0.3),
        inset 0 -1px 0 rgba(227, 76, 38, 0.2);
}

.html-card::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(227, 76, 38, 1), 
        rgba(255, 111, 79, 0.8), 
        transparent);
    box-shadow: 0 0 30px rgba(227, 76, 38, 0.8);
}

.html-card:hover {
    border-color: rgba(227, 76, 38, 0.8);
    box-shadow: 
        0 20px 60px rgba(227, 76, 38, 0.3),
        0 8px 24px rgba(227, 76, 38, 0.2),
        inset 0 0 100px rgba(227, 76, 38, 0.05);
}

.css-card {
    border-color: rgba(38, 77, 228, 0.4);
    background: linear-gradient(135deg, 
        var(--card-background) 0%, 
        rgba(38, 77, 228, 0.05) 100%);
}

[data-theme="dark"] .css-card {
    background: linear-gradient(135deg,
        rgba(99, 125, 255, 0.15) 0%,
        rgba(30, 35, 50, 0.9) 50%,
        rgba(56, 189, 248, 0.12) 100%);
    border: 2px solid rgba(99, 125, 255, 0.6);
    box-shadow: 
        0 8px 32px rgba(99, 125, 255, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(99, 125, 255, 0.4),
        inset 0 -1px 0 rgba(56, 189, 248, 0.2);
}

.css-card::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(38, 77, 228, 1), 
        rgba(99, 125, 255, 0.8), 
        transparent);
    box-shadow: 0 0 30px rgba(38, 77, 228, 0.8);
}

.css-card:hover {
    border-color: rgba(38, 77, 228, 0.8);
    box-shadow: 
        0 20px 60px rgba(38, 77, 228, 0.3),
        0 8px 24px rgba(38, 77, 228, 0.2),
        inset 0 0 100px rgba(38, 77, 228, 0.05);
}

.js-card {
    border-color: rgba(240, 201, 87, 0.4);
    background: linear-gradient(135deg, 
        var(--card-background) 0%, 
        rgba(240, 201, 87, 0.05) 100%);
}

[data-theme="dark"] .js-card {
    background: linear-gradient(135deg,
        rgba(240, 201, 87, 0.18) 0%,
        rgba(30, 35, 50, 0.9) 50%,
        rgba(251, 191, 36, 0.15) 100%);
    border: 2px solid rgba(251, 191, 36, 0.6);
    box-shadow: 
        0 8px 32px rgba(240, 201, 87, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(251, 191, 36, 0.4),
        inset 0 -1px 0 rgba(240, 201, 87, 0.3);
}

.js-card::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(240, 201, 87, 1), 
        rgba(255, 223, 117, 0.8), 
        transparent);
    box-shadow: 0 0 30px rgba(240, 201, 87, 0.8);
}

.js-card:hover {
    border-color: rgba(240, 201, 87, 0.8);
    box-shadow: 
        0 20px 60px rgba(240, 201, 87, 0.35),
        0 8px 24px rgba(240, 201, 87, 0.25),
        inset 0 0 100px rgba(240, 201, 87, 0.05);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.tech-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.4), 
        transparent);
}

.html-card .tech-header {
    background: linear-gradient(135deg, 
        rgba(227, 76, 38, 0.06) 0%, 
        rgba(255, 111, 79, 0.08) 50%,
        rgba(227, 76, 38, 0.06) 100%);
    border-bottom-color: rgba(227, 76, 38, 0.15);
}

[data-theme="dark"] .html-card .tech-header {
    background: linear-gradient(90deg,
        rgba(227, 76, 38, 0.3) 0%,
        rgba(255, 95, 65, 0.25) 50%,
        rgba(227, 76, 38, 0.3) 100%);
    border-bottom: 2px solid rgba(255, 95, 65, 0.4);
    box-shadow: 0 4px 20px rgba(227, 76, 38, 0.2);
}

.html-card .tech-header::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(227, 76, 38, 0.5), 
        transparent);
}

.css-card .tech-header {
    background: linear-gradient(135deg, 
        rgba(38, 77, 228, 0.06) 0%, 
        rgba(99, 125, 255, 0.08) 50%,
        rgba(38, 77, 228, 0.06) 100%);
    border-bottom-color: rgba(38, 77, 228, 0.15);
}

[data-theme="dark"] .css-card .tech-header {
    background: linear-gradient(90deg,
        rgba(99, 125, 255, 0.3) 0%,
        rgba(56, 189, 248, 0.25) 50%,
        rgba(99, 125, 255, 0.3) 100%);
    border-bottom: 2px solid rgba(99, 125, 255, 0.5);
    box-shadow: 0 4px 20px rgba(99, 125, 255, 0.2);
}

.css-card .tech-header::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(38, 77, 228, 0.5), 
        transparent);
}

.js-card .tech-header {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.07) 0%, 
        rgba(240, 201, 87, 0.1) 50%,
        rgba(212, 175, 55, 0.07) 100%);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .js-card .tech-header {
    background: linear-gradient(90deg,
        rgba(240, 201, 87, 0.35) 0%,
        rgba(251, 191, 36, 0.3) 50%,
        rgba(240, 201, 87, 0.35) 100%);
    border-bottom: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 20px rgba(240, 201, 87, 0.25);
}

.js-card .tech-header::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.6), 
        transparent);
}

.tech-icon {
    font-size: 4rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.tech-card:hover .tech-icon {
    transform: scale(1.25) rotate(10deg);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.html-card:hover .tech-icon {
    filter: drop-shadow(0 8px 20px rgba(227, 76, 38, 0.6));
}

.css-card:hover .tech-icon {
    filter: drop-shadow(0 8px 20px rgba(38, 77, 228, 0.6));
}

.js-card:hover .tech-icon {
    filter: drop-shadow(0 8px 20px rgba(240, 201, 87, 0.6));
}

.html-card .tech-icon { 
    color: #e34c26;
    animation: float 3s ease-in-out infinite;
}

[data-theme="dark"] .html-card .tech-icon {
    color: #ff6347;
    filter: drop-shadow(0 0 20px rgba(255, 99, 71, 0.8));
}

.css-card .tech-icon { 
    color: #264de4;
    animation: float 3s ease-in-out infinite 0.5s;
}

[data-theme="dark"] .css-card .tech-icon {
    color: #6495ed;
    filter: drop-shadow(0 0 20px rgba(100, 149, 237, 0.8));
}

.js-card .tech-icon { 
    color: #f0da57;
    animation: float 3s ease-in-out infinite 1s;
}

[data-theme="dark"] .js-card .tech-icon {
    color: #ffd700;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

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

.tech-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

[data-theme="dark"] .tech-header h3 {
    color: rgba(255, 255, 255, 0.95);
}

.optional-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-content {
    padding: 2rem;
}

.simple-explanation,
.analogy-box,
.code-example,
.when-useful {
    margin-bottom: 2rem;
}

.simple-explanation h4,
.analogy-box h4,
.code-example h4,
.when-useful h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-color);
}

.simple-explanation h4 i,
.analogy-box h4 i,
.code-example h4 i,
.when-useful h4 i {
    font-size: 1.3rem;
}

.simple-explanation p,
.analogy-box p,
.code-intro,
.when-useful p {
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.95;
}

[data-theme="dark"] .simple-explanation p,
[data-theme="dark"] .analogy-box p,
[data-theme="dark"] .code-intro,
[data-theme="dark"] .when-useful p {
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
}

.analogy-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.08));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--info-color);
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .analogy-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.25));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border-left: 4px solid rgba(96, 165, 250, 1);
}

.analogy-box h4 {
    margin-bottom: 1rem;
    color: var(--info-color) !important;
}

.analogy-box h4 i {
    color: var(--info-color);
}

.analogy-box p {
    font-size: 1.05rem;
    line-height: 1.9;
}

.analogy-box strong,
.simple-explanation strong {
    color: var(--accent-color);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.code-example {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

[data-theme="dark"] .code-example {
    background: rgba(15, 20, 35, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.code-example pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.code-example code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a78bfa;
}

.code-breakdown {
    background: rgba(99, 102, 241, 0.05);
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .code-breakdown {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.code-breakdown p {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.code-breakdown ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.code-breakdown li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-breakdown code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--accent-color);
    font-weight: 600;
}

.when-useful ul {
    list-style: none;
    padding: 0;
}

.when-useful li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--success-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.when-useful li i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.try-it-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.try-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed, var(--accent-color));
}

.try-it-btn i {
    font-size: 1.2rem;
}

.reassurance-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.reassurance-note i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.reassurance-note p {
    line-height: 1.7;
    margin: 0;
}

.reassurance-note.special-note {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
}

.reassurance-note.special-note i {
    color: var(--info-color);
}

/* Light mode adjustments for tech cards */
[data-theme="light"] .tech-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tech-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

[data-theme="light"] .html-card .tech-header {
    background: linear-gradient(135deg, rgba(227, 76, 38, 0.03), rgba(227, 76, 38, 0.08));
}

[data-theme="light"] .css-card .tech-header {
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.03), rgba(38, 77, 228, 0.08));
}

[data-theme="light"] .js-card .tech-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.12));
}

[data-theme="light"] .analogy-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(96, 165, 250, 0.05));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .analogy-box strong,
[data-theme="light"] .simple-explanation strong {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: #6366f1;
}

[data-theme="light"] .code-example {
    background: #f9fafb;
}

[data-theme="light"] .code-example pre {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="light"] .code-breakdown {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .reassurance-note {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
}

[data-theme="light"] .reassurance-note.special-note {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
}

[data-theme="light"] .when-useful li {
    background: rgba(16, 185, 129, 0.05);
}

/* RTL adjustments for tech cards */
.rtl .tech-header {
    flex-direction: row-reverse;
}

.rtl .optional-badge {
    margin-left: 0;
    margin-right: 0.75rem;
}

.rtl .simple-explanation h4,
.rtl .analogy-box h4,
.rtl .code-example h4,
.rtl .when-useful h4 {
    flex-direction: row-reverse;
}

.rtl .analogy-box {
    border-left: none;
    border-right: 4px solid var(--info-color);
}

.rtl .analogy-box::before {
    left: auto;
    right: 0;
}

.rtl .when-useful li {
    border-left: none;
    border-right: 3px solid var(--success-color);
}

.rtl .reassurance-note {
    flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-cards {
        gap: 2rem;
    }
    
    .tech-header {
        padding: 1.5rem;
        flex-wrap: wrap;
    }
    
    .tech-icon {
        font-size: 2.5rem;
    }
    
    .tech-header h3 {
        font-size: 1.3rem;
    }
    
    .tech-content {
        padding: 1.5rem;
    }
    
    .code-example pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   KEY MESSAGE BOX
   =================================== */

.key-message-box {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
}

.key-icon {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.key-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.key-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ==============================================
   CREATIVE WORKFLOW VISUALIZATION
   Person with Thoughts → AI Agent → Beautiful Pages
   ============================================== */

.creative-workflow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin: 4rem auto;
    padding: 3rem 2rem;
    max-width: 1200px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.03) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        rgba(236, 72, 153, 0.03) 100%);
    border-radius: 32px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: visible;
}

[dir="rtl"] .creative-workflow {
    direction: rtl;
}

.creative-workflow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2),
        rgba(168, 85, 247, 0.2),
        rgba(236, 72, 153, 0.2));
    border-radius: 32px;
    opacity: 0;
    animation: border-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ========== PERSON THINKING (LEFT SIDE) ========== */

.person-thinking {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.person-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out backwards;
}

.avatar-circle {
    position: relative;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: float-avatar 3s ease-in-out infinite;
}

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

.avatar-circle i {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.ai-circle {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4),
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.thinking-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    gap: 4px;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thinking-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: thinking-bounce 1.4s ease-in-out infinite;
}

.thinking-indicator span:nth-child(1) { animation-delay: 0s; }
.thinking-indicator span:nth-child(2) { animation-delay: 0.2s; }
.thinking-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.person-label {
    text-align: center;
}

.person-label strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.person-label span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Creative Energy Particles */
.creative-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    pointer-events: none;
}

.energy-particle {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0;
    animation: particle-orbit 9s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.p1 {
    top: 0;
    left: 50%;
    margin-left: -12px;
    animation-delay: 0s;
}

.p2 {
    bottom: 5%;
    right: 10%;
    animation-delay: 3s;
}

.p3 {
    bottom: 5%;
    left: 10%;
    animation-delay: 6s;
}

@keyframes particle-orbit {
    0%, 100% {
        opacity: 0;
        transform: scale(0.4) translateY(10px);
    }
    10% {
        opacity: 0.9;
        transform: scale(1) translateY(0);
    }
    15%, 85% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px);
    }
    90% {
        opacity: 0.9;
        transform: scale(1) translateY(0);
    }
}

.thinking-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    gap: 4px;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

/* Remove old styles */
.brain-waves,
.idea-orbit,
.orbit-icon,
.thought-cloud {
    display: none;
}

/* ========== TRANSFER FLOW (CENTER) ========== */

.transfer-flow {
    position: relative;
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-path {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

.transfer-flow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(99, 102, 241, 0.3) 20%,
        rgba(168, 85, 247, 0.5) 50%,
        rgba(236, 72, 153, 0.3) 80%,
        transparent
    );
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 4px;
}

.transfer-flow::after {
    content: '▶';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(168, 85, 247, 0.6);
    font-size: 1.5rem;
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }
}

/* RTL Support */
[dir="rtl"] .transfer-flow::before {
    background: linear-gradient(
        to left,
        transparent,
        rgba(99, 102, 241, 0.3) 20%,
        rgba(168, 85, 247, 0.5) 50%,
        rgba(236, 72, 153, 0.3) 80%,
        transparent
    );
}

[dir="rtl"] .transfer-flow::after {
    content: '◀';
    right: auto;
    left: -10px;
}

@keyframes arrow-pulse-rtl {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(-5px);
    }
}

[dir="rtl"] .transfer-flow::after {
    animation: arrow-pulse-rtl 2s ease-in-out infinite;
}

.idea-packet {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.idea-packet i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.packet-1 {
    top: 20%;
    left: -10%;
    animation: travel-packet 3s ease-in-out 0s infinite;
}

.packet-2 {
    top: 45%;
    left: -10%;
    animation: travel-packet 3s ease-in-out 1s infinite;
}

.packet-3 {
    top: 70%;
    left: -10%;
    animation: travel-packet 3s ease-in-out 2s infinite;
}

@keyframes travel-packet {
    0% {
        left: -10%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 50%;
        transform: translateX(-50%) scale(1) rotate(180deg);
        box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 110%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(360deg);
    }
}

@keyframes travel-packet-rtl {
    0% {
        left: 110%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 50%;
        transform: translateX(-50%) scale(1) rotate(180deg);
        box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
    }
    90% {
        opacity: 1;
    }
    100% {
        left: -10%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(360deg);
    }
}

[dir="rtl"] .packet-1,
[dir="rtl"] .packet-2,
[dir="rtl"] .packet-3 {
    animation-name: travel-packet-rtl;
}

[dir="rtl"] .packet-1 {
    left: 110%;
}

[dir="rtl"] .packet-2 {
    left: 110%;
}

[dir="rtl"] .packet-3 {
    left: 110%;
}

@keyframes travel-packet-mobile {
    0% {
        top: 0%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 1;
    }
    50% {
        top: 50%;
        transform: translateX(-50%) scale(1) rotate(180deg);
        box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(360deg);
    }
}

/* ========== AI CREATOR (RIGHT SIDE) ========== */

.ai-creator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.ai-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.creation-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    animation: spark-burst 2s ease-out infinite;
    box-shadow: 0 0 10px #fbbf24;
}

.spark:nth-child(1) {
    top: 10%;
    left: 50%;
    animation-delay: 0s;
}

.spark:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 0.5s;
}

.spark:nth-child(3) {
    bottom: 10%;
    left: 50%;
    animation-delay: 1s;
}

.spark:nth-child(4) {
    top: 50%;
    left: 10%;
    animation-delay: 1.5s;
}

@keyframes spark-burst {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-30px);
    }
}

/* Beautiful Pages Showcase */
.page-showcase {
    position: absolute;
    top: -30px;
    right: -60px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    perspective: 1000px;
}

[dir="rtl"] .page-showcase {
    right: auto;
    left: -60px;
}

.mini-page {
    width: 110px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.18);
    opacity: 0;
    transform: translateX(50px) rotateY(-20deg);
    animation: page-appear 6s ease-in-out infinite;
}

.page-1 {
    animation-delay: 0s;
}

.page-2 {
    animation-delay: 2s;
}

.page-3 {
    animation-delay: 4s;
}

@keyframes page-appear {
    0%, 100% {
        opacity: 0;
        transform: translateX(50px) rotateY(-20deg) scale(0.9);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    10%, 80% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
        box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    }
}

.page-browser-bar {
    height: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    padding: 0 5px;
    gap: 2px;
}

.page-browser-bar span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.page-content {
    padding: 8px;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.content-block {
    background: linear-gradient(90deg, var(--primary-color), var(--phase-2-color));
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0;
    transform-origin: left;
    animation: draw-content 1s ease-out forwards;
}

.content-block.header {
    height: 8px;
    width: 80%;
    animation-delay: 0.3s;
}

.content-block.text {
    height: 4px;
    width: 100%;
    animation-delay: 0.5s;
}

.content-block.text.short {
    width: 60%;
    animation-delay: 0.7s;
}

.content-block.image {
    height: 30px;
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    animation-delay: 0.9s;
}

.content-block.image.wide {
    height: 24px;
}

@keyframes draw-content {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 0.7;
        transform: scaleX(1);
    }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 5px;
}

.grid-item {
    height: 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
    border-radius: 3px;
    opacity: 0;
    animation: draw-content 1s ease-out forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.7s; }
.grid-item:nth-child(2) { animation-delay: 0.9s; }
.grid-item:nth-child(3) { animation-delay: 1.1s; }

/* Dark Mode */
[data-theme="dark"] .creative-workflow {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%,
        rgba(168, 85, 247, 0.12) 50%,
        rgba(236, 72, 153, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .mini-page {
    background: rgba(30, 35, 50, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .page-content {
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.8) 0%, rgba(30, 35, 50, 0.8) 100%);
}

/* Responsive */
@media (max-width: 968px) {
    .creative-workflow {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
        padding: 2rem 1rem;
        margin: 2rem auto;
        overflow: visible;
    }
    
    .transfer-flow {
        order: 2;
        width: 120px;
        height: 200px;
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: visible;
    }
    
    .transfer-flow::before {
        width: 4px;
        height: 100%;
        background: linear-gradient(
            to bottom,
            transparent,
            rgba(99, 102, 241, 0.3) 20%,
            rgba(168, 85, 247, 0.5) 50%,
            rgba(236, 72, 153, 0.3) 80%,
            transparent
        );
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .transfer-flow::after {
        content: '▼';
        bottom: 10px;
        left: 50%;
        top: auto;
        right: auto;
        transform: translateX(-50%);
    }
    
    @keyframes arrow-pulse {
        0%, 100% {
            opacity: 0.4;
            transform: translateX(-50%) translateY(0);
        }
        50% {
            opacity: 1;
            transform: translateX(-50%) translateY(5px);
        }
    }
    
    .idea-packet {
        width: 40px !important;
        height: 40px !important;
    }
    
    .idea-packet i {
        font-size: 1.2rem !important;
    }
    
    .packet-1,
    .packet-2,
    .packet-3 {
        left: 50% !important;
    }
    
    .packet-1 { 
        animation: travel-packet-mobile 3s ease-in-out 0s infinite !important;
    }
    .packet-2 { 
        animation: travel-packet-mobile 3s ease-in-out 1s infinite !important;
    }
    .packet-3 { 
        animation: travel-packet-mobile 3s ease-in-out 2s infinite !important;
    }
    
    .person-thinking {
        order: 1;
        padding: 1rem;
    }
    
    .ai-creator {
        order: 3;
        padding: 1rem;
    }
    
    .creative-energy {
        width: 180px;
        height: 180px;
    }
    
    .energy-particle {
        font-size: 1.2rem;
    }
    
    .page-showcase {
        position: static;
        flex-direction: row;
        margin-top: 1.5rem;
        gap: 0.4rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .mini-page {
        width: 90px;
        transform: none !important;
        flex-shrink: 0;
    }
    
    .page-browser-bar {
        height: 14px;
        padding: 0 4px;
        gap: 2px;
    }
    
    .page-browser-bar span {
        width: 3px;
        height: 3px;
    }
    
    .page-content {
        padding: 6px;
    }
    
    .content-block.header {
        height: 6px;
    }
    
    .content-block.text {
        height: 3px;
    }
    
    .content-block.image {
        height: 24px;
    }
    
    .content-block.image.wide {
        height: 20px;
    }
    
    .content-grid {
        gap: 3px;
        margin-top: 4px;
    }
    
    .grid-item {
        height: 14px;
    }
    
    .idea-packet {
        width: 40px;
        height: 40px;
    }
    
    .idea-packet i {
        font-size: 1.2rem;
    }
    
    .avatar-circle {
        width: 100px;
        height: 100px;
    }
    
    .avatar-circle i {
        font-size: 3rem;
    }
    
    .creation-sparks {
        display: none;
    }
    
    .person-label strong {
        font-size: 1.2rem;
    }
    
    .person-label span {
        font-size: 0.85rem;
    }
    
    @keyframes page-appear {
        0%, 100% {
            opacity: 0;
            transform: translateY(20px) scale(0.9);
        }
        10%, 80% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

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

/* Hide old designs */
.transformation-circle,
.architect-builder {
    display: none;
}

/* Transform Nodes (Input/Output) */
.transform-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    animation: fadeInScale 0.8s ease-out backwards;
}

.input-node {
    animation-delay: 0.2s;
}

.output-node {
    animation-delay: 0.8s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.node-circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.input-node .node-circle {
    animation-delay: 0s;
}

.output-node .node-circle {
    animation-delay: 1.5s;
}

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

.circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(10px);
    animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

.node-circle i {
    font-size: 3.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.node-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.node-label strong {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.node-label span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Thought Bubbles (Input Side) */
.thought-bubbles {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 100px;
    pointer-events: none;
}

.bubble {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: float-bubble 3s ease-in-out infinite;
}

.bubble:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    left: 75%;
    animation-delay: 2s;
}

@keyframes float-bubble {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-40px) scale(1);
    }
    90% {
        opacity: 0;
    }
}

/* Code Snippets (Output Side) */
.code-snippets {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    pointer-events: none;
}

.snippet {
    position: absolute;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    opacity: 0;
    animation: float-snippet 3s ease-in-out infinite;
}

.snippet:nth-child(1) {
    left: 10%;
    animation-delay: 0.5s;
}

.snippet:nth-child(2) {
    left: 45%;
    animation-delay: 1.5s;
}

.snippet:nth-child(3) {
    left: 75%;
    animation-delay: 2.5s;
}

@keyframes float-snippet {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.7);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translateY(30px) rotate(5deg) scale(1);
    }
    90% {
        opacity: 0;
    }
}

/* Center: Transformation Process */
.transform-center {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transform-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orbit-path {
    fill: none;
    stroke: rgba(99, 102, 241, 0.2);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: rotate-orbit 20s linear infinite;
}

@keyframes rotate-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.code-particles .particle {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.8));
}

.ai-processor {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3),
                inset 0 2px 8px rgba(255, 255, 255, 0.1);
    animation: pulse-processor 2s ease-in-out infinite;
}

@keyframes pulse-processor {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3),
                    inset 0 2px 8px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5),
                    inset 0 2px 12px rgba(255, 255, 255, 0.2);
    }
}

.ai-processor i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

.processing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.processing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce-dot 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.processing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.processing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-dot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Old transformation-circle styles removed - now using creative-workflow */

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

@keyframes ripple {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(2);
    }
}

/* Vertical animation for mobile */
@media (max-width: 768px) {
    @keyframes buildingFlow {
        0% {
            opacity: 0;
            transform: scale(0.3) translateY(-20px);
        }
        15% {
            opacity: 0.3;
            transform: scale(0.6) translateY(-10px);
        }
        30% {
            opacity: 1;
            transform: scale(1) translateY(0);
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
        }
        50% {
            opacity: 1;
            transform: scale(1.2) translateY(5px);
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.9);
        }
        70% {
            opacity: 0.7;
            transform: scale(0.9) translateY(10px);
        }
        100% {
            opacity: 0;
            transform: scale(0.3) translateY(20px);
        }
    }
}

/* ===================================
   PREREQUISITES SECTION
   =================================== */

.prerequisites-section {
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.02) 0%, 
        transparent 50%, 
        rgba(139, 92, 246, 0.02) 100%
    );
    position: relative;
    padding: 4rem 0;
}

.prerequisites-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--phase-1-color), transparent);
    opacity: 0.3;
}

.setup-checklist-header {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.setup-checklist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerHeader 3s infinite;
}

@keyframes shimmerHeader {
    0% { left: -100%; }
    100% { left: 200%; }
}

.setup-checklist-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.setup-checklist-header h3 i {
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    animation: bounceIcon 2s ease-in-out infinite;
}

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

.setup-checklist-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.prerequisites-list {
    margin-top: 3rem;
}

.prereq-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.prereq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--phase-1-color), var(--phase-2-color), var(--phase-3-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.prereq-card:hover::before {
    opacity: 1;
}

.prereq-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2),
                0 0 0 1px rgba(99, 102, 241, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.prereq-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.03));
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.prereq-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.prereq-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.rtl .checkbox-container {
    margin-right: 0;
    margin-left: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.08), 
                rgba(255, 255, 255, 0.04));
    border: 2.5px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.checkbox-label::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.checkbox-label::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: rgba(139, 92, 246, 0.7);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3),
                inset 0 2px 6px rgba(255, 255, 255, 0.15);
}

.checkbox-label:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

.checkbox-label i {
    display: none;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    animation: checkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes checkPop {
    0% { 
        transform: scale(0) rotate(-45deg); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.4) rotate(15deg); 
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-color: var(--success-color);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5),
                0 0 0 4px rgba(16, 185, 129, 0.15),
                inset 0 2px 6px rgba(255, 255, 255, 0.25);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label::before {
    opacity: 0.8;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label::after {
    opacity: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label i {
    display: block;
}

.prereq-title {
    flex: 1;
}

.prereq-title h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.status-badge i {
    font-size: 1rem;
}

.status-badge.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-badge.success:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-badge.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-badge.info:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.25));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.status-badge.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-badge.warning:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.25));
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.prereq-content {
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

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

.prereq-description {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.prereq-description p {
    margin-bottom: 1rem;
}

.installation-steps,
.steps-list {
    margin: 1.5rem 0;
}

.step-card,
.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    padding-left: 2.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.step-card::before,
.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, var(--phase-1-color), var(--phase-2-color), var(--phase-3-color));
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.step-card:hover,
.step-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.step-card:hover::before,
.step-item:hover::before {
    width: 6px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.step-number,
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.step-number::after,
.step-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.step-card:hover .step-number,
.step-item:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.step-card:hover .step-number::after,
.step-item:hover .step-icon::after {
    opacity: 0.6;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.step-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.step-content kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0.4rem 0.85rem;
    margin: 0 0.2rem;
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.12) 0%, 
                rgba(255, 255, 255, 0.06) 50%,
                rgba(0, 0, 0, 0.15) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    border-bottom-width: 3px;
    border-radius: 8px;
    font-family: 'SF Pro', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #c4b5fd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(99, 102, 241, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

/* Light mode kbd styling */
body:not(.dark-mode) .step-content kbd {
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.95) 0%, 
                rgba(240, 240, 245, 0.95) 50%,
                rgba(230, 230, 240, 0.95) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-bottom-width: 3px;
    border-bottom-color: rgba(79, 70, 229, 0.5);
    color: #4c1d95;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12),
                0 4px 8px rgba(99, 102, 241, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .step-content kbd:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #5b21b6;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15),
                0 6px 12px rgba(99, 102, 241, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.step-content kbd:hover {
    transform: translateY(-1px);
    border-bottom-width: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25),
                0 6px 12px rgba(99, 102, 241, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #e0d5ff;
}

.step-content kbd:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.step-content code {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.05);
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Links within prerequisites */
.prereq-content a:not(.btn) {
    color: var(--phase-1-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.prereq-content a:not(.btn):hover {
    color: var(--phase-2-color);
    border-bottom-color: var(--phase-2-color);
    padding-bottom: 4px;
}

/* Buttons within prerequisites */
.prereq-content .btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prereq-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.prereq-content .btn i {
    transition: transform 0.3s ease;
}

.prereq-content .btn:hover i {
    transform: translateX(3px);
}

/* Prerequisites details section */
.prereq-details {
    margin-top: 2rem;
}

.prereq-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prereq-details h4 i {
    color: var(--phase-1-color);
    font-size: 1.2rem;
}

/* Prerequisite card entrance animation */
.prereq-card {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.prereq-card:nth-child(1) { animation-delay: 0.1s; }
.prereq-card:nth-child(2) { animation-delay: 0.2s; }
.prereq-card:nth-child(3) { animation-delay: 0.3s; }
.prereq-card:nth-child(4) { animation-delay: 0.4s; }
.prereq-card:nth-child(5) { animation-delay: 0.5s; }

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

/* ===================================
   WORK IN PROGRESS SECTION
   =================================== */

.wip-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.03) 0%, 
        rgba(139, 92, 246, 0.03) 100%
    );
}

.wip-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.wip-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

.wip-icon i {
    font-size: 4rem;
    color: white;
}

.wip-container h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wip-lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.wip-phases {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wip-phases h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.wip-phase-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.wip-phase-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.03));
    border-radius: 12px;
    border-left: 4px solid var(--phase-1-color);
    transition: all 0.3s ease;
}

.wip-phase-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.06));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.wip-phase-item .phase-number,
.wip-phase-item .phase-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.wip-phase-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.wip-cta {
    margin-top: 3rem;
}

.wip-cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wip-container h2 {
        font-size: 2rem;
    }
    
    .wip-phases {
        padding: 2rem 1.5rem;
    }
    
    .wip-phase-item {
        padding: 1rem;
    }
}

/* ===================================
   TRY IT BUTTONS IN TECH CARDS
   =================================== */

.try-it-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--phase-2-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.try-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.try-it-btn i {
    font-size: 1.1rem;
}

/* Different colors for each tech */
.html-card .try-it-btn {
    background: linear-gradient(135deg, #e34c26, #f06529);
    box-shadow: 0 4px 15px rgba(227, 76, 38, 0.3);
}

.html-card .try-it-btn:hover {
    box-shadow: 0 6px 20px rgba(227, 76, 38, 0.4);
}

.css-card .try-it-btn {
    background: linear-gradient(135deg, #264de4, #2965f1);
    box-shadow: 0 4px 15px rgba(38, 77, 228, 0.3);
}

.css-card .try-it-btn:hover {
    box-shadow: 0 6px 20px rgba(38, 77, 228, 0.4);
}

.js-card .try-it-btn {
    background: linear-gradient(135deg, #f0db4f, #f7df1e);
    color: #323330;
    box-shadow: 0 4px 15px rgba(240, 219, 79, 0.3);
}

.js-card .try-it-btn:hover {
    box-shadow: 0 6px 20px rgba(240, 219, 79, 0.4);
}

/* ===================================
   TRY IT SECTION & PLAYGROUND BUTTON
   =================================== */

.try-it-section {
    margin: 3rem 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 auto 1.5rem auto;
    display: block;
    width: fit-content;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    animation: bounce-subtle 2s ease-in-out infinite;
}

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

.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.playground-card {
    background: linear-gradient(135deg, var(--card-bg), var(--card-bg));
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 2.5rem 1.5rem 3rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
                inset 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.playground-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.playground-card:hover::before {
    opacity: 1;
}

.playground-card > * {
    position: relative;
    z-index: 1;
}

.playground-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25),
                0 0 0 4px rgba(99, 102, 241, 0.1);
}

.playground-card:active {
    transform: translateY(-6px) scale(1.02);
}

.playground-card .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--phase-1-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2),
                inset 0 -2px 8px rgba(99, 102, 241, 0.1);
    position: relative;
}

.playground-card .card-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.playground-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4),
                inset 0 -2px 8px rgba(99, 102, 241, 0.2);
}

.playground-card:hover .card-icon::after {
    opacity: 0.6;
}

.playground-card .card-icon.html-color {
    background: linear-gradient(135deg, rgba(227, 76, 38, 0.2), rgba(227, 76, 38, 0.15));
    color: #e34c26;
    box-shadow: 0 8px 20px rgba(227, 76, 38, 0.25),
                inset 0 -2px 8px rgba(227, 76, 38, 0.15);
}

.playground-card:hover .card-icon.html-color {
    box-shadow: 0 12px 30px rgba(227, 76, 38, 0.5),
                inset 0 -2px 8px rgba(227, 76, 38, 0.2);
}

.playground-card .card-icon.html-color::after {
    background: linear-gradient(135deg, #e34c26, #ff6b35);
}

.playground-card .card-icon.css-color {
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.2), rgba(38, 77, 228, 0.15));
    color: #264de4;
    box-shadow: 0 8px 20px rgba(38, 77, 228, 0.25),
                inset 0 -2px 8px rgba(38, 77, 228, 0.15);
}

.playground-card:hover .card-icon.css-color {
    box-shadow: 0 12px 30px rgba(38, 77, 228, 0.5),
                inset 0 -2px 8px rgba(38, 77, 228, 0.2);
}

.playground-card .card-icon.css-color::after {
    background: linear-gradient(135deg, #264de4, #5b8bf5);
}

.playground-card .card-icon.js-color {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.15));
    color: #d4af37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25),
                inset 0 -2px 8px rgba(212, 175, 55, 0.15);
}

.playground-card:hover .card-icon.js-color {
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5),
                inset 0 -2px 8px rgba(212, 175, 55, 0.2);
}

.playground-card .card-icon.js-color::after {
    background: linear-gradient(135deg, #d4af37, #f0c75e);
}

.playground-card h4 {
    margin: 0.5rem 0 0 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.playground-card:hover h4 {
    color: var(--phase-1-color);
    transform: scale(1.05);
}

.playground-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.playground-card:hover p {
    color: var(--text-primary);
}

/* Add click indicator */
.card-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
    pointer-events: none;
}

.playground-card:hover .card-badge {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
    }
}

.playground-card::after {
    display: none;
}

.btn-playground {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--phase-1-color), var(--phase-2-color));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-playground:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-playground i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.playground-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* ===================================
   PLAYGROUND MODAL
   =================================== */

.playground-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow: auto;
    padding: 1rem;
}

.playground-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.playground-container {
    width: 100%;
    max-width: 1600px;
    height: 90vh;
    max-height: 90vh;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.playground-header {
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.playground-title-section h2 {
    margin: 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.playground-intro {
    margin: 0.5rem 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.playground-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auto-run-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.auto-run-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auto-run-toggle input:checked + .toggle-slider {
    background: rgba(16, 185, 129, 0.8);
}

.auto-run-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.run-btn {
    padding: 0.4rem 0.9rem;
    background: rgba(16, 185, 129, 0.9);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.run-btn:hover {
    background: rgba(16, 185, 129, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.run-btn:active {
    transform: translateY(0);
}

.run-btn.running {
    background: rgba(239, 68, 68, 0.9);
}

.run-btn.running i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fullscreen-btn {
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.playground-modal.fullscreen {
    padding: 0;
}

.playground-modal.fullscreen .playground-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
}

.playground-close {
    position: relative;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Playground Tabs */
.playground-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.playground-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playground-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.playground-tab.active {
    background: var(--bg-color);
    color: var(--primary-color);
    font-weight: 600;
}

.playground-tab i {
    font-size: 1.25rem;
}

/* Playground Body */
.playground-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.playground-editors {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.editor-section {
    display: none;
    flex-direction: column;
    height: 100%;
}

.editor-section.active {
    display: flex;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.editor-header span {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-header i {
    font-size: 1.25rem;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.reset-btn,
.refresh-btn,
.copy-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.reset-btn:hover,
.refresh-btn:hover,
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--success-color);
    color: white;
}

.copy-btn.copied i::before {
    content: "\f00c"; /* fa-check */
}

.refresh-btn.spinning i {
    animation: spin 0.5s linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.code-editor {
    flex: 1;
    width: 100%;
    padding: 1.25rem;
    background: #1e1e1e;
    border: none;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    tab-size: 2;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

/* Code syntax highlighting hints via color */
.code-editor::placeholder {
    color: #6a9955;
    font-style: italic;
}

.code-editor::-webkit-scrollbar {
    width: 10px;
}

.code-editor::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.code-editor::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.code-editor::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Preview Section */
.playground-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.preview-header span {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.console-toggle {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.console-toggle:hover,
.console-toggle.active {
    background: rgba(255, 255, 255, 0.15);
}

.console-toggle.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#previewFrame {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
    transition: all 0.3s ease;
}

.preview-content.console-open #previewFrame {
    flex: 0.6;
}

.console-panel {
    display: none;
    flex-direction: column;
    height: 40%;
    min-height: 150px;
    background: #1e1e1e;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.console-panel.active {
    display: flex;
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-header span {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
}

.clear-console {
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.clear-console:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.console-output {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d4d4d4;
}

.console-message {
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
    border-left: 3px solid transparent;
    border-radius: 2px;
}

.console-message.log {
    border-left-color: #3b82f6;
    color: #d4d4d4;
}

.console-message.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.console-message.warn {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}

.console-message.info {
    border-left-color: #10b981;
    color: #86efac;
}

.console-empty {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Playground Footer */
.playground-footer {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.playground-footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.template-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.template-dropdown {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.2s ease;
}

.template-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
}

.template-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.playground-tips {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.playground-tips i {
    color: var(--warning-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.playground-tips kbd {
    padding: 0.2rem 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
}

.playground-shortcuts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.shortcut kbd {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    pointer-events: none;
}

.toast {
    background: white;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Toast Types */
.toast.success {
    border-left: 4px solid #10b981;
}

.toast.success i {
    color: #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.error i {
    color: #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.warning i {
    color: #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.info i {
    color: #3b82f6;
}

/* Dark mode adjustments */
body.dark-mode .toast,
[data-theme="dark"] .toast {
    background: rgba(30, 35, 50, 0.95);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ===========================================
   CONFIRM MODAL
   =========================================== */

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

[data-theme="dark"] .confirm-modal {
    background: rgba(30, 35, 50, 0.98);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .confirm-modal-title h3 {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .confirm-modal-body {
    color: rgba(255, 255, 255, 0.8);
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-header {
    padding: 2rem 2rem 1.25rem 2rem;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.confirm-modal-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

.confirm-modal-icon.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.confirm-modal-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.confirm-modal-icon.info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    color: #6366f1;
}

.confirm-modal-title {
    flex: 1;
    padding-top: 0.5rem;
}

.confirm-modal-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.confirm-modal-body {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.confirm-modal-footer {
    padding: 1.25rem 2rem 2rem 2rem;
    border-top: none;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.confirm-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-modal-btn:active {
    transform: translateY(0);
}

.confirm-modal-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

[data-theme="dark"] .confirm-modal-btn.cancel {
    background: rgba(55, 65, 81, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.confirm-modal-btn.cancel:hover {
    background: #e5e7eb;
}

[data-theme="dark"] .confirm-modal-btn.cancel:hover {
    background: rgba(75, 85, 99, 0.5);
}

.confirm-modal-btn.confirm {
    background: #6366f1;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.confirm-modal-btn.confirm:hover {
    background: #4f46e5;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.confirm-modal-btn.confirm.danger {
    background: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.confirm-modal-btn.confirm.danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.confirm-modal-btn.confirm.warning {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.confirm-modal-btn.confirm.warning:hover {
    background: #d97706;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.confirm-modal-btn.confirm.success {
    background: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.confirm-modal-btn.confirm.success:hover {
    background: #059669;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Dark mode adjustments */
body.dark-mode .confirm-modal {
    background: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .confirm-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .confirm-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .confirm-modal {
        margin: 1rem;
    }
    
    .confirm-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .confirm-modal-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .confirm-modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        flex-direction: column-reverse;
    }
    
    .confirm-modal-btn {
        width: 100%;
    }
    
    .confirm-modal-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .confirm-modal-title h3 {
        font-size: 1.25rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Sidebar - Hide by default on tablets */
    .sidebar-mobile-toggle {
        display: block;
    }
    
    .workshop-sidebar {
        transform: translateX(-100%);
    }
    
    .workshop-sidebar.active {
        transform: translateX(0);
    }
    
    [dir="rtl"] .workshop-sidebar {
        transform: translateX(100%);
    }
    
    [dir="rtl"] .workshop-sidebar.active {
        transform: translateX(0);
    }
    
    /* Main Content - Full width */
    .workshop-content {
        margin-left: 0;
        padding: 5rem 0 4rem;
    }
    
    [dir="rtl"] .workshop-content {
        margin-right: 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header */
    .workshop-main-title {
        font-size: 2.5rem;
    }
    
    .workshop-lead {
        font-size: 1.15rem;
    }
    
    /* Welcome & Info Boxes */
    .welcome-message,
    .reassurance-box,
    .time-commitment,
    .key-message-box {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .welcome-icon,
    .reassurance-icon,
    .time-icon,
    .key-icon {
        font-size: 2.5rem;
    }
    
    /* Grids */
    .possibilities-grid,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Architect Builder */
    .architect-builder {
        flex-direction: column;
        gap: 1rem;
    }
    
    .architect-builder .arrow {
        transform: rotate(90deg);
    }
    
    /* RTL arrow should point down on mobile (no horizontal flip) */
    .rtl .architect-builder .arrow {
        transform: rotate(90deg);
    }
    
    /* Adjust animations for vertical layout */
    .transfer-animation {
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        width: auto;
    }
    
    @keyframes codeTransfer {
        0% {
            opacity: 0;
            top: 0;
            transform: translateX(0) scale(0.5) rotate(0deg);
        }
        20% {
            opacity: 1;
            transform: translateX(-10px) scale(1) rotate(360deg);
        }
        50% {
            top: 50%;
            transform: translateX(0) scale(1.2) rotate(720deg);
            color: var(--phase-2-color);
        }
        80% {
            opacity: 1;
            top: 100%;
            transform: translateX(10px) scale(1) rotate(1080deg);
        }
        100% {
            opacity: 0;
            top: 100%;
            transform: translateX(0) scale(0.5) rotate(1440deg);
        }
    }
    
    .thinking-bubbles {
        top: -25px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .working-gears {
        top: auto;
        bottom: -30px;
        right: 50%;
        transform: translateX(50%);
    }
    
    /* Playground - Stack vertically */
    .playground-container {
        width: 95%;
        max-height: 92vh;
    }
    
    .playground-body {
        grid-template-columns: 1fr;
        grid-template-rows: 45% 55%;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .playground-editors {
        min-height: 250px;
    }
    
    .playground-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }
    
    .playground-title-section h2 {
        font-size: 1.5rem;
    }
    
    .playground-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .playground-tabs {
        padding: 0.75rem 1rem 0;
        gap: 0.25rem;
    }
    
    .playground-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .playground-footer {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .playground-footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    /* Global spacing */
    .workshop-section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Touch-friendly interactions */
    * {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    }
    
    a, .sidebar-link, .playground-tab {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    /* Navigation */
    .nav-brand {
        flex: 1;
    }
    
    /* Sidebar - Full width overlay */
    .workshop-sidebar {
        width: 85%;
        max-width: 320px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Progress Bar */
    .progress-bar-container {
        height: 3px;
    }
    
    /* Header */
    .workshop-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }
    
    .workshop-main-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .workshop-lead {
        font-size: 1rem;
    }
    
    /* Welcome & Info Boxes */
    .welcome-message,
    .reassurance-box,
    .time-commitment,
    .key-message-box {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .welcome-icon,
    .reassurance-icon,
    .time-icon,
    .key-icon {
        font-size: 2rem;
    }
    
    .welcome-text h2,
    .reassurance-content h3,
    .time-content h3,
    .key-content h3 {
        font-size: 1.25rem;
    }
    
    .big-picture h2 {
        font-size: 1.15rem;
    }
    
    .big-picture-text {
        font-size: 1rem;
    }
    
    /* Grids - Single column on mobile */
    .possibilities-grid,
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .possibilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .possibility-card,
    .example-card {
        padding: 1.25rem;
    }
    
    .possibility-card .card-icon,
    .tech-icon {
        font-size: 2rem;
    }
    
    /* Tech Cards */
    .tech-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .tech-header h3 {
        font-size: 1.25rem;
    }
    
    .tech-content {
        padding: 1.25rem;
    }
    
    /* Architect Builder */
    .architect-builder {
        padding: 1rem;
        flex-direction: column;
    }
    
    .architect-builder .arrow {
        transform: rotate(90deg);
        margin: 1.5rem 0;
    }
    
    .rtl .architect-builder .arrow {
        transform: rotate(90deg) scaleX(-1);
    }
    
    .architect-builder .role i {
        font-size: 1.5rem;
    }
    
    /* Mobile - vertical data stream */
    .data-stream {
        height: 100%;
    }
    
    .blueprint-packet {
        animation: travelBlueprintVertical 4s ease-in-out infinite;
    }
    
    @keyframes travelBlueprintVertical {
        0% {
            top: -50px;
            opacity: 0;
            transform: translateX(-50%) scale(0.8) rotateY(0deg);
        }
        15% {
            opacity: 1;
            transform: translateX(-50%) scale(1) rotateY(0deg);
        }
        85% {
            opacity: 1;
            transform: translateX(-50%) scale(1) rotateY(360deg);
        }
        100% {
            top: calc(100% + 50px);
            opacity: 0;
            transform: translateX(-50%) scale(0.8) rotateY(360deg);
        }
    }
    
    /* Mobile - center particles above icon */
    .idea-particles {
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .rtl .idea-particles {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Mobile - center sparkles above icon */
    .build-sparkles {
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Mobile - position pages below AI icon */
    .creating-pages {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -100px;
        transform: translateX(-50%);
    }
    
    .rtl .creating-pages {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Code Examples */
    .code-example pre {
        padding: 0.75rem;
        font-size: 0.85rem;
        overflow-x: auto;
    }
    
    .code-example code {
        font-size: 0.8rem;
    }
    
    /* Buttons */
    .btn-playground {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
    
    .btn-playground i {
        font-size: 1.5rem;
    }
    
    /* Playground Modal - Optimized for mobile */
    .playground-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .playground-header {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .playground-title-section h2 {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .playground-title-section h2 i {
        font-size: 1rem;
    }
    
    .playground-intro {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .playground-controls {
        width: 100%;
        gap: 0.5rem;
    }
    
    .auto-run-toggle {
        gap: 0.4rem;
    }
    
    .toggle-label {
        font-size: 0.85rem;
    }
    
    .toggle-slider {
        width: 40px;
        height: 22px;
    }
    
    .toggle-slider::before {
        width: 16px;
        height: 16px;
    }
    
    .auto-run-toggle input:checked + .toggle-slider::before {
        transform: translateX(18px);
    }
    
    .run-btn,
    .fullscreen-btn,
    .playground-close {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .playground-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .playground-tabs {
        padding: 0.5rem 0.75rem 0;
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .playground-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .playground-tab {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        white-space: nowrap;
        border-radius: 6px 6px 0 0;
    }
    
    .playground-tab i {
        display: none;
    }
    
    .playground-body {
        grid-template-rows: 40% 60%;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .playground-editors {
        min-height: 200px;
    }
    
    .code-editor {
        font-size: 12px;
        padding: 0.6rem;
        min-height: 150px;
        line-height: 1.5;
    }
    
    .editor-header,
    .preview-header {
        padding: 0.6rem 0.75rem;
    }
    
    .editor-header h3,
    .preview-header h3 {
        font-size: 0.85rem;
    }
    
    .editor-actions,
    .preview-actions {
        gap: 0.35rem;
    }
    
    .reset-btn,
    .copy-btn,
    .refresh-btn,
    .console-toggle {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .playground-footer {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }
    
    .template-selector {
        flex: 1;
    }
    
    .template-selector select {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        width: 100%;
    }
    
    .keyboard-shortcuts {
        display: none;
    }
    
    .console-panel {
        max-height: 100px;
        font-size: 0.75rem;
    }
    
    .console-message {
        padding: 0.35rem 0.5rem;
    }
    
    /* Time Badges */
    .time-badge {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .workshop-main-title {
        font-size: 1.75rem;
    }
    
    .workshop-lead {
        font-size: 0.95rem;
    }
    
    .welcome-message,
    .reassurance-box,
    .time-commitment,
    .key-message-box,
    .big-picture {
        padding: 1rem;
    }
    
    .tech-header,
    .tech-content,
    .possibility-card {
        padding: 1rem;
    }
    
    .btn-playground {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Playground - Ultra compact for small screens */
    .playground-header {
        padding: 0.75rem;
    }
    
    .playground-title-section h2 {
        font-size: 1rem;
    }
    
    .playground-intro {
        font-size: 0.75rem;
        display: none; /* Hide description on very small screens */
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
    
    .run-btn,
    .fullscreen-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .playground-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .playground-tabs {
        padding: 0.4rem 0.5rem 0;
    }
    
    .playground-tab {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .playground-body {
        grid-template-rows: 35% 65%;
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .code-editor {
        font-size: 11px;
        padding: 0.5rem;
        min-height: 120px;
    }
    
    .editor-header,
    .preview-header {
        padding: 0.5rem;
    }
    
    .editor-header h3,
    .preview-header h3 {
        font-size: 0.8rem;
    }
    
    .reset-btn,
    .copy-btn,
    .refresh-btn,
    .console-toggle {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .playground-footer {
        padding: 0.5rem;
        flex-direction: column;
    }
    
    .template-selector select {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .console-panel {
        max-height: 80px;
        font-size: 0.7rem;
    }
    
    .console-message {
        padding: 0.25rem 0.4rem;
    }
}

/* Light Mode Overrides */
[data-theme="light"] .playground-modal {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .playground-container {
    background: #ffffff;
}

[data-theme="light"] .playground-tabs,
[data-theme="light"] .playground-footer {
    background: #f3f4f6;
}

[data-theme="light"] .playground-editors,
[data-theme="light"] .playground-preview {
    background: #f9fafb;
}

[data-theme="light"] .editor-header,
[data-theme="light"] .preview-header {
    background: #e5e7eb;
    border-bottom-color: #d1d5db;
}

[data-theme="light"] .code-editor {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

[data-theme="light"] .code-editor::placeholder {
    color: #6b7280;
}

[data-theme="light"] .playground-tab {
    color: #6b7280;
}

[data-theme="light"] .playground-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

[data-theme="light"] .playground-tab.active {
    background: #ffffff;
    color: var(--primary-color);
}

[data-theme="light"] .reset-btn,
[data-theme="light"] .refresh-btn,
[data-theme="light"] .copy-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
    color: #1f2937;
}

[data-theme="light"] .reset-btn:hover,
[data-theme="light"] .refresh-btn:hover,
[data-theme="light"] .copy-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .copy-btn.copied {
    background: var(--success-color);
    color: white;
}

[data-theme="light"] .shortcut kbd {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

/* ===================================
   SETUP COMPLETE BOX & CHECKLIST
   =================================== */

.setup-complete-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--success-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.setup-complete-box .complete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.setup-complete-box .complete-icon i {
    font-size: 2rem;
    color: white;
}

.setup-complete-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--success-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checklist-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    background: var(--bg-primary);
    border: 1px solid transparent;
}

.summary-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.summary-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-md);
    cursor: pointer;
    accent-color: var(--success-color);
    flex-shrink: 0;
}

.summary-item label {
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
    font-weight: 500;
}

.summary-item input[type="checkbox"]:checked + label {
    color: var(--success-color);
    text-decoration: line-through;
    opacity: 0.7;
}

.complete-message {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--success-color);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    border: 1px dashed var(--success-color);
}

.complete-message i {
    margin-right: var(--spacing-sm);
    font-size: 1.3rem;
}

/* Next Step Box Styling */
.next-step-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    padding-bottom: calc(var(--spacing-xl) + 1rem);
    margin: var(--spacing-xl) 0;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: visible;
}

.next-step-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.next-step-box h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--phase-2-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.next-step-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.next-step-box .btn {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    text-wrap: auto;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.next-step-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Light mode adjustments */
[data-theme="light"] .setup-complete-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
    border-color: #059669;
}

[data-theme="light"] .checklist-summary {
    background: white;
    border-color: #e5e7eb;
}

[data-theme="light"] .summary-item {
    background: #f9fafb;
}

[data-theme="light"] .summary-item:hover {
    background: #f3f4f6;
    border-color: #6366f1;
}

[data-theme="light"] .complete-message {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .next-step-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
}

/* ==================== META EXAMPLE SECTION ==================== */

/* ==================== HISTORICAL CONTEXT & TIMELINE ==================== */

.history-section {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.12) 0%, 
        rgba(139, 92, 246, 0.12) 50%, 
        rgba(99, 102, 241, 0.08) 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 50%);
    pointer-events: none;
}

.history-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.history-header i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.history-header h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.timeline-story {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timeline-story::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.8) 0%, 
        rgba(139, 92, 246, 0.6) 50%,
        rgba(99, 102, 241, 0.3) 100%);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.timeline-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    border: 4px solid var(--card-background);
    transition: all 0.3s ease;
    margin-top: -5px;
}

.timeline-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
}

.timeline-item:nth-child(1) .timeline-icon {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.timeline-item:nth-child(2) .timeline-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.timeline-item:nth-child(3) .timeline-icon {
    background: linear-gradient(135deg, #d4af37, #f59e0b);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.timeline-item:nth-child(4) .timeline-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 8px 28px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.timeline-content h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    text-align: justify !important;
    font-size: 1.05rem;
    hyphens: auto;
    word-spacing: 0.05em;
}

.timeline-content code {
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.archive-link {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(59, 130, 246, 0.12);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.archive-link:hover {
    background: rgba(59, 130, 246, 0.18);
    border-left-width: 6px;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.archive-link i {
    color: #3b82f6;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.archive-link:hover i {
    transform: translateX(3px);
}

.archive-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ==================== SEPARATION DIAGRAM (TRIO) ==================== */

.separation-diagram {
    background: var(--card-background);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
}

.separation-diagram h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.separation-diagram > p {
    text-align: center;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.trio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.trio-card {
    background: var(--card-background);
    border: 3px solid;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .trio-card {
    background: linear-gradient(135deg,
        rgba(30, 35, 50, 0.9) 0%,
        rgba(20, 25, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trio-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.trio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.html-trio {
    border-color: #e34c26;
    color: #e34c26;
}

[data-theme="dark"] .html-trio {
    border-color: rgba(255, 95, 65, 0.8);
    color: #ff6347;
    background: linear-gradient(135deg,
        rgba(227, 76, 38, 0.2) 0%,
        rgba(30, 35, 50, 0.9) 50%,
        rgba(255, 95, 65, 0.15) 100%);
    box-shadow: 
        0 8px 32px rgba(227, 76, 38, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 95, 65, 0.3);
}

.html-trio:hover {
    background: linear-gradient(135deg, rgba(227, 76, 38, 0.05), rgba(227, 76, 38, 0.1));
}

.css-trio {
    border-color: #264de4;
    color: #264de4;
}

[data-theme="dark"] .css-trio {
    border-color: rgba(99, 125, 255, 0.8);
    color: #6495ed;
    background: linear-gradient(135deg,
        rgba(99, 125, 255, 0.2) 0%,
        rgba(30, 35, 50, 0.9) 50%,
        rgba(56, 189, 248, 0.15) 100%);
    box-shadow: 
        0 8px 32px rgba(99, 125, 255, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(99, 125, 255, 0.4);
}

.css-trio:hover {
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.05), rgba(38, 77, 228, 0.1));
}

.js-trio {
    border-color: #d4af37;
    color: #d4af37;
}

[data-theme="dark"] .js-trio {
    border-color: rgba(251, 191, 36, 0.8);
    color: #ffd700;
    background: linear-gradient(135deg,
        rgba(240, 201, 87, 0.22) 0%,
        rgba(30, 35, 50, 0.9) 50%,
        rgba(251, 191, 36, 0.18) 100%);
    box-shadow: 
        0 8px 32px rgba(240, 201, 87, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(251, 191, 36, 0.4);
}

.js-trio:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.15));
}

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

[data-theme="dark"] .html-trio .trio-icon {
    filter: drop-shadow(0 0 20px rgba(255, 99, 71, 0.8));
}

[data-theme="dark"] .css-trio .trio-icon {
    filter: drop-shadow(0 0 20px rgba(100, 149, 237, 0.8));
}

[data-theme="dark"] .js-trio .trio-icon {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.trio-card h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0.5rem 0;
    text-align: center !important;
}

.trio-role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.html-trio .trio-role {
    background: rgba(227, 76, 38, 0.1);
    color: #e34c26;
}

[data-theme="dark"] .html-trio .trio-role {
    background: rgba(255, 95, 65, 0.25);
    color: #ff6347;
    box-shadow: 0 0 15px rgba(255, 95, 65, 0.3);
}

.css-trio .trio-role {
    background: rgba(38, 77, 228, 0.1);
    color: #264de4;
}

[data-theme="dark"] .css-trio .trio-role {
    background: rgba(99, 125, 255, 0.25);
    color: #6495ed;
    box-shadow: 0 0 15px rgba(99, 125, 255, 0.3);
}

.js-trio .trio-role {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

[data-theme="dark"] .js-trio .trio-role {
    background: rgba(240, 201, 87, 0.3);
    color: #ffd700;
    box-shadow: 0 0 15px rgba(240, 201, 87, 0.3);
}

.trio-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.trio-responsibilities li {
    padding: 0.6rem 1rem;
    margin: 0.5rem 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="dark"] .trio-responsibilities li {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .trio-responsibilities li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.trio-responsibilities li:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.trio-responsibilities i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.html-trio .trio-responsibilities i {
    color: #e34c26;
}

.css-trio .trio-responsibilities i {
    color: #264de4;
}

.js-trio .trio-responsibilities i {
    color: #d4af37;
}

.evolution-note {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-left: 4px solid var(--success-color);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.evolution-note i {
    color: var(--success-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.evolution-note p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* Light mode adjustments */
[data-theme="light"] .history-section {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.04) 0%, 
        rgba(139, 92, 246, 0.04) 50%, 
        rgba(99, 102, 241, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .history-section::before {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 50%);
}

[data-theme="light"] .history-header {
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .timeline-story::before {
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.6) 0%, 
        rgba(139, 92, 246, 0.4) 50%,
        rgba(99, 102, 241, 0.2) 100%);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .timeline-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 2px 12px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .timeline-item:hover .timeline-icon {
    box-shadow: 
        0 4px 16px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .timeline-content {
    background: white;
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .timeline-content:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .trio-card {
    background: white;
}

[data-theme="light"] .trio-responsibilities li {
    background: #f9fafb;
}

[data-theme="light"] .trio-responsibilities li:hover {
    background: #f3f4f6;
}

[data-theme="light"] .separation-diagram {
    background: #fafafa;
}

[data-theme="light"] .evolution-note {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-story::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        padding-left: 0;
        align-items: center;
        text-align: center;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-width: 3px;
        margin-top: 0;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content h4 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .timeline-content p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    [dir="rtl"] .timeline-content p {
        text-align: right;
    }
    
    .history-section {
        padding: 2rem 1.5rem;
    }
    
    .history-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .history-header h3 {
        font-size: 1.6rem;
    }
    
    .trio-container {
        grid-template-columns: 1fr;
    }
    
    /* Old architect-builder mobile styles removed - using transformation-circle now */
    
    .trio-icon {
        font-size: 3rem;
    }
}

/* ==================== META EXAMPLE SECTION ==================== */

.meta-example {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.meta-example h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.meta-example h2 i {
    color: #fbbf24;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.meta-example > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.meta-example-content {
    max-width: 900px;
    margin: 0 auto;
}

.meta-card {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.meta-icon {
    font-size: 3rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.meta-icon i {
    animation: float 3s ease-in-out infinite;
}

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

.meta-card h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.meta-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.meta-highlights {
    margin: 2rem 0;
}

.meta-highlight {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.meta-highlight:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateX(5px);
}

.meta-highlight i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.meta-highlight span {
    font-size: 1.05rem;
    color: var(--text-color);
}

.meta-message {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px dashed rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.meta-message p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.meta-message strong {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Light mode adjustments for meta example */
[data-theme="light"] .meta-example {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(59, 130, 246, 0.03));
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .meta-card {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .meta-highlight {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: #059669;
}

[data-theme="light"] .meta-highlight:hover {
    background: rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .meta-message {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.08));
    border-color: rgba(251, 191, 36, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .meta-example {
        padding: 2rem 1.5rem;
    }
    
    .meta-example h2 {
        font-size: 1.5rem;
    }
    
    .meta-card {
        padding: 1.5rem;
    }
    
    .meta-icon {
        font-size: 2.5rem;
    }
    
    .meta-highlight {
        padding: 0.75rem 1rem;
    }
    
    .meta-message {
        padding: 1.5rem;
    }
    
    .meta-message p {
        font-size: 1rem;
    }
}

/* Continue in next part due to length... */

/* ===================================
   Fixed Controls Container
   =================================== */
.fixed-controls {
  position: fixed;
  bottom: var(--spacing-xl, 2rem);
  right: var(--spacing-xl, 2rem);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

[dir="rtl"] .fixed-controls {
  right: auto;
  left: var(--spacing-xl, 2rem);
}

@media (max-width: 768px) {
  .fixed-controls {
    bottom: var(--spacing-lg, 1.5rem);
    right: var(--spacing-lg, 1.5rem);
  }
}

/* ===================================
   Theme Toggle - Sliding Switch
   =================================== */
.theme-toggle {
  width: 80px;
  height: 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 2px solid var(--accent-primary, #6366f1);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(255, 193, 7, 0.3);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.theme-toggle:hover::before {
  opacity: 0.1;
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.5),
    0 0 20px rgba(139, 92, 246, 0.3);
  z-index: 2;
}

[data-theme="light"] .theme-toggle-slider {
  left: calc(100% - 35px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 
    0 4px 12px rgba(251, 191, 36, 0.5),
    0 0 20px rgba(251, 191, 36, 0.3);
}

.theme-toggle-slider .moon-icon {
  display: block;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 16px;
  height: 16px;
  padding-bottom: 1px;
}

.theme-toggle-slider .sun-icon-slider {
  display: none;
  position: relative;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  width: 16px;
  height: 16px;
  padding-bottom: 1px;
}

[data-theme="dark"] .theme-toggle-slider .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-slider .sun-icon-slider {
  display: none;
}

[data-theme="light"] .theme-toggle-slider .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-slider .sun-icon-slider {
  display: block;
}

.theme-toggle:hover .theme-toggle-slider {
  transform: scale(1.1);
}

.theme-toggle:active .theme-toggle-slider {
  transform: scale(0.95);
}

/* Text Justification */
.analogy-box p,
.simple-explanation p,
.reassurance-note p,
.module-intro,
.tech-content p,
.code-intro,
.code-breakdown p,
.hero-description,
.workshop-intro,
.section-intro p {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    text-align: left !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    text-align: right !important;
}

/* ===================================
   MOBILE STEP ITEM & CONTENT FIXES
   =================================== */
@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        padding: 1rem;
        padding-left: 1rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .step-item:hover {
        transform: none;
    }
    
    .step-number,
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .step-content kbd {
        min-width: 24px;
        height: 26px;
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .prompt-example,
    .code-example {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin: 0.75rem 0;
    }
    
    .prompt-example code,
    .code-example code {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 0.8rem;
    }
    
    .steps-list {
        padding: 0;
    }
    
    .module-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .module-header h3 {
        font-size: 1.1rem;
    }
    
    .module-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .step-item {
        padding: 0.75rem;
    }
    
    .step-content h5 {
        font-size: 0.95rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
    
    .prompt-example,
    .code-example {
        padding: 0.5rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }
}
