/* ===== WEEK PAGE REDESIGN =====
   Structure: Sticky step nav at top → Content sections as "steps"
   Key layout: Main content (left ~65%) + Reference sidebar (right ~35%)
   on desktop. Single column on mobile with sidebar sections collapsed.
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary-purple: #667eea;
    --primary-dark: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-yellow: #fbbf24;
    --accent-blue: #3b82f6;
    --success: #10b981;
    --text-dark: #1a1a2e;
    --text-body: #37352f;
    --text-light: #787774;
    --bg-light: #f5f4f0;
    --bg-white: #ffffff;
    --border-light: #e5e5e0;
}

/* ===== TOP NAV BAR ===== */
.week-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.week-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav-back {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--primary-purple); }

.week-indicator {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== STEP NAV (horizontal tabs below top nav) ===== */
.step-nav {
    background: var(--gradient-primary);
    border-bottom: none;
    position: sticky;
    top: 48px; /* below the nav bar */
    z-index: 190;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.step-nav::-webkit-scrollbar { display: none; }

.step-nav-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 0;
}

.step-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.step-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.step-tab.active {
    color: #ffffff;
    border-bottom-color: #fbbf24;
    background: rgba(255, 255, 255, 0.08);
}

.step-tab.completed {
    color: rgba(255, 255, 255, 0.9);
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.step-tab.active .step-num {
    background: #fbbf24;
    color: #1a1a2e;
}

.step-tab.completed .step-num {
    background: var(--success);
    color: white;
}

/* ===== COMPACT WEEK HERO ===== */
.week-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 48px 24px 40px;
    text-align: center;
    margin-bottom: 0;
}

.week-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.week-hero-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.capability-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.week-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    align-items: start;
}

/* ===== MAIN CONTENT (left column) ===== */
.main-content {
    min-width: 0; /* prevent grid blowout */
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    display: none;
}

/* ===== SECTION HEADING PANEL ===== */
.section-heading-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--gradient-primary);
    color: white;
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* ===== WIZARD STEPPER ===== */
.content-section.wizard-active {
    display: block;
    animation: wizardFadeIn 0.3s ease;
}

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

.geek-corner-standalone,
.week-navigation,
.complete-week-container {
    display: none;
}

.geek-corner-standalone.wizard-visible,
.complete-week-container.wizard-visible {
    display: block;
}

.week-navigation.wizard-visible {
    display: flex;
}

/* Continue / Back button bar */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    gap: 12px;
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.wizard-btn-next {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.wizard-btn-next:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.wizard-btn-back {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.wizard-btn-back:hover {
    background: var(--bg-light);
    color: var(--text-body);
}

/* Step progress indicator */
.step-tab.visited .step-num {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.step-tab.active .step-num {
    background: #fbbf24;
    color: #1e1b4b;
}
    overflow: hidden;
}

.section-heading-panel .section-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.section-heading-panel h2,
.content-section .section-heading-panel h2 {
    font-size: 22px;
    color: white;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.section-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.content-section h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* ===== HELP DROPDOWN (Troubleshooting) ===== */
.help-dropdown {
    margin-top: 32px;
    border: 2px solid #e0e7ff;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.help-dropdown:hover {
    border-color: var(--primary-purple);
}

.help-dropdown > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    transition: background 0.2s;
}

.help-dropdown > summary::-webkit-details-marker { display: none; }

.help-dropdown > summary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.help-dropdown > summary .help-icon {
    font-size: 22px;
}

.help-dropdown > summary .help-chevron {
    margin-left: auto;
    font-size: 12px;
    color: var(--primary-purple);
    transition: transform 0.2s;
}

.help-dropdown[open] > summary .help-chevron {
    transform: rotate(180deg);
}

.help-dropdown-body {
    padding: 20px 24px 24px;
    border-top: 1px solid #e0e7ff;
}

/* ===== STANDALONE GEEK CORNER SECTION ===== */
.geek-corner-standalone {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.geek-corner-standalone:hover {
    border-color: var(--primary-purple);
}

.geek-corner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.04));
    border-bottom: 1px solid var(--border-light);
}

.geek-corner-header .geek-icon {
    font-size: 26px;
}

.geek-corner-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.geek-corner-header .geek-subtitle {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.geek-corner-body {
    padding: 24px 32px 32px;
}

/* Podcast button styles for consistency */
.podcast-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.podcast-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

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

.podcast-btn-spotify { background: #1DB954; }
.podcast-btn-apple { background: #D56DFB; }

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    font-style: italic;
}

/* ===== CALLOUT BOXES ===== */
.callout {
    padding: 20px 20px 20px 18px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 2px solid;
    font-size: 15px;
    background: #ffffff;
}

.callout-goal { border-color: #d97706; background: linear-gradient(to right, rgba(217, 119, 6, 0.04), transparent); }
.callout-goal strong { color: #92400e; }
.callout-success { border-color: #2563eb; background: linear-gradient(to right, rgba(37, 99, 235, 0.04), transparent); }
.callout-success strong { color: #1e40af; }
.callout-warning { border-color: #dc2626; background: linear-gradient(to right, rgba(220, 38, 38, 0.04), transparent); }
.callout-warning strong { color: #991b1b; }
.callout-info { border-color: #2563eb; background: linear-gradient(to right, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02)); }
.callout-info strong { color: #1e40af; }

/* ===== VIDEO ===== */
.video-container { margin: 24px 0; }

.video-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 16px;
}

.video-icon { font-size: 48px; margin-bottom: 12px; }
.video-placeholder h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 6px; }
.video-placeholder p { color: var(--text-light); margin: 0; }

.video-downloads {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-link {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-body);
    font-size: 13px;
    transition: all 0.2s;
}
.download-link:hover { border-color: var(--primary-purple); }

/* ===== TRACK LAYOUT ===== */
.tracks-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 28px 0;
}

.track-card {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
}

.track-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.track-icon { font-size: 28px; }
.track-header h3 { font-size: 20px; color: var(--text-dark); margin: 0; }

.track-content h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin: 20px 0 10px;
}
.track-content p { font-size: 15px; line-height: 1.7; }

/* ===== TEMPLATE BOXES ===== */
.template-box {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0;
    margin: 16px 0;
    overflow: hidden;
    transition: all 0.2s;
}
.template-box:hover { border-color: var(--primary-purple); }

.template-label {
    background: var(--gradient-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    margin: 0;
}

.template-content {
    background: var(--bg-light);
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
}
.template-content p { margin: 0; }
.template-content strong {
    color: var(--primary-purple);
    background: rgba(102, 126, 234, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* ===== EKO SECTION ===== */
.eko-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
}

.eko-container { color: #78350f; }
.eko-intro { font-size: 17px; font-weight: 600; margin-bottom: 24px; }

.eko-chat-embed {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin: 24px 0;
}

.eko-chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eko-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.eko-chat-header h4 { margin: 0; font-size: 18px; font-weight: 700; }
.eko-chat-header p { margin: 0; font-size: 13px; opacity: 0.9; }

.eko-chat-body { background: var(--bg-light); }

.eko-chat-frame { position: relative; min-height: 500px; background: white; }
.eko-chat-frame iframe { display: block; position: relative; z-index: 2; background: white; }

.eko-starter-prompt {
    padding: 20px 24px;
    background: var(--bg-white);
    border-top: 2px solid var(--border-light);
}
.eko-starter-prompt p { margin: 0 0 10px 0; font-size: 14px; color: var(--text-body); }
.eko-starter-prompt strong { color: var(--text-dark); }

.starter-text {
    background: var(--bg-light);
    padding: 14px;
    border-radius: 8px;
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-top: 6px;
}

.eko-guide { margin-top: 20px; }
.eko-guide h4 { font-size: 16px; color: #78350f; margin-bottom: 10px; }
.eko-guide ul { padding-left: 20px; }
.eko-guide li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }

.eko-prompt-box {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #fbbf24;
}

.eko-prompt-label {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ===== GEEK CORNER (now in sidebar) ===== */
.resources-list { display: flex; flex-direction: column; gap: 10px; }

.resource-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.resource-item:hover { border-color: var(--primary-purple); }

.resource-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
.resource-item summary::-webkit-details-marker { display: none; }

.resource-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.resource-title-block { flex: 1; }
.resource-title-block h4 { font-size: 15px; color: var(--text-dark); margin: 0 0 4px 0; font-weight: 700; }

.resource-type {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.resource-content {
    padding: 12px 16px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
    border-top: 1px solid var(--border-light);
}
.resource-content strong { color: #92400e; }

.resource-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.resource-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* ===== TOOLS ===== */
.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.tool-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
}
.tool-card:hover { border-color: var(--primary-purple); }
.tool-card h4 { font-size: 16px; color: var(--text-dark); margin-bottom: 8px; }

.tool-format {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-card p { font-size: 13px; color: var(--text-body); line-height: 1.5; margin-bottom: 10px; }

.tool-download {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.tool-download:hover { color: var(--primary-dark); }

/* ===== WEEK NAVIGATION (bottom) ===== */
.week-navigation.wizard-visible {
    justify-content: space-between;
    align-items: center;
    padding: 32px 0 20px;
    gap: 16px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-btn.nav-back {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-body);
}
.nav-btn.nav-back:hover { border-color: var(--primary-purple); color: var(--primary-purple); }

.nav-btn.nav-next {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}
.nav-btn.nav-next:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35); }

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-light);
    font-size: 13px;
}

/* ===== POWERED BY BADGE ===== */
.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}
.powered-by:hover {
    opacity: 0.7;
}
.powered-by-logo {
    flex-shrink: 0;
}
.powered-by span {
    font-size: 11px;
    color: var(--text-body);
    letter-spacing: 0.2px;
}
.powered-by strong {
    font-weight: 700;
}

/* ===== TRACK SELECTOR ===== */
.track-selector {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.track-selector-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.track-selector-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.track-selector-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-purple);
    background: var(--bg-white);
    color: var(--primary-purple);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-selector-btn:hover {
    background: rgba(102, 126, 234, 0.05);
}

.track-selector-btn.active {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.track-selector-icon { font-size: 18px; }

/* ===== COPY BUTTON ===== */
.copy-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-prompt-btn:hover { background: var(--primary-dark); }
.copy-prompt-btn.copied { background: var(--success); }

/* ===== COMPLETION SECTION ===== */
.completion-section { margin-top: 40px; margin-bottom: 24px; }

.completion-card {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.completion-card.completion-final {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.completion-icon { font-size: 48px; margin-bottom: 16px; }

.completion-card h2 { font-size: 28px; margin-bottom: 12px; color: white; }
.completion-card p { font-size: 16px; margin-bottom: 24px; opacity: 0.9; }

.complete-week-btn {
    background: white;
    color: var(--primary-purple);
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.complete-week-btn:hover { transform: translateY(-2px); }

/* ===== EKO IFRAME LOADING ===== */
.eko-chat-frame::before {
    content: 'Loading Eko...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 15px;
    z-index: 1;
}
.eko-chat-frame:has(.eko-chat-widget)::before {
    display: none;
}

/* ===== PASSWORD OVERLAY (ensure it works) ===== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.password-modal h2 { font-size: 22px; margin-bottom: 8px; color: var(--text-dark); }
.password-modal p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

.password-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}
.password-input:focus { border-color: var(--primary-purple); }

.password-submit {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.password-submit:hover { transform: translateY(-1px); }

.password-error {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
}
.password-error.show { display: block; }

.password-back-btn {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
}
.password-back-btn:hover { color: var(--text-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .week-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .password-modal { padding: 28px 24px; }
    .content-section { padding: 28px 20px; }
    .week-hero { padding: 36px 20px 28px; }
    .week-hero-title { font-size: 26px; }
    .week-hero-subtitle { font-size: 16px; }
    .content-section h2 { font-size: 22px; }
    .week-layout { padding: 20px 16px 40px; }
    /* Step nav: fill full width evenly so tabs never overflow off-screen */
    .step-nav-inner { padding: 0; }
    .step-tab {
        flex: 1;
        justify-content: center;
        padding: 11px 6px;
        font-size: 11px;
        text-align: center;
    }
    .step-num { width: 18px; height: 18px; font-size: 10px; }

    .week-navigation { flex-direction: column; }
    .nav-btn { width: 100%; text-align: center; }

    .track-selector-buttons { flex-direction: column; align-items: stretch; }
    .track-selector-btn { justify-content: center; }

    .wizard-nav { flex-wrap: wrap; }
    .wizard-btn { padding: 12px 20px; font-size: 14px; }
    .wizard-btn-next { width: 100%; justify-content: center; order: -1; }
    .wizard-btn-back { width: 100%; justify-content: center; }
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.share-label { font-size: 13px; margin-bottom: 10px; opacity: 0.8; }
.share-btn-small {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 4px;
    font-size: 14px;
}
.share-btn-small:hover { background: rgba(255,255,255,0.25); }

/* ===== IN-PAGE READING PROGRESS BAR ===== */
.week-read-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-dark));
    width: 0%;
    transition: width 0.15s ease-out;
    z-index: 1;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* position: sticky (set above) already creates a positioning context for .week-read-progress-bar */

/* When both active and completed, active (purple) wins over completed (green) */
.step-tab.active.completed .step-num {
    background: var(--primary-purple);
}

/* ===== "I'VE DONE THIS" EXPERIMENT CTA ===== */
.done-experiment-cta {
    margin-top: 28px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(102,126,234,0.06) 0%, rgba(118,75,162,0.06) 100%);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 14px;
    text-align: center;
}

.done-experiment-prompt {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.done-experiment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.done-experiment-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.done-experiment-hint {
    font-size: 13px;
    color: var(--text-light);
    margin: 10px 0 0;
}

.done-experiment-confirmed {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.done-icon { font-size: 32px; flex-shrink: 0; }

.done-experiment-confirmed strong {
    display: block;
    color: var(--success);
    font-size: 16px;
    margin-bottom: 4px;
}

.done-experiment-confirmed p {
    color: var(--text-body);
    font-size: 14px;
    margin: 0;
}

/* ===== BACK TO TOP FLOATING BUTTON ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102,126,234,0.35);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s, transform 0.25s, background 0.2s, box-shadow 0.2s;
    z-index: 500;
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* On mobile: larger tap target */
@media (max-width: 768px) {
    .back-to-top-btn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 16px;
        font-size: 16px;
    }

    .done-experiment-cta {
        padding: 20px 20px;
    }
}

/* ===== COMPLETION BADGE POPUP ===== */
.completion-badge-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.completion-badge-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.badge-content {
    background: white;
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.badge-icon { font-size: 48px; margin-bottom: 12px; }
.badge-content h3 { font-size: 22px; color: var(--text-dark); margin-bottom: 6px; }
.badge-content p { font-size: 15px; color: var(--text-light); }

/* ===== MARK WEEK COMPLETE BUTTON ===== */
.complete-week-container {
    margin: 40px 0 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    border: 2px solid rgba(102,126,234,0.2);
    border-radius: 16px;
    text-align: center;
}

.complete-week-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
}

.complete-week-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.4);
}

.complete-week-btn:active:not(:disabled) {
    transform: translateY(0);
}

.complete-week-btn.completed,
.complete-week-btn:disabled {
    background: var(--success);
    cursor: not-allowed;
    opacity: 0.7;
}

.complete-hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-light);
}


/* ===== EKO DISCLAIMER MODAL ===== */
.eko-disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.eko-disclaimer-overlay.eko-disclaimer-hiding {
    animation: fadeOut 0.3s ease forwards;
}

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

.eko-disclaimer-modal {
    background: white;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

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

.eko-disclaimer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 24px 28px;
    border-radius: 20px 20px 0 0;
}

.eko-disclaimer-avatar {
    font-size: 40px;
    flex-shrink: 0;
    line-height: 1;
}

.eko-disclaimer-header h2 {
    font-size: 20px;
    color: white;
    margin: 0 0 4px;
}

.eko-disclaimer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.eko-disclaimer-body {
    padding: 28px 28px 0;
}

.eko-disclaimer-intro {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 20px;
}

.eko-disclaimer-subhead {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin: 0 0 12px;
}

.eko-disclaimer-list {
    margin: 0 0 20px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eko-disclaimer-list li {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

.eko-disclaimer-closing {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
}

.eko-disclaimer-footer {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eko-disclaimer-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    transition: background 0.2s;
}

.eko-disclaimer-check:hover {
    background: rgba(102, 126, 234, 0.08);
}

.eko-disclaimer-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.eko-disclaimer-check span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.eko-disclaimer-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.eko-disclaimer-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.eko-disclaimer-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

@media (max-width: 600px) {
    .eko-disclaimer-modal { border-radius: 16px; }
    .eko-disclaimer-header { padding: 20px; border-radius: 16px 16px 0 0; }
    .eko-disclaimer-body { padding: 20px 20px 0; }
    .eko-disclaimer-footer { padding: 16px 20px 24px; }
}

/* ===== SURVEY SYSTEM ===== */

/* Survey overlay — blocks page until completed */
.survey-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.survey-overlay.survey-hiding {
    animation: fadeOut 0.3s ease forwards;
}

.survey-card {
    background: var(--bg-white);
    border: 2px solid #e0e7ff;
    border-radius: 20px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 0.3s ease;
}

.survey-card-compact {
    padding: 24px;
}

.survey-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.survey-header-compact {
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.survey-header .survey-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.survey-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.survey-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.survey-question {
    margin-bottom: 24px;
}

.survey-question label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.scale-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.scale-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.scale-btn:hover {
    border-color: var(--primary-purple);
    background: rgba(102, 126, 234, 0.04);
}

.scale-btn.selected {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    padding: 0 4px;
    max-width: 232px;
}

.survey-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
    background: var(--bg-white);
    color: var(--text-body);
    box-sizing: border-box;
}

.survey-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.survey-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    margin-top: 8px;
}

.survey-submit-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.survey-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.optional-tag {
    font-weight: 400;
    color: var(--text-light);
    font-size: 13px;
}

/* Recommend buttons (Yes/No/Maybe for post-survey) */
.recommend-buttons {
    display: flex;
    gap: 10px;
}

.recommend-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-body);
    text-align: center;
}

.recommend-btn:hover {
    border-color: var(--primary-purple);
}

.recommend-btn.selected {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-purple);
}

/* Post-survey card */
.post-survey-card {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #fffdf5, #f5f3ff);
}

/* Survey success state */
.survey-success {
    text-align: center;
    padding: 24px 0;
    animation: wizardFadeIn 0.3s ease;
}

.survey-success .success-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.survey-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.survey-success p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .survey-overlay { padding: 12px; }
    .survey-card { padding: 24px 20px; border-radius: 16px; }
    .survey-card-compact { padding: 20px 16px; }
    .scale-btn { width: 42px; height: 42px; font-size: 14px; }
    .recommend-buttons { flex-direction: column; }
}
