/* === Ether AI Design System === */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Surface */
    --surface: #060e20;
    --surface-dim: #060e20;
    --surface-bright: #1f2b49;
    --surface-container-lowest: #000000;
    --surface-container-low: #091328;
    --surface-container: #0f1930;
    --surface-container-high: #141f38;
    --surface-container-highest: #192540;
    --surface-variant: #192540;
    --surface-tint: #a3a6ff;

    /* Primary */
    --primary: #a3a6ff;
    --primary-dim: #6063ee;
    --primary-fixed: #9396ff;
    --primary-container: #9396ff;
    --on-primary: #0f00a4;

    /* Secondary */
    --secondary: #a28efc;
    --secondary-dim: #a28efc;
    --secondary-container: #49339d;

    /* Tertiary */
    --tertiary: #ffa5d9;
    --tertiary-dim: #ef81c4;
    --tertiary-container: #ff8ed2;

    /* Error */
    --error: #ff6e84;
    --error-dim: #d73357;
    --error-container: #a70138;

    /* Text */
    --on-surface: #dee5ff;
    --on-surface-variant: #a3aac4;
    --on-background: #dee5ff;
    --background: #060e20;

    /* Outline */
    --outline: #6d758c;
    --outline-variant: #40485d;

    /* Other */
    --inverse-surface: #faf8ff;
    --inverse-on-surface: #4d556b;

    /* Functional */
    --green: #22c55e;
    --orange: #f59e0b;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(163, 166, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--surface);
    color: var(--on-surface);
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* === Layout === */

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* === Sidebar === */

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 256px;
    background: var(--surface-container-low);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    z-index: 40;
    padding: 24px 16px;
    transition: transform 0.3s;
}

#sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    margin-bottom: 32px;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
}

.sidebar-logo .logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--on-surface);
}

.sidebar-logo .logo-sub {
    font-size: 10px;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--on-surface);
}

.sidebar-link.active {
    background: linear-gradient(to right, rgba(99,102,241,0.2), transparent);
    border-left-color: #6366f1;
    color: var(--primary);
}

.sidebar-link .material-symbols-outlined {
    font-size: 22px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* === Main Content === */

#main-content {
    margin-left: 256px;
    min-height: 100dvh;
    transition: margin-left 0.3s;
}

body.no-sidebar #sidebar {
    transform: translateX(-100%);
}

body.no-sidebar #main-content {
    margin-left: 0;
}

/* === Top Nav (Landing) === */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(6, 14, 32, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 50;
}

.top-nav-logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 22px;
    font-style: italic;
    color: var(--on-surface);
}

.top-nav-links {
    display: flex;
    gap: 32px;
}

.top-nav-links a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.top-nav-links a:hover,
.top-nav-links a.active {
    color: var(--on-surface);
}

/* === Buttons === */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: var(--on-primary);
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(163, 166, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(163, 166, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: rgba(25, 37, 64, 0.6);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(163, 166, 255, 0.2);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(25, 37, 64, 0.9);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

.btn-card {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-xl);
    background: var(--surface-container-highest);
    color: var(--on-surface);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card:hover {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-card.disabled:hover {
    background: var(--surface-container-highest);
    color: var(--on-surface);
}

/* === Glass Card === */

.glass-card {
    background: rgba(25, 37, 64, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: inset 1px 1px 0px 0px rgba(163, 166, 255, 0.1);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255,255,255,0.05);
}

.glass-panel {
    background: rgba(25, 37, 64, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(163, 166, 255, 0.1);
    border-left: 1px solid rgba(163, 166, 255, 0.1);
    border-radius: var(--radius-2xl);
}

/* === Cards === */

.card {
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-2px);
}

.stat-card {
    background: var(--surface-container-low);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.875rem;
    font-style: italic;
    color: white;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--on-surface-variant);
    margin-bottom: 4px;
}

.stat-sub {
    font-size: 12px;
    font-weight: 700;
}

/* === Module Cards === */

.module-card {
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon .material-symbols-outlined {
    font-size: 28px;
}

.module-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--on-surface-variant);
}

.module-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.module-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

/* === Progress Bar === */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--background);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--on-surface-variant);
}

/* === Badge === */

.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-primary {
    background: rgba(163, 166, 255, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(162, 142, 252, 0.1);
    color: var(--secondary);
}

.badge-tertiary {
    background: rgba(255, 165, 217, 0.1);
    color: var(--tertiary);
}

.badge-soon {
    background: rgba(255,255,255,0.05);
    color: var(--on-surface-variant);
    font-size: 10px;
}

/* === Grids === */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* === Landing Hero === */

.hero {
    padding: 120px 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-overline {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero p {
    font-size: 18px;
    color: var(--on-surface-variant);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

/* === Section === */

.section {
    padding: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 15px;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
}

/* === Dashboard === */

.dashboard-header {
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dashboard-header h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: white;
}

.dashboard-header p {
    font-size: 15px;
    color: var(--on-surface-variant);
    margin-top: 8px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 48px;
    margin-bottom: 32px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 48px 48px;
}

/* === Topics Page === */

.topics-header {
    padding: 32px 48px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--on-surface-variant);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--on-surface);
}

.topics-header h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    font-style: italic;
    color: white;
    margin-bottom: 8px;
}

.topics-header p {
    font-size: 15px;
    color: var(--on-surface-variant);
    max-width: 600px;
}

.topics-progress {
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.topics-progress .value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding: 0 48px 48px;
}

.topic-card-featured {
    grid-column: span 8;
    min-height: 360px;
    background: linear-gradient(135deg, var(--surface-container), var(--surface-container-high));
    border-radius: var(--radius-2xl);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.topic-card {
    grid-column: span 4;
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topic-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--on-surface-variant);
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-meta .material-symbols-outlined {
    font-size: 16px;
}

/* === Interview Screen === */

.interview-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 24px;
    padding: 24px 48px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#screen-interview.active {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

.interview-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    overflow: hidden;
}

.interview-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.interview-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.interview-counter {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--on-surface-variant);
}

.interview-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-container);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.interview-timer.warning {
    color: var(--error);
    animation: pulse 1s infinite;
}

.question-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    min-height: 0;
}

.question-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.3;
    color: white;
}

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

/* === AI Avatar + Waveform === */

.ai-avatar-section {
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.ai-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--surface-variant), var(--surface-container-high));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 48px;
}

.waveform-bar {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    animation: waveformBounce 1.2s ease-in-out infinite;
}

@keyframes waveformBounce {
    0%, 100% { height: 8px; }
    50% { height: 32px; }
}

.ai-status {
    font-size: 12px;
    color: var(--on-surface-variant);
}

/* === Conversation Log === */

.conversation-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.live-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--error);
    background: rgba(255, 110, 132, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--error);
    animation: pulse 1.5s infinite;
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg {
    border-radius: var(--radius-xl);
    padding: 16px;
}

.msg-ai {
    background: var(--surface-container);
    border-left: 3px solid rgba(163, 166, 255, 0.5);
}

.msg-user {
    background: rgba(162, 142, 252, 0.1);
    border-left: 3px solid rgba(162, 142, 252, 0.5);
}

.msg-sender {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-sender .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.msg-sender .dot-ai {
    background: var(--primary);
}

.msg-sender .dot-user {
    background: var(--secondary);
}

.msg-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-surface);
}

/* === Hint Box === */

.hint-box {
    background: rgba(255, 165, 217, 0.05);
    border: 1px solid rgba(255, 165, 217, 0.2);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    margin: 0 20px 20px;
}

.hint-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.hint-text {
    font-size: 12px;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

/* === Action Hint === */

.action-hint {
    text-align: center;
    padding: 6px 48px 12px;
    font-size: 12px;
    color: var(--outline);
}

.action-hint kbd {
    background: var(--surface-container-highest);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--on-surface-variant);
    border: 1px solid rgba(255,255,255,0.08);
}

/* === Large Mic Button === */

.btn-mic-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: rgba(163, 166, 255, 0.1);
    border: 1px solid rgba(163, 166, 255, 0.25);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.btn-mic-large:hover {
    background: rgba(163, 166, 255, 0.2);
}

.btn-mic-large.recording {
    background: rgba(255, 110, 132, 0.15);
    border-color: rgba(255, 110, 132, 0.4);
    color: var(--error);
    animation: pulse 1.5s infinite;
}

.btn-mic-large .material-symbols-outlined {
    font-size: 22px;
}

.mic-label {
    font-size: 13px;
}

.action-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* === Action Bar === */

.action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 48px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-mic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--on-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-mic:hover {
    background: rgba(255,255,255,0.1);
}

.btn-mic.recording {
    background: rgba(255, 110, 132, 0.2);
    border-color: var(--error);
    color: var(--error);
    animation: pulse 1.5s infinite;
}

.btn-end {
    background: linear-gradient(135deg, var(--error), var(--error-dim));
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-end:hover {
    transform: scale(1.05);
}

.mic-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#audio-visualizer {
    display: none;
    height: 48px;
    width: 120px;
    border-radius: 24px;
}

#audio-visualizer.active {
    display: block;
}

/* === Report === */

.report {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px;
}

.report h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
    color: white;
}

.report .meta {
    text-align: center;
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-bottom: 4px;
}

.report .level {
    text-align: center;
    font-size: 18px;
    margin-bottom: 32px;
}

.report .scores {
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.05);
}

.report .score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.report .score-item + .score-item {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.report .score-item.total {
    font-weight: 700;
    font-size: 17px;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.report .score-label {
    color: var(--on-surface-variant);
}

.report .score-value {
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}

.report .summary {
    font-size: 15px;
    line-height: 1.7;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
}

.report h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    color: white;
}

.report .strengths, .report .gaps, .report .recommendations {
    margin-bottom: 32px;
}

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

.report .strengths li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--on-surface);
}

.report .strengths li::before {
    content: "\2713  ";
    color: var(--green);
}

.report .gaps li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--on-surface);
}

.report .gaps li::before {
    content: "\2717  ";
    color: var(--error);
}

.report .rec-item {
    background: var(--surface-container);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.report .rec-item strong {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
}

.report .rec-item p {
    color: var(--on-surface-variant);
    font-size: 13px;
    margin-top: 6px;
}

.resource-links {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.resource-links li {
    padding: 6px 0;
    font-size: 13px;
}

.resource-links li::before {
    content: none;
}

.resource-links a {
    color: var(--primary);
    text-decoration: none;
}

.resource-links a:hover {
    text-decoration: underline;
}

.lang-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 6px;
}

.lang-ru {
    background: rgba(96, 99, 238, 0.3);
    color: var(--primary);
}

.lang-en {
    background: rgba(255,255,255,0.1);
    color: var(--on-surface-variant);
}

/* === Transcript === */

.transcript-section {
    margin-bottom: 32px;
}

.transcript-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    background: var(--surface-container-low);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255,255,255,0.05);
}

.transcript-msg {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.t-role {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 2px;
    width: 24px;
}

.t-ai .t-role {
    color: var(--primary);
}

.t-user .t-role {
    color: var(--secondary);
}

.t-text {
    color: var(--on-surface);
}

.t-user .t-text {
    color: var(--on-surface-variant);
}

/* === Mentor CTA === */

.mentor-cta {
    background: linear-gradient(135deg, var(--primary-dim), #7c3aed);
    border-radius: var(--radius-2xl);
    padding: 32px;
    text-align: center;
    margin-top: 40px;
}

.mentor-cta p {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.mentor-cta .cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: white;
    color: var(--primary-dim);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.mentor-cta .cta-button:hover {
    opacity: 0.9;
}

/* === Pause Overlay === */

.pause-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 32, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--on-surface-variant);
    z-index: 10;
    border-radius: var(--radius-2xl);
}

.pause-overlay.hidden {
    display: none;
}

/* === Toast === */

#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-container-high);
    color: var(--on-surface);
    padding: 14px 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 158, 11, 0.3);
    font-size: 14px;
    max-width: 90%;
    text-align: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

/* === Footer === */

.footer {
    text-align: center;
    padding: 32px 48px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--on-surface);
}

.footer-copy {
    font-size: 11px;
    color: var(--outline);
}

/* === CTA Section === */

.cta-section {
    background: var(--surface-container);
    border-radius: var(--radius-2xl);
    padding: 64px 48px;
    text-align: center;
    margin: 0 48px 48px;
}

.cta-section h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 15px;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
}

/* === Animations === */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px) translateX(-50%); }
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

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

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--on-surface-variant);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* === Responsive === */

@media (max-width: 1024px) {
    .grid-4, .modules-grid, .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .interview-layout {
        grid-template-columns: 1fr;
    }

    .topic-card-featured {
        grid-column: span 12;
    }

    .topic-card {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #main-content {
        margin-left: 0;
    }

    .grid-4, .modules-grid, .stats-row, .grid-3 {
        grid-template-columns: 1fr;
    }

    .topic-card-featured, .topic-card {
        grid-column: span 12;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .dashboard-header, .stats-row, .modules-grid, .section, .topics-header, .topics-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .interview-layout {
        padding: 16px 20px;
    }

    .action-bar {
        padding: 16px 20px;
    }

    .top-nav-links {
        display: none;
    }
}

/* === Scrollbar === */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--outline);
}

/* === Text Input === */

#text-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--surface-container-low);
    color: var(--on-surface);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: background 0.2s;
}

#text-input:focus {
    background: var(--surface-container-high);
    box-shadow: 0 0 0 2px rgba(163, 166, 255, 0.2);
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-send:hover {
    transform: scale(1.05);
}
