/* ================================================================
   SubjectCoach Writing Course — CSS
   ================================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #1B2A4A;
    background: #FDFAF6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Container */
.wc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.wc-pad-top { padding-top: 32px; padding-bottom: 48px; }

/* Site nav is provided by shared _site_header.php partial (self-contained styles) */

/* ================================================================
   Hero Section
   ================================================================ */
.wc-hero {
    background: linear-gradient(135deg, #1B2A4A 0%, #2C3E6B 60%, #3D5291 100%);
    padding: 60px 20px 72px;
    position: relative;
    overflow: hidden;
}
.wc-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.wc-hero-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.wc-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #FFD54F;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.wc-hero h1 {
    color: #fff;
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 16px;
}
.wc-hero-sub {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 580px;
}
.wc-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.wc-hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}
.wc-stat { text-align: center; }
.wc-stat-num {
    display: block;
    color: #FFD54F;
    font-size: 28px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}
.wc-stat-label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-top: 2px;
}

/* ================================================================
   Buttons
   ================================================================ */
.wc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.wc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.wc-btn-primary { background: #E8553A; color: #fff; }
.wc-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.wc-btn-outline:hover { border-color: #fff; }
.wc-btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.wc-btn-nav {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #E8E4DF;
    background: #fff;
    color: #1B2A4A;
    font-size: 14px;
}
.wc-btn-nav:disabled { opacity: 0.4; cursor: default; transform: none !important; box-shadow: none !important; }
.wc-btn-next { border: none; }
.wc-btn-complete { background: #43A047; color: #fff; border: none; }
.wc-btn-feedback {
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
}
.wc-btn-feedback:disabled { opacity: 0.4; cursor: default; transform: none !important; }

/* ================================================================
   Sections
   ================================================================ */
.wc-section {
    padding: 56px 20px;
}
.wc-section-alt {
    background: #fff;
}
.wc-section h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 8px;
}
.wc-section-sub {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 36px;
}
.wc-cta {
    background: linear-gradient(135deg, #1B2A4A 0%, #3D5291 100%);
    color: #fff;
}
.wc-cta h2 { color: #fff; }

/* ================================================================
   Steps (How it works)
   ================================================================ */
.wc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.wc-step {
    background: #FDFAF6;
    border: 1px solid #E8E4DF;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.wc-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8553A, #FF8A65);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.wc-step h3 { font-size: 18px; margin-bottom: 8px; }
.wc-step p { font-size: 14px; color: #64748b; line-height: 1.6; margin: 0; }

/* ================================================================
   Criteria Grid
   ================================================================ */
.wc-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.wc-criteria-card {
    background: #FDFAF6;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 24px 20px;
}
.wc-criteria-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #E3F2FD;
    color: #1976D2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}
.wc-criteria-card h3 { font-size: 16px; margin-bottom: 6px; }
.wc-criteria-card p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }

/* ================================================================
   Winning Traits
   ================================================================ */
.wc-traits { max-width: 700px; margin: 0 auto; }
.wc-trait {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 12px;
}
.wc-trait-icon {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFF8E1;
    color: #F9A825;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.wc-trait h3 { font-size: 16px; margin-bottom: 4px; }
.wc-trait p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }

/* ================================================================
   Track Cards (Home)
   ================================================================ */
.wc-track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.wc-track-card {
    background: #FDFAF6;
    border: 2px solid #E8E4DF;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: left;
    transition: all 0.2s;
    display: block;
    text-decoration: none !important;
}
.wc-track-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.wc-track-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 16px;
}
.wc-track-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: #64748b;
}
.wc-track-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}
.wc-track-card h3 { font-size: 18px; margin-bottom: 8px; }
.wc-track-card p { font-size: 13px; color: #8A8580; margin: 0; }

/* ================================================================
   Lesson Demo
   ================================================================ */
.wc-lesson-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.wc-demo-step {
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 24px 20px;
}
.wc-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}
.wc-demo-step h3 { font-size: 17px; margin-bottom: 8px; }
.wc-demo-step p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.6; }

/* ================================================================
   FAQ
   ================================================================ */
.wc-faq-list { max-width: 700px; margin: 0 auto; }
.wc-faq {
    background: #FDFAF6;
    border: 1px solid #E8E4DF;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}
.wc-faq summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wc-faq summary::-webkit-details-marker { display: none; }
.wc-faq summary::after { content: '+'; font-size: 20px; color: #94a3b8; font-weight: 300; }
.wc-faq[open] summary::after { content: '-'; }
.wc-faq p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* ================================================================
   Track Hero
   ================================================================ */
.wc-track-hero {
    padding: 32px 20px 40px;
    border-radius: 0 0 24px 24px;
}
.wc-track-hero h1 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.wc-track-hero p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }
.wc-track-hero-icon { font-size: 36px; color: rgba(255,255,255,0.9); margin-bottom: 10px; }

/* ================================================================
   Back Buttons
   ================================================================ */
.wc-back-btn, .wc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 16px;
    transition: all 0.2s;
}
.wc-back-btn:hover, .wc-back-link:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ================================================================
   Lessons List (Track Page)
   ================================================================ */
.wc-lessons-list { margin-bottom: 24px; }
.wc-lesson-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 2px solid #E8E4DF;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 10px;
    transition: all 0.15s;
}
.wc-lesson-card:hover {
    transform: translateX(4px);
    border-color: var(--track-color, #6366f1);
}
.wc-lesson-num {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F5F2EE;
    color: #8A8580;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.wc-lesson-body { flex: 1; }
.wc-lesson-body h3 { font-size: 16px; margin-bottom: 6px; }
.wc-lesson-body p { font-size: 13px; color: #8A8580; margin: 0; line-height: 1.5; }
.wc-lesson-meta { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.wc-lesson-arrow { color: #ccc; font-size: 14px; padding-top: 12px; }
.wc-tag {
    display: inline-block;
    background: #F5F2EE;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #6B6560;
}

/* ================================================================
   Prompts CTA
   ================================================================ */
.wc-prompts-cta {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 14px;
    padding: 22px 20px;
    margin-top: 8px;
}
.wc-prompts-cta h3 { font-size: 16px; margin-bottom: 6px; }
.wc-prompts-cta p { font-size: 13px; color: #6B6560; margin: 0 0 12px; }

/* ================================================================
   Lesson View
   ================================================================ */
.wc-lesson-topbar, .wc-write-topbar {
    background: #fff;
    border-bottom: 1px solid #E8E4DF;
    padding: 12px 0;
    position: sticky;
    top: 65px;
    z-index: 50;
}
.wc-lesson-topbar-inner, .wc-write-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wc-back-link {
    background: none;
    color: #6B6560;
    margin: 0;
    padding: 4px 8px;
    font-size: 13px;
}
.wc-back-link:hover { background: #F5F2EE; color: #1B2A4A; }
.wc-step-dots { display: flex; gap: 5px; }
.wc-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #E8E4DF;
    transition: all 0.3s;
}
.wc-dot.active { width: 24px; background: var(--track-color, #6366f1); }
.wc-step-count { font-size: 12px; color: #8A8580; }

.wc-lesson-main { padding-top: 28px; padding-bottom: 120px; }
.wc-lesson-header { margin-bottom: 24px; }
.wc-lesson-header h1 { font-size: 24px; margin-bottom: 8px; }

/* Content Blocks */
.wc-block {
    border-radius: 16px;
    padding: 24px 22px;
    margin-bottom: 16px;
}
.wc-block-badge, .wc-block-badge-row .wc-block-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.wc-block-badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wc-block h2 { font-size: 20px; margin-bottom: 12px; }
.wc-block-body {
    font-size: 15px;
    color: #3A3530;
    line-height: 1.75;
    white-space: pre-wrap;
}
.wc-block-teach {
    background: #fff;
    border: 1px solid #E8E4DF;
}
.wc-block-teach .wc-block-badge { background: #E3F2FD; color: #1976D2; }
.wc-block-prompt {
    background: #FFF8E1;
    border: 1px solid #FFE082;
}
.wc-block-prompt .wc-block-badge { background: #FFE082; color: #F9A825; }
.wc-block-analysis {
    background: #fff;
    border: 1px solid #E8E4DF;
}
.wc-block-analysis .wc-block-badge { background: #E8F5E9; color: #43A047; }
.wc-block-practice {
    background: #fff;
    border: 2px solid var(--track-color, #E8553A)33;
}
.wc-block-practice .wc-block-badge { background: var(--track-color, #E8553A); color: #fff; }

.wc-prompt-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #8A8580;
    font-style: italic;
}

/* ================================================================
   Structured Writing Sections
   ================================================================ */
.wc-template-guide {
    background: #F9F8F6;
    border: 1px solid #E8E4DF;
    border-left: 4px solid var(--track-color, #6366f1);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.wc-template-guide-header {
    font-weight: 700;
    font-size: 14px;
    color: #1B2A4A;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wc-template-guide-header i { color: var(--track-color, #6366f1); }
.wc-template-guide-text {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.5;
}
.wc-sections { margin-bottom: 16px; }
.wc-section-block {
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.wc-section-block:focus-within {
    border-color: var(--track-color, #6366f1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--track-color, #6366f1) 10%, transparent);
}
.wc-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 10px;
}
.wc-section-num {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.wc-section-info { flex: 1; }
.wc-section-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 3px;
    line-height: 1.3;
}
.wc-section-optional {
    font-weight: 400;
    font-size: 12px;
    color: #8A8580;
}
.wc-section-hint {
    font-size: 13px;
    color: #8A8580;
    line-height: 1.5;
    margin: 0;
}
.wc-section-words {
    font-size: 12px;
    color: #B0ACA7;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 3px;
    transition: color 0.2s;
    font-weight: 600;
}
.wc-section-words.under { color: #E65100; }
.wc-section-words.met { color: #2E7D32; }
.wc-section-words.over { color: #C62828; }
.wc-word-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B6560;
    background: #F0EFFC;
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-weight: 600;
}
.wc-word-guide i { color: #6366f1; font-size: 12px; }
.wc-section-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0 18px 16px;
    border: none;
    font-size: 15px;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    resize: vertical;
    outline: none;
    color: #1B2A4A;
    background: transparent;
}
.wc-section-textarea::placeholder { color: #C5C0BA; }
.wc-writing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    position: sticky;
    bottom: 12px;
    z-index: 40;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.wc-writing-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================================================================
   Writing Area (single textarea — lesson practice steps)
   ================================================================ */
.wc-writing-area { margin-top: 20px; }
.wc-timer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.wc-timer-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #E8E4DF;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.wc-timer-btn.running {
    background: var(--track-color, #E8553A);
    border-color: var(--track-color, #E8553A);
    color: #fff;
}
.wc-timer-display {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #1B2A4A;
}
.wc-timer-reset {
    background: none;
    border: none;
    font-size: 12px;
    color: #8A8580;
    cursor: pointer;
    font-family: inherit;
}
.wc-textarea {
    width: 100%;
    min-height: 220px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #E8E4DF;
    font-size: 15px;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    resize: vertical;
    outline: none;
    color: #1B2A4A;
    background: #fff;
    transition: border-color 0.2s;
}
.wc-textarea:focus { border-color: var(--track-color, #6366f1); }
.wc-textarea-large { min-height: 380px; }
.wc-textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.wc-word-count { font-size: 13px; color: #8A8580; }

/* ================================================================
   Lesson Navigation
   ================================================================ */
.wc-lesson-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #E8E4DF;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 50;
}

/* ================================================================
   Feedback Report
   ================================================================ */
.wc-feedback-area {
    margin-top: 24px;
}
.wc-fb-loading {
    text-align: center;
    padding: 40px 20px;
}
.wc-fb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E8E4DF;
    border-top-color: var(--track-color, #6366f1);
    border-radius: 50%;
    animation: wc-spin 0.7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes wc-spin { to { transform: rotate(360deg); } }

.wc-fb-header {
    background: linear-gradient(135deg, #1B2A4A 0%, #2C3E6B 100%);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    margin-bottom: 16px;
}
.wc-fb-header h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.wc-fb-band { color: rgba(255,255,255,0.7); font-size: 14px; }
.wc-fb-total {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.wc-fb-ring { position: relative; width: 64px; height: 64px; }
.wc-fb-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.wc-fb-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.wc-fb-score-card {
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 12px;
    padding: 14px;
}
.wc-fb-score-label { font-size: 11px; color: #8A8580; margin-bottom: 4px; }
.wc-fb-score-row { display: flex; align-items: center; gap: 6px; }
.wc-fb-score-num { font-size: 22px; font-weight: 700; }
.wc-fb-score-max { font-size: 12px; color: #aaa; }
.wc-fb-bar { flex: 1; height: 4px; background: #EDEAE6; border-radius: 2px; overflow: hidden; margin-left: 6px; }
.wc-fb-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }

.wc-fb-comment {
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: #3A3530;
}
.wc-fb-box {
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
}
.wc-fb-box h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
}
.wc-fb-strengths { background: #E8F5E9; border: 1px solid #A5D6A7; }
.wc-fb-strengths h4 { color: #2E7D32; }
.wc-fb-improvements { background: #FFF3E0; border: 1px solid #FFCC80; }
.wc-fb-improvements h4 { color: #E65100; }
.wc-fb-rewrite { background: #E3F2FD; border: 1px solid #90CAF9; }
.wc-fb-rewrite h4 { color: #1565C0; }
.wc-fb-issues { background: #FFF8E1; border: 1px solid #FFE082; }
.wc-fb-issues h4 { color: #F57F17; }
.wc-fb-traits { background: #F3E5F5; border: 1px solid #CE93D8; }
.wc-fb-traits h4 { color: #6A1B9A; }

.wc-fb-list { list-style: none; padding: 0; margin: 0; }
.wc-fb-list li {
    font-size: 13px;
    color: #3A3530;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.wc-fb-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    font-weight: 700;
}
.wc-fb-issue-item {
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.wc-fb-issue-item .original { color: #C62828; text-decoration: line-through; }
.wc-fb-issue-item .fix { color: #2E7D32; font-weight: 600; }
.wc-fb-issue-item .rule { color: #64748b; font-size: 12px; margin-top: 4px; }

/* ================================================================
   Prompts Page
   ================================================================ */
.wc-prompts-hero {
    background: linear-gradient(135deg, #1B2A4A 0%, #2C3E6B 100%);
    padding: 28px 20px 36px;
    border-radius: 0 0 24px 24px;
}
.wc-prompts-hero h1 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.wc-prompts-hero p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; }
.wc-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 12px;
}
.wc-tab {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E8E4DF;
    background: #fff;
    color: #6B6560;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.wc-tab.active {
    background: var(--tab-color, #E8553A);
    border-color: var(--tab-color, #E8553A);
    color: #fff;
}
.wc-prompt-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.wc-prompt-count { font-size: 13px; color: #8A8580; }
.wc-prompt-search {
    padding: 7px 14px;
    border: 1px solid #E8E4DF;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    width: 200px;
}
.wc-prompt-search:focus { border-color: #6366f1; }
.wc-prompt-item {
    display: block;
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 10px;
    transition: all 0.15s;
}
.wc-prompt-item:hover {
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.wc-prompt-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.wc-prompt-text { font-size: 14px; color: #1B2A4A; line-height: 1.6; margin-bottom: 6px; }

/* ================================================================
   Purchase Page
   ================================================================ */
.wc-purchase-hero {
    background: linear-gradient(135deg, #1B2A4A 0%, #2C3E6B 100%);
    padding: 28px 20px 36px;
    border-radius: 0 0 24px 24px;
}
.wc-purchase-hero h1 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.wc-purchase-hero p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; }
.wc-purchase-card {
    max-width: 520px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 18px;
    padding: 32px 28px;
}
.wc-purchase-plan { margin-bottom: 20px; }
.wc-purchase-plan-badge {
    display: inline-block;
    background: #F0EFFC;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wc-purchase-pricing { margin-bottom: 24px; }
.wc-purchase-original {
    font-size: 14px;
    color: #8A8580;
    margin-bottom: 6px;
}
.wc-purchase-prorated { margin-bottom: 8px; }
.wc-purchase-amount {
    font-size: 36px;
    font-weight: 800;
    color: #1B2A4A;
    letter-spacing: -1px;
}
.wc-purchase-detail {
    font-size: 14px;
    color: #6B6560;
    display: block;
    margin-top: 2px;
}
.wc-purchase-note {
    font-size: 13px;
    color: #8A8580;
    background: #F9F8F6;
    padding: 10px 14px;
    border-radius: 10px;
}
.wc-purchase-includes {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E8E4DF;
}
.wc-purchase-includes h3 {
    font-size: 15px;
    margin-bottom: 10px;
}
.wc-purchase-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wc-purchase-includes li {
    font-size: 14px;
    color: #3A3530;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wc-purchase-includes li i {
    color: #2E7D32;
    font-size: 12px;
    flex-shrink: 0;
}
.wc-purchase-form h3 { font-size: 15px; margin-bottom: 12px; }
#card-element {
    padding: 14px;
    border: 2px solid #E8E4DF;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
#card-element.StripeElement--focus { border-color: #6366f1; }
.wc-card-errors {
    color: #E8553A;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 8px;
}
.wc-btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
}
.wc-btn-full:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.wc-purchase-success {
    text-align: center;
    padding: 20px 0;
}
.wc-purchase-success-icon {
    font-size: 48px;
    color: #2E7D32;
    margin-bottom: 12px;
}
.wc-purchase-success h3 { margin-bottom: 6px; }
.wc-purchase-success p { color: #6B6560; margin-bottom: 20px; }
.wc-purchase-secure {
    text-align: center;
    font-size: 12px;
    color: #8A8580;
    margin-top: 16px;
}
.wc-purchase-secure i { margin-right: 4px; }

/* ================================================================
   Pricing
   ================================================================ */
.wc-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.wc-pricing-card {
    background: #fff;
    border: 2px solid #E8E4DF;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wc-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.wc-pricing-featured {
    border-color: #6366f1;
    box-shadow: 0 4px 24px rgba(99,102,241,0.15);
}
.wc-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wc-pricing-header { margin-bottom: 16px; }
.wc-pricing-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #F0EFFC;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}
.wc-pricing-header h3 {
    font-size: 18px;
    color: #1B2A4A;
    margin: 0;
}
.wc-pricing-amount { margin-bottom: 20px; }
.wc-price {
    font-size: 40px;
    font-weight: 800;
    color: #1B2A4A;
    letter-spacing: -1px;
}
.wc-price-period {
    font-size: 15px;
    color: #8A8580;
    font-weight: 500;
}
.wc-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.wc-pricing-features li {
    font-size: 14px;
    color: #3A3530;
    padding: 8px 0;
    border-bottom: 1px solid #F5F3F0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wc-pricing-features li:last-child { border-bottom: none; }
.wc-pricing-features li i {
    color: #2E7D32;
    font-size: 12px;
    flex-shrink: 0;
}

/* ================================================================
   Tips Page
   ================================================================ */
.wc-tips-hero {
    background: linear-gradient(135deg, #2D936C 0%, #66D9A0 100%);
    padding: 28px 20px 36px;
    border-radius: 0 0 24px 24px;
}
.wc-tips-hero h1 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.wc-tips-hero p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }
.wc-tips-grid { max-width: 700px; margin: 0 auto; }
.wc-tip-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #E8E4DF;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 10px;
}
.wc-tip-icon {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #E8F5E9;
    color: #2D936C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.wc-tip-body h3 { font-size: 16px; margin-bottom: 4px; }
.wc-tip-body p { font-size: 13px; color: #6B6560; margin: 0; line-height: 1.6; }

/* ================================================================
   Guardrails
   ================================================================ */

/* Guardrail 1: Section-order lock */
.wc-section-block.wc-locked {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}
.wc-section-block.wc-locked::after {
    content: '\f023  Complete the previous section first';
    font-family: 'Font Awesome 5 Free', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #8A8580;
    background: rgba(253, 250, 246, 0.7);
    border-radius: 14px;
    z-index: 2;
}

/* Guardrail 2: "I'm stuck" button */
.wc-stuck-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid #E8E4DF;
    border-radius: 8px;
    background: #FFF8E1;
    color: #F9A825;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.wc-stuck-btn:hover { background: #FFF3C4; border-color: #FFE082; }

/* Guardrail 3: Repetition warning */
.wc-repetition-warning {
    padding: 8px 18px 12px;
    font-size: 12px;
    color: #E65100;
    background: #FFF3E0;
    border-top: 1px solid #FFE0B2;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}
.wc-repetition-warning i { flex-shrink: 0; }

/* Guardrail 4: Time suggestion badge */
.wc-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6B6560;
    background: #F0EFFC;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.wc-time-badge i { font-size: 10px; color: #6366f1; }

/* Guardrail 5: Read aloud button */
.wc-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid #E8E4DF;
    border-radius: 8px;
    background: #fff;
    color: #6B6560;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.wc-read-btn:hover { background: #F5F2EE; border-color: #ccc; }
.wc-read-btn.speaking { background: #E3F2FD; color: #1976D2; border-color: #90CAF9; }

/* Guardrail 6: Self-check modal */
.wc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}
.wc-modal-overlay.show { opacity: 1; }
.wc-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.wc-modal-header {
    padding: 24px 24px 12px;
}
.wc-modal-header h3 {
    font-size: 18px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wc-modal-header h3 i { color: #6366f1; }
.wc-modal-header p { font-size: 13px; color: #8A8580; margin: 0; }
.wc-modal-body { padding: 8px 24px 16px; }
.wc-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #3A3530;
    cursor: pointer;
    line-height: 1.4;
}
.wc-check-input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    flex-shrink: 0;
}
.wc-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #E8E4DF;
}
.wc-btn-submit-check {
    background: #6366f1;
    color: #fff;
}
.wc-btn-submit-check:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* Guardrail 7: Auto-save toast */
.wc-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1B2A4A;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.wc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Section action buttons row */
.wc-section-actions {
    display: flex;
    gap: 6px;
    padding: 0 18px 10px;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 640px) {
    .wc-hero { padding: 40px 16px 52px; }
    .wc-hero h1 { font-size: 26px; }
    .wc-hero-stats { gap: 20px; }
    .wc-criteria-grid { grid-template-columns: 1fr; }
    .wc-fb-scores { grid-template-columns: 1fr; }
    .wc-track-grid { grid-template-columns: 1fr 1fr; }
    .wc-prompt-search { width: 140px; }
    .wc-lesson-nav { padding: 10px 12px; }
    .wc-pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .wc-section-header { flex-wrap: wrap; }
    .wc-section-words { width: 100%; text-align: right; }
    .wc-writing-footer { flex-direction: column; gap: 10px; }
}
