/* Attain Crash Course - Premium Rescue Engine Styles (CAPE Level) */

:root {
    --attain-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --attain-glass: rgba(255, 255, 255, 0.75);
    --attain-glass-border: rgba(255, 255, 255, 0.5);
    --attain-glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);

    --priority-High: #ef4444;
    --priority-High-bg: #fee2e2;
    --priority-Medium: #f59e0b;
    --priority-Medium-bg: #fef3c7;
    --priority-Low: #10b981;
    --priority-Low-bg: #d1fae5;
}

.crash-course-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.crash-course-dashboard * {
    box-sizing: border-box;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.animate-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-panel {
    background: var(--attain-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--attain-glass-border);
    border-radius: 24px;
    box-shadow: var(--attain-glass-shadow);
    padding: 24px;
}


/* SMART PLAN SCREEN */
.smart-plan-screen {
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.screen-header h1 {
    font-size: 2.4em;
    font-weight: 900;
    line-height: 1.1;
    margin: 15px 0;
    background: var(--attain-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 100px;
    font-size: 0.8em;
    font-weight: 700;
    color: #4b5563;
}

.plan-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card .val {
    font-size: 2em;
    font-weight: 800;
    color: #1f2937;
}

.stat-card .lab {
    font-size: 0.75em;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
}

.plan-summary-box {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.plan-summary-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.plan-summary-box li {
    padding: 8px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-summary-box li::before {
    content: "✔";
    color: #6366f1;
    font-weight: 900;
}

.timetable-stats-bar {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
    display: none !important;
}

.top-stat {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85em;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* TIMETABLE SCREEN */
.day-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.day-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.day-card.active {
    border-color: #6366f1;
    background: #fff;
}

.back-to-timetable-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.back-to-timetable-pill:hover {
    background: #f8fafc;
    border-color: #16a34a;
}

.essay-focus-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-top: 20px;
    border-radius: 16px;
    display: none !important;
}

.focus-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-icon .material-symbols-outlined {
    font-size: 30px;
}

.focus-content {
    flex: 1;
}

.focus-content .label {
    font-size: 0.85em;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
}

.focus-content p {
    margin: 5px 0 0 0;
    font-size: 1.1em;
    color: #1e293b;
    font-weight: 500;
}

.essay-focus-card .chevron {
    color: #6366f1;
    opacity: 0.5;
}

.day-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    display: none;
}

.stat-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-wrap.green {
    background: #dcfce7;
    color: #16a34a;
}

.icon-wrap.orange {
    background: #ffedd5;
    color: #ea580c;
}

.icon-wrap.red {
    background: #fee2e2;
    color: #ef4444;
}

.stat-box .val {
    font-size: 1.4em;
    font-weight: 800;
    color: #1e293b;
}

.stat-box .lab {
    font-size: 0.8em;
    color: #64748b;
    font-weight: 600;
    line-height: 1.3;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px 0;
}

.topics-count-badge {
    background: #f1f5f9;
    color: #6366f1;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85em;
}

.topics-list-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-item-card-modern {
    display: flex;
    gap: 20px;
    padding: 25px;
    position: relative;
    border-radius: 20px;
}

.card-number {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.card-main {
    flex: 1;
}

.card-main h4 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #0f172a;
}

.card-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    font-weight: 700;
    color: #16a34a;
}

.meta-item .material-symbols-outlined {
    font-size: 18px;
}

.card-desc {
    font-size: 0.95em;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.start-practice-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
}

.card-progress-circle {
    width: 90px;
    height: 90px;
    border: 5px solid #f1f5f9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circle-val {
    font-size: 1.2em;
    font-weight: 800;
    color: #1e293b;
}

.circle-lab {
    font-size: 0.6em;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    text-transform: uppercase;
    width: 70%;
    line-height: 1.2;
}

.end-goal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #dcfce7;
    background: rgba(22, 163, 74, 0.02);
}

.goal-icon {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-text {
    flex: 1;
}

.goal-text strong {
    color: #16a34a;
    display: block;
}

.goal-text p {
    margin: 2px 0 0 0;
    font-size: 0.9em;
    color: #64748b;
}

.view-essay-builder {
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #16a34a;
    color: #16a34a;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    .crash-course-dashboard {
        padding: 15px;
    }

    .day-stats-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        margin: 20px -15px 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .day-stats-grid::-webkit-scrollbar {
        display: none;
    }

    .stat-box {
        min-width: 130px;
        flex: 0 0 130px;
        padding: 15px;
    }

    .topic-item-card-modern {
        padding: 20px;
        padding-top: 65px;
        /* Space for absolute badges */
        position: relative;
        width: 100%;
    }

    .card-number {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .card-progress-circle {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .circle-val {
        font-size: 0.9em;
    }

    .circle-lab {
        display: none;
    }

    .card-main h4 {
        margin: 0 0 10px 0;
        font-size: 1.2em;
        padding-right: 45px;
        /* Prevent collision with progress circle */
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .card-meta-row {
        flex-direction: column;
        gap: 8px;
    }

    .essay-focus-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .essay-focus-card .chevron {
        display: none;
    }

    .end-goal-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .view-essay-builder {
        width: 100%;
        justify-content: center;
    }
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.day-meta .day-label {
    font-size: 1.25em;
    font-weight: 800;
}

.day-progress-pill {
    padding: 4px 12px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 100px;
    font-size: 0.8em;
    font-weight: 700;
}

.day-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 16px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #4b5563;
}

.day-breakdown .breakdown-item:nth-child(4) {
    display: none;
}

.rebuild-plan-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    background: #111827;
    color: #fff;
    border-radius: 20px;
}

.rebuild-plan-cta h4 {
    margin: 0 0 5px;
    color: #fff;
}

.rebuild-plan-cta p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.8;
    color: #fff;
}

/* TOPIC STUDY SCREEN */
.study-content-header {
    margin-bottom: 30px;
}

.study-content-header h1 {
    font-size: 2.2em;
    font-weight: 900;
    margin-bottom: 15px;
}

.topic-meta-badges {
    display: flex;
    gap: 10px;
}

.topic-meta-badges .badge {
    padding: 6px 16px;
    border-radius: 8px;
}

.badge.priority-High {
    background: var(--priority-High-bg);
    color: var(--priority-High);
}

.badge.priority-Medium {
    background: var(--priority-Medium-bg);
    color: var(--priority-Medium);
}

.badge.priority-Low {
    background: var(--priority-Low-bg);
    color: var(--priority-Low);
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.point-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
    border-radius: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.point-card.is-done {
    opacity: 0.8;
    background: rgba(240, 253, 244, 0.4);
}

.point-card.is-locked {
    opacity: 0.75;
    background: rgba(243, 244, 246, 0.4);
    filter: grayscale(40%);
}

.point-card.is-locked .point-title {
    color: #6b7280;
}

.point-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.point-no {
    font-size: 0.75em;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.done-icon {
    color: #10b981;
}

.locked-icon {
    color: #f59e0b;
    font-size: 1.2em;
}

.point-title {
    font-size: 1.2em !important;
    font-weight: 800;
    margin-bottom: 10px !important;
    color: #111827;
}

.point-summary {
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.point-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.est-min {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    font-weight: 700;
    color: #6b7280;
}

.est-min .material-symbols-outlined {
    font-size: 1.4em;
}

/* ACADEMIC STUDY MODE (Bottom Sheet & Full View) */
.bottom-sheet-surface.full-view {
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.full-view-header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.menu-toggle-btn,
.close-sheet-btn {
    background: #e5e7eb !important;
    border: 1px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563 !important;
}

.header-progress-con {
    flex: 1;
    max-width: 300px;
}

.progress-text {
    font-size: 0.85em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.wizard-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.wizard-progress-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transition: width 0.3s ease;
}

.focus-toggle-btn {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #059669;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.focus-toggle-btn:hover {
    background: #10b981;
    color: #fff;
}

.focus-toggle-btn.active {
    background: #10b981;
    color: #fff;
}

.header-subtitle {
    margin-top: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outline-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10005;
    display: flex;
}

.outline-menu-content {
    background: #fff;
    width: 80%;
    max-width: 320px;
    height: 100%;
    padding: 30px 20px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.outline-menu-overlay.active .outline-menu-content {
    transform: translateX(0);
}

.outline-menu-content h3 {
    font-size: 1.2em;
    font-weight: 900;
    margin-bottom: 20px;
    color: #1e293b;
}

.outline-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outline-steps-list li {
    padding: 5px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.outline-steps-list li:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.outline-steps-list li.active {
    background: #eef2ff;
    color: #4f46e5;
}

.outline-steps-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
}

.outline-steps-list li.active::before {
    background: #4f46e5;
}

.academic-mode {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.bottom-sheet-surface.focus-mode .full-view-header,
.bottom-sheet-surface.focus-mode .sheet-footer {
    display: none;
}

.bottom-sheet-surface.focus-mode .academic-mode {
    padding-top: 40px;
}

/* Floating exit focus button */
.exit-focus-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10006;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.focus-mode+.exit-focus-btn {
    display: block;
}

.academic-mode {
    padding-bottom: 100px;
}

/* Elegant Toast & Animations */
.attain-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
    z-index: 10010;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attain-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Readiness Hero Card Styles */
.readiness-hero-card {
    margin-bottom: 25px;
    padding: 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}


/* Skill Breakdown Card Styles */
.skill-breakdown-card {
    margin-bottom: 25px;
    padding: 24px;
}

.skill-breakdown-card h3 {
    font-size: 0.9em;
    font-weight: 900;
    margin: 0;
    color: #1e293b;
    letter-spacing: 1px;
}

.skill-breakdown-card .subtitle {
    font-size: 0.85em;
    color: #64748b;
    margin: 5px 0 20px 0;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-row:last-child {
    margin-bottom: 0;
}

.skill-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon-wrapper.mcq {
    background: #f5f3ff;
    color: #7c3aed;
}

.skill-icon-wrapper.outline {
    background: #eff6ff;
    color: #2563eb;
}

.skill-icon-wrapper.full {
    background: #fef2f2;
    color: #dc2626;
}

.skill-info {
    flex: 1;
}

.skill-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: baseline;
}

.skill-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.95em;
}

.skill-percent {
    font-weight: 700;
    font-size: 1.1em;
}

.skill-percent.mcq {
    color: #7c3aed;
}

.skill-percent.outline {
    color: #2563eb;
}

.skill-percent.full {
    color: #dc2626;
}

.skill-progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-inner {
    height: 100%;
    border-radius: 4px;
}

.skill-progress-inner.mcq {
    background: #7c3aed;
}

.skill-progress-inner.outline {
    background: #2563eb;
}

.skill-progress-inner.full {
    background: #dc2626;
}

.skill-score-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 90px;
}

.skill-status {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 800;
    width: 100%;
    text-align: center;
}

.skill-status.strong {
    background: #ecfdf5;
    color: #059669;
}

.skill-status.developing {
    background: #fff7ed;
    color: #c2410c;
}

.skill-status.weak {
    background: #fef2f2;
    color: #dc2626;
}

.section-label {
    display: block;
    font-size: 0.75em;
    font-weight: 800;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em !important;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111827;
}

.lead {
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.5;
    color: #374151;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111827;
}

.table-intro-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 20px;
    font-style: italic;
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.def-item {
    padding: 15px;
}

.def-item strong {
    display: block;
    margin-bottom: 5px;
    color: #6366f1;
}

.def-item p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #4b5563;
}

.table-container {
    overflow-x: auto;
    padding: 0;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    text-align: left;
    padding: 15px;
    background: rgba(99, 102, 241, 0.05);
    font-weight: 800;
    color: #4338ca;
}

.table-container td {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95em;
}

.examples-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.example-box h5 {
    margin: 0 0 10px;
    color: #111827;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: #4b5563;
}

.wysiwyg-content {
    padding: 25px;
    line-height: 1.7;
    color: #374151;
}

.wysiwyg-content h3 {
    margin-top: 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.insight-card {
    padding: 25px;
    border-radius: 20px;
}

.insight-card.mistake {
    background: #fff1f2;
    border: 1px solid #fecaca;
}

.insight-card.tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.insight-card h5 {
    margin: 0 0 15px;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 900;
    letter-spacing: 1px;
}

.insight-card.mistake h5 {
    color: #be123c;
}

.insight-card.tip h5 {
    color: #1d4ed8;
}

.insight-card ul {
    padding-left: 18px;
    margin: 0;
}

.insight-card li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.recall-box {
    background: #111827 !important;
    color: #fff;
    border: none;
}

.recall-box h4 {
    color: #fff;
    margin-top: 0;
}

.recall-box li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* MCQ QUICK TEST */
.mcq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mcq-item .question {
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.option-btn {
    text-align: left;
    padding: 12px 18px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-wrap: auto;
}

.option-btn:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.option-btn.selected {
    border-color: #6366f1;
    background: #f5f3ff;
}

.option-btn.correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.option-btn.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.feedback-area {
    margin-top: 12px;
    font-size: 0.85em;
    font-weight: 800;
}

.txt-success {
    color: #10b981;
}

.txt-error {
    color: #ef4444;
}

/* UTILITY */
.attain-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f3f4f6;
    color: #111827;
}

.attain-btn.primary-gradient {
    background: var(--attain-gradient);
    color: #fff;
}

.attain-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.attain-btn.large {
    padding: 18px 32px;
    font-size: 1.1em;
    border-radius: 16px;
}

.full-width {
    width: 100%;
}

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-overlay.active {
    visibility: visible;
    opacity: 1;
}

.bottom-sheet-surface {
    width: 100%;
    background: #fff;
    border-radius: 32px 32px 0 0;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet-surface.modal-75 {
    height: 75vh;
    max-height: 75vh;
}

.p2-question-jump-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.p2-question-jump-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 0 30px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 30px 30px;
    -webkit-overflow-scrolling: touch;
}

.unlock-modal .sheet-content {
    padding: 0 0 30px 0;
}

.sheet-footer {
    padding: 20px 30px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

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

    .points-grid {
        grid-template-columns: 1fr;
    }
}

/* WIZARD & FORMS */
.step-screen {
    width: 100%;
}

.paper-2-card {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid #6366f1;
    margin-bottom: 20px;
}

.encouragement {
    font-size: 0.9em;
    color: #6366f1;
    font-weight: 700;
    margin-top: 10px;
}

.attain-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    background: #f9fafb;
}

.attain-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #fff;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

#wizard-next-btn {
    margin-left: auto;
}

.dictation-active {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.feedback-box {
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.feedback-box h4 {
    margin-top: 0;
    color: #0f172a;
}

.score-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.image-preview-item {
    display: inline-block;
    position: relative;
    margin-right: 10px;
}

.image-preview-item img {
    height: 80px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.image-preview-item .remove-img {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Question Breakdown Interactive UI */
.qb-question-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #1f2937;
}

.qb-highlight {
    background-color: #fef3c7;
    border-bottom: 2px dashed #f59e0b;
    border-radius: 4px;
    padding: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qb-highlight:hover {
    background-color: #fde68a;
}

.qb-highlight.active {
    background-color: #f59e0b;
    color: #fff;
    border-bottom: 2px solid #b45309;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.qb-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.qb-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    padding: 16px !important;
    opacity: 0.6;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.qb-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.qb-card-title {
    font-weight: 700;
    font-size: 1em;
    color: #4f46e5;
    margin-bottom: 8px;
}

.qb-card-body {
    font-size: 0.95em;
    color: #4b5563;
    margin-bottom: 8px;
}

.qb-card-bullets {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em;
    color: #374151;
}

.qb-card-bullets li {
    margin-bottom: 4px;
}

.qb-success-message {
    display: none;
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
    animation: fadeIn 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guided-outline-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guided-field label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
}

.guided-field textarea {
    width: 100%;
    margin: 0;
    transition: all 0.2s ease-in-out;
}

.outline-error-highlight {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.flex-gap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.secondary-btn:hover {
    background: #e5e7eb;
}

/* UNLOCK MODAL STYLES */
.unlock-modal {
    padding-top: 30px;
}

.unlock-modal .premium-benefits li {
    font-size: 1.05em;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unlock-modal .license-activation-form {
    background: #f9fafb;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.unlock-modal .close-sheet {
    margin-top: 10px;
    color: #6b7280;
}

/* PREMIUM PROMO BANNER */
.crash-course-promo-banner {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 15px 20px 25px 20px !important;
}

.crash-course-promo-banner:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px -8px rgba(79, 70, 229, 0.4) !important;
}

.promo-banner-inner {
    padding: 16px 20px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjA1Ij48cGF0aCBkPSJNMTAgMTBoMjB2MjBIMTB6Ii8+PC9nPjwvZz48L3N2Zz4=');
    background-size: 30px 30px;
}

.promo-banner-content {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.promo-icon-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bolt-icon {
    font-size: 24px !important;
    color: #fbbf24 !important;
    z-index: 2;
    animation: pulse-gold 2s infinite;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate-glow 4s linear infinite;
}

.promo-text h4 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 900;
    color: white;
    line-height: 1.2;
}

.promo-text h4 span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.promo-text p {
    margin: 3px 0 0 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.promo-label {
    font-size: 0.65em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.promo-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-date-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 100px;
    color: white;
    font-size: 0.75em;
    font-weight: 700;
}

.promo-date-badge span {
    font-size: 1.1em !important;
    color: rgba(255, 255, 255, 0.6);
}

.promo-banner-footer button {
    padding: 6px 16px !important;
    font-size: 0.85em !important;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .promo-banner-content {
        gap: 12px;
    }

    .promo-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .promo-text h4 {
        font-size: 1.05em;
    }
}