:root {
    --exam-primary: #6366f1;
    --exam-primary-dark: #4f46e5;
    --exam-border: #e2e8f0;
    --exam-bg: #f1f5f9;
    --exam-panel-bg: #ffffff;
    --exam-text: #334155;
    --exam-accent: #10b981;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--exam-bg);
    color: var(--exam-text);
    overflow: hidden;
}

.exam-container {
    display: flex;
    height: calc(100vh - 73px);
    width: 100%;
}

.exam-panel {
    flex: 1;
    background: var(--exam-panel-bg);
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.exam-panel.left-panel {
    border-right: 2px solid var(--exam-border);
    font-size: 1.05rem;
    line-height: 1.8;
}

.exam-panel.right-panel {
    background: #f8fafc;
}

.task-prompt {
    background: #f8fafc;
    padding: 1.5rem;
    border-left: 4px solid var(--exam-primary);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    background: white;
    border: 1px solid var(--exam-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.writing-textarea {
    width: 100%;
    height: 400px;
    padding: 1rem;
    border: 1px solid var(--exam-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    background: white;
    transition: border-color 0.2s;
}

.writing-textarea:focus {
    outline: none;
    border-color: var(--exam-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.word-count {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #64748b;
    text-align: right;
    font-size: 0.85rem;
}

.passage-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.passage-subtitle {
    font-weight: 700;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.btn-evaluate {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-evaluate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.result-content {
    background: white;
    border-radius: 1rem;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-top: 2rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.result-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.25rem;
    border-radius: 4px;
}

.modal-close-btn:hover {
    color: #475569;
}

.result-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading-spinner p {
    margin-top: 1rem;
}

.result-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.band-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.band-circle-inner {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.band-big {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.band-label-small {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.word-count-badge {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    display: inline-block;
}

.criteria-bars {
    margin-bottom: 2rem;
}

.criteria-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.criteria-bar-item span:first-child {
    width: 150px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    flex-shrink: 0;
}

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

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

.bar-score {
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
    width: 30px;
    text-align: right;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-card {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.detail-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.detail-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
}

.result-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-list h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.result-list li {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    padding-left: 1.5rem;
    position: relative;
}

.result-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.result-list.strengths li {
    background: rgba(16,185,129,0.06);
    color: #059669;
}

.result-list.strengths li::before {
    background: #10b981;
}

.result-list.improvements li {
    background: rgba(239,68,68,0.06);
    color: #dc2626;
}

.result-list.improvements li::before {
    background: #ef4444;
}

.sample-improvement {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.sample-improvement h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.sample-improvement p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
}

.feedback-error {
    color: #ef4444;
    padding: 1rem;
    background: rgba(239,68,68,0.06);
    border-radius: 0.5rem;
}

.feedback-error pre {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    white-space: pre-wrap;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 4px;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

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

@media (max-width: 768px) {
    .exam-container {
        flex-direction: column;
        height: auto;
    }
    .exam-panel.left-panel {
        border-right: none;
        border-bottom: 1px solid var(--exam-border);
    }
    .result-details, .result-lists {
        grid-template-columns: 1fr;
    }
    .result-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .criteria-bar-item span:first-child {
        width: 100%;
    }
}

.writing-layout {
    display: flex;
    height: calc(100vh - 73px);
    background: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

.writing-sidebar {
    width: 380px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.task-selector {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.task-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.task-btn:hover {
    color: #6366f1;
    background: rgba(99,102,241,0.04);
}

.task-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
    background: rgba(99,102,241,0.06);
}

.task-badge {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 700;
}

.task-btn.active .task-badge {
    background: rgba(99,102,241,0.12);
    color: #6366f1;
}

.prompts-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.prompt-card {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.prompt-card:hover {
    border-color: #a5b4fc;
    background: rgba(99,102,241,0.03);
}

.prompt-card.active {
    border-color: #6366f1;
    background: rgba(99,102,241,0.06);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.prompt-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    flex-shrink: 0;
}

.prompt-card.active .prompt-number {
    background: #6366f1;
    color: white;
}

.prompt-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
    font-weight: 500;
}

.writing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.selected-prompt-area {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.selected-prompt-area h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.selected-prompt-area #selectedPrompt {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

.selected-prompt-area #promptInstruction {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
}

.selected-prompt-area #wordLimit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 700;
}

#chartVisual {
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.writing-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    font-family: 'Inter', sans-serif;
}

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

.word-count-status {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.writing-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    background: white;
    color: #334155;
    transition: border-color 0.2s;
    margin-bottom: 1.5rem;
}

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

.result-panel {
    display: none;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

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

.band-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.band-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.band-value {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.band-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.criterion-card {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

.criterion-score {
    font-size: 1.25rem;
    font-weight: 900;
}

.criterion-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
}

.feedback-section {
    margin-bottom: 1.25rem;
}

.feedback-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feedback-section p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feedback-list {
    list-style: none;
    padding: 0;
}

.feedback-list li {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.feedback-list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.feedback-list.strengths li {
    background: rgba(16,185,129,0.06);
    color: #059669;
}

.feedback-list.strengths li::before {
    background: #10b981;
}

.feedback-list.improvements li {
    background: rgba(239,68,68,0.06);
    color: #dc2626;
}

.feedback-list.improvements li::before {
    background: #ef4444;
}

@media (max-width: 768px) {
    .writing-layout {
        flex-direction: column;
        height: auto;
    }
    .writing-sidebar {
        width: 100%;
        max-height: 300px;
    }
    .writing-main {
        padding: 1.25rem;
    }
    .criteria-grid {
        grid-template-columns: 1fr;
    }
}

.mock-progress {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    justify-content: center;
    background: white;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mock-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #94a3b8;
    position: relative;
}

.mock-step .step-label {
    display: none;
}

.mock-step.active {
    background: rgba(99,102,241,0.1);
    color: #6366f1;
}

.mock-step.active .step-label {
    display: inline;
}

.mock-step.done {
    color: #10b981;
}

.mock-step.done::after {
    content: '✓';
    margin-left: 0.25rem;
}

.mock-step + .mock-step::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    margin-right: 0.5rem;
}

.mock-step.active + .mock-step::before,
.mock-step.done + .mock-step::before {
    background: #6366f1;
}

.section-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.section-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-topbar-left h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 2rem;
}

.intro-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 560px;
    width: 100%;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.intro-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #6366f1;
}

.intro-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

.intro-info {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.25rem;
}

.intro-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #f1f5f9;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.auth-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.auth-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

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

.form-group .field-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.status-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.ok { display: inline-flex; background: rgba(16,185,129,0.1); color: #059669; }
.status-badge.fail { display: inline-flex; background: rgba(239,68,68,0.1); color: #dc2626; }

.exam-container.mock-reading {
    height: auto;
    min-height: calc(100vh - 73px);
}

.exam-panel.reading-passage {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #1e293b;
}

.exam-panel.reading-passage h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.exam-panel.reading-questions {
    background: #f8fafc;
}

.question-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.question-item:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

.question-item .q-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.question-item .q-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.question-item .q-text {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    font-size: 0.95rem;
    padding-top: 0.2rem;
}

.question-item .q-options label {
    display: block;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.question-item .q-options label:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.question-item .q-options label input {
    margin-right: 0.5rem;
    accent-color: #6366f1;
}

.question-item .q-options label.selected {
    background: rgba(99,102,241,0.08);
    border-color: #6366f1;
}

.question-item input[type="text"], .question-item textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.question-item input[type="text"]:focus, .question-item textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

.q-type-tfng label {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    margin: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.q-type-tfng label:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.q-type-tfng label.selected {
    border-color: #6366f1;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
}

.q-type-tfng label input { display: none; }

.listening-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.listening-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.listening-section-header h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.listening-context-img {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.listening-questions {
    padding: 1.5rem;
}

.audio-player-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #eef2ff;
    border-bottom: 1px solid #e2e8f0;
}

.audio-player-bar .play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.audio-player-bar .play-btn:hover { background: #4f46e5; transform: scale(1.05); }
.audio-player-bar .play-btn.playing { background: #ef4444; animation: pulse-record 1.5s infinite; }

.audio-player-bar .audio-progress {
    flex: 1;
    height: 6px;
    background: #c7d2fe;
    border-radius: 100px;
    overflow: hidden;
}

.audio-player-bar .audio-progress-bar {
    height: 100%;
    background: #6366f1;
    border-radius: 100px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-player-bar .audio-status {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.writing-task-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.writing-task-card .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.writing-task-card .task-header h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.writing-task-card .task-prompt {
    padding: 1.25rem 1.5rem;
    border-left: 0;
    background: transparent;
    margin: 0;
}

.writing-task-card .task-visual {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.writing-task-card .task-textarea {
    padding: 0 1.5rem 1.5rem;
}

.writing-task-card .task-textarea textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

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

.writing-task-card .task-wordcount {
    text-align: right;
    padding: 0.5rem 1.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.writing-task-card .task-wordcount .count-num { color: #0f172a; }
.writing-task-card .task-wordcount .count-warn { color: #ef4444; }
.writing-task-card .task-wordcount .count-ok { color: #10b981; }

.speaking-part-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.speaking-part-card .part-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.speaking-part-card .part-header h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.speaking-part-card .part-prompt {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    border-left: 4px solid #6366f1;
    margin: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.speaking-part-card .part-controls {
    padding: 0 1.5rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.record-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    border: 2px solid #6366f1;
    background: white;
    color: #6366f1;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.record-btn:hover { background: rgba(99,102,241,0.06); transform: translateY(-1px); }
.record-btn.recording { background: #ef4444; color: white; border-color: #ef4444; animation: pulse-record 1.5s infinite; }

.prep-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #fff7ed;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #d97706;
}

.speaking-part-card .part-transcript {
    padding: 0 1.5rem 1.5rem;
}

.speaking-part-card .part-transcript textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.speaking-part-card .part-transcript textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.finish-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.finish-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.finish-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.finish-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.finish-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.finish-summary {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.finish-stat {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.finish-stat .stat-val {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
}

.finish-stat .stat-lbl {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.form-group-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.form-group-check input { width: auto; margin-top: 0.15rem; accent-color: #6366f1; }

.btn-full {
    width: 100%;
    justify-content: center;
}

@keyframes pulse-record {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

@media (max-width: 768px) {
    .mock-progress { gap: 0.25rem; padding: 0.5rem; }
    .mock-step { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
    .mock-step .step-label { display: none !important; }
    .mock-step + .mock-step::before { width: 12px; }
    .section-topbar { flex-direction: column; gap: 0.75rem; }
    .exam-panel.reading-passage, .exam-panel.reading-questions { flex: none; height: auto; max-height: 50vh; }
    .finish-summary { flex-direction: column; align-items: center; }
    .intro-screen { padding: 1rem; }
    .intro-card { padding: 2rem 1.5rem; }
    .auth-card { padding: 2rem 1.5rem; }
    .dash-grid { grid-template-columns: 1fr; }
    .reading-split { flex-direction: column; }
    .reading-pane { max-height: 50vh; }
    .exam-footer { flex-direction: column; gap: 0.75rem; }
    .mock-auth-card { padding: 2rem 1.5rem; }
    .mock-finish .finish-stats { flex-direction: column; align-items: center; }
}

#app {
    padding-top: 73px;
    box-sizing: border-box;
    min-height: 100vh;
}

.mock-auth-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 73px); padding: 2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #f8fafc 100%);
}

.mock-auth-card {
    background: white; border-radius: 1.5rem; padding: 3rem;
    max-width: 460px; width: 100%;
    box-shadow: 0 8px 40px rgba(99,102,241,0.1), 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(99,102,241,0.08);
}

.auth-brand {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; color: white; box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.mock-auth-card h1 {
    font-family: 'Poppins', sans-serif; font-size: 1.75rem; font-weight: 800;
    text-align: center; color: #0f172a; margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center; color: #64748b; font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.5;
}

.btn-full { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

.btn-link {
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 0.85rem; font-family: 'Inter', sans-serif; font-weight: 600;
    display: flex; align-items: center; gap: 0.4rem; margin: 1rem auto 0; padding: 0.5rem;
}
.btn-link:hover { color: #6366f1; }

.mock-dash {
    max-width: 960px; margin: 2rem auto; padding: 0 1.5rem;
}

.dash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2.5rem;
}

.dash-header h2 {
    font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; margin: 0;
}

.dash-candidate {
    color: #64748b; font-size: 0.9rem; margin: 0.25rem 0 0;
}

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

.dash-card {
    background: white; border-radius: 1.25rem; padding: 2rem 1.5rem;
    border: 1px solid #e2e8f0; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dash-card:hover:not(.done) {
    transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #a5b4fc;
}

.dash-card.done { opacity: 0.7; cursor: default; }

.dash-card-bg {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
}

.dash-card-icon {
    width: 52px; height: 52px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}

.dash-card h3 {
    font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 800;
    color: #0f172a; margin-bottom: 0.35rem;
}

.dash-desc { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; line-height: 1.4; }

.dash-time {
    font-size: 0.8rem; color: #94a3b8; font-weight: 600;
    display: flex; align-items: center; gap: 0.3rem;
}

.dash-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    margin-top: 1rem; padding: 0.35rem 0.85rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 700;
}

.start-badge { background: rgba(99,102,241,0.08); color: #6366f1; }
.done-badge { background: rgba(16,185,129,0.08); color: #10b981; }

.dash-all-done {
    display: flex; align-items: center; gap: 1rem;
    justify-content: center; padding: 1.5rem;
    background: rgba(16,185,129,0.06); border-radius: 1rem;
    border: 1px solid rgba(16,185,129,0.15);
    font-weight: 600; color: #0f172a; font-size: 1rem;
}

.mock-exam {
    display: flex; flex-direction: column;
    height: calc(100vh - 73px);
    max-width: 1100px; margin: 0 auto; padding: 1.5rem;
}

.exam-top {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    background: white; border-radius: 1rem; padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0; margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.exam-top-left {
    display: flex; align-items: center; gap: 0.75rem;
}

.btn-icon {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #f1f5f9; color: #475569; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.btn-icon:hover { background: #e2e8f0; color: #0f172a; }

.exam-body {
    flex: 1; min-height: 0; overflow-y: auto;
    background: white; border-radius: 1rem; border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.exam-body::-webkit-scrollbar { width: 6px; }
.exam-body::-webkit-scrollbar-track { background: transparent; }
.exam-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 100px; }
.exam-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.exam-footer {
    flex-shrink: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0;
}

.exam-progress {
    display: flex; align-items: center; gap: 0.75rem; flex: 1;
}

.prog-bar {
    flex: 1; max-width: 300px; height: 6px; background: #e2e8f0;
    border-radius: 100px; overflow: hidden;
}

.prog-fill {
    height: 100%; background: linear-gradient(90deg,#6366f1,#8b5cf6);
    border-radius: 100px; transition: width 0.3s ease;
}

.prog-text { font-size: 0.85rem; font-weight: 600; color: #64748b; }

.exam-timer {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1rem; font-weight: 800; color: #0f172a;
    font-variant-numeric: tabular-nums;
    padding: 0.4rem 1rem; border-radius: 100px;
    background: #f1f5f9; border: 1px solid #e2e8f0;
}
.exam-timer.warning {
    color: #dc2626; background: #fef2f2; border-color: #fecaca;
    animation: pulse-warning 1.5s infinite;
}
@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-submit {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.5rem; border: none; border-radius: 100px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s; font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }

.exam-part {
    padding: 1.5rem; border-bottom: 1px solid #e2e8f0;
}

.part-header {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.95rem; color: #0f172a;
    margin-bottom: 1rem;
}

.part-context {
    background: #f8fafc; border-radius: 0.75rem; padding: 0.75rem;
    margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0;
}

.audio-bar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem; background: #eef2ff; border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.play-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #6366f1; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.play-btn:hover { background: #4f46e5; transform: scale(1.05); }
.play-btn.playing { background: #ef4444; animation: pulse-record 1.5s infinite; }

.audio-track {
    flex: 1; height: 4px; background: #c7d2fe; border-radius: 100px; overflow: hidden;
}

.audio-fill {
    height: 100%; background: #6366f1; border-radius: 100px; width: 0%;
    transition: width 0.1s linear;
}

.audio-label { font-size: 0.8rem; color: #475569; font-weight: 600; white-space: nowrap; }

.part-questions { padding: 0; }

.q-item {
    padding: 1rem 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem;
    margin-bottom: 0.75rem; transition: border-color 0.2s;
}
.q-item:focus-within { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.08); }

.q-head {
    display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem;
}

.q-num {
    width: 26px; height: 26px; border-radius: 50%; background: #6366f1;
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}

.q-text { font-weight: 600; color: #0f172a; line-height: 1.5; font-size: 0.92rem; padding-top: 0.15rem; }

.q-opts label {
    display: block; padding: 0.4rem 0.75rem; margin-bottom: 0.2rem;
    border-radius: 0.5rem; cursor: pointer; transition: all 0.15s;
    font-size: 0.9rem; border: 1px solid transparent;
}
.q-opts label:hover { background: #f1f5f9; border-color: #e2e8f0; }
.q-opts label input { margin-right: 0.5rem; accent-color: #6366f1; }
.q-opts label.sel { background: rgba(99,102,241,0.08); border-color: #6366f1; }

.q-item input[type="text"] {
    width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #e2e8f0;
    border-radius: 0.5rem; font-family: 'Inter', sans-serif; font-size: 0.9rem;
    transition: border-color 0.2s; box-sizing: border-box;
}
.q-item input[type="text"]:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.1); }

.q-tfng { display: flex; gap: 0.5rem; }

.tfng-btn {
    padding: 0.4rem 0.85rem; border-radius: 0.5rem; border: 1px solid #e2e8f0;
    cursor: pointer; font-weight: 600; font-size: 0.85rem;
    transition: all 0.15s; color: #475569; background: white;
}
.tfng-btn:hover { border-color: #6366f1; background: #f1f5f9; }
.tfng-btn.sel { border-color: #6366f1; background: rgba(99,102,241,0.1); color: #6366f1; }

.reading-split {
    display: flex; min-height: 60vh;
}

.reading-pane {
    flex: 1; overflow-y: auto; padding: 1.5rem; box-sizing: border-box;
}

/* Reading section: body acts as flex container, split fills height */
#examBody-reading {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#examBody-reading .reading-split {
    flex: 1;
    min-height: 0;
}

.reading-pane.passages {
    border-right: 1px solid #e2e8f0;
    font-family: 'Merriweather', Georgia, serif; font-size: 0.9rem;
    line-height: 1.8; color: #1e293b; background: #fafafa;
}

.reading-passage { margin-bottom: 2rem; }
.reading-passage h4 {
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem;
    color: #0f172a; margin-bottom: 0.75rem;
}
.reading-passage p { margin-bottom: 0.75rem; }
.reading-passage svg { margin: 0.75rem auto; display: block; }

.reading-pane.questions { background: #f8fafc; }

.writing-card {
    border-bottom: 1px solid #e2e8f0; padding: 1.5rem;
}

.wc-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.wc-head h4 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; margin: 0; }

.time-badge {
    font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem;
    border-radius: 100px; background: rgba(99,102,241,0.08); color: #6366f1;
}

.wc-chart { margin-bottom: 1rem; }

.wc-prompt {
    background: #f8fafc; border-left: 4px solid #6366f1;
    padding: 1rem 1.25rem; border-radius: 0.5rem; margin-bottom: 1rem;
    font-size: 0.92rem; line-height: 1.6; color: #334155;
}

.wc-text textarea {
    width: 100%; min-height: 180px; padding: 0.85rem;
    border: 1px solid #e2e8f0; border-radius: 0.75rem;
    font-family: 'Inter', sans-serif; font-size: 0.95rem;
    line-height: 1.7; resize: vertical; box-sizing: border-box;
    transition: border-color 0.2s;
}
.wc-text textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }

.wc-count {
    text-align: right; font-weight: 700; font-size: 0.85rem;
    padding: 0.5rem 0 0; color: #64748b;
}
.wc-count .warn { color: #ef4444; }
.wc-count .ok { color: #10b981; }

.speak-card {
    padding: 1.5rem; border-bottom: 1px solid #e2e8f0;
}

.sc-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.95rem; color: #0f172a;
    margin-bottom: 0.75rem;
}

.prep-badge {
    font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem;
    border-radius: 100px; background: #fff7ed; color: #d97706;
}

.sc-prompt {
    background: #f8fafc; border-left: 4px solid #6366f1;
    padding: 1rem 1.25rem; border-radius: 0.5rem;
    margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.6; color: #334155;
}
.sc-prompt br { display: block; content: ''; margin-top: 0.3rem; }

.sc-ctrl {
    display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap;
}

.rec-btn {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.1rem; border-radius: 100px;
    border: 2px solid #6366f1; background: white; color: #6366f1;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.rec-btn:hover { background: rgba(99,102,241,0.06); transform: translateY(-1px); }
.rec-btn.recording { background: #ef4444; color: white; border-color: #ef4444; animation: pulse-record 1.5s infinite; }

.prep-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 1rem; border-radius: 100px;
    border: 1px solid #e2e8f0; background: white; color: #d97706;
    font-weight: 600; font-size: 0.8rem; cursor: pointer;
    transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.prep-btn:hover { border-color: #d97706; background: #fff7ed; }

.rec-status { font-size: 0.8rem; color: #64748b; font-weight: 600; }

.sc-transcript {
    width: 100%; min-height: 90px; padding: 0.75rem;
    border: 1px solid #e2e8f0; border-radius: 0.5rem;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    line-height: 1.5; resize: vertical; box-sizing: border-box;
}
.sc-transcript:focus { outline: none; border-color: #6366f1; }

.mock-finish {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh; padding: 2rem;
}

.mock-finish .finish-card {
    text-align: center; max-width: 520px; padding: 3rem;
    background: white; border-radius: 1.5rem;
    border: 1px solid #e2e8f0; box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.mock-finish .finish-icon {
    width: 88px; height: 88px; border-radius: 50%;
    background: #ecfdf5; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1.5rem;
}

.mock-finish .finish-card h2 {
    font-family: 'Poppins', sans-serif; font-size: 1.75rem;
    font-weight: 800; margin-bottom: 1rem;
}

.mock-finish .finish-card p {
    color: #64748b; line-height: 1.7; font-size: 1rem; margin-bottom: 2rem;
}

.finish-stats {
    display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem;
}

.f-stat {
    padding: 0.75rem 1.25rem; background: #f8fafc; border-radius: 0.75rem;
    border: 1px solid #e2e8f0; text-align: center;
}
.f-stat strong { display: block; font-size: 0.85rem; color: #0f172a; }
.f-done { font-size: 0.75rem; color: #10b981; font-weight: 700; }

@keyframes pulse-record {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}
