:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #eef2ff;
    --muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --border-radius: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header .logo svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.logo-text {
    white-space: nowrap;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-nav-item:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
}

.sidebar-nav-item.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-footer .language-selector {
    width: 100%;
}

.sidebar-footer .lang-select {
    width: 100%;
}

.sign-out-btn {
    width: 100%;
    justify-content: center;
    color: var(--error);
    border-left: none;
}

.sign-out-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.logo-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-mobile svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

/* Header */
header {
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    margin-left: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-open header {
    margin-left: 280px;
}

body.sidebar-open main {
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

main {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-select:hover {
    border-color: var(--accent);
}

.lang-select:focus {
    outline: none;
    border-color: var(--accent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.logo-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    margin-right: 1.5rem;
}

.logo-large svg {
    width: 100%;
    height: 100%;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo-svg-animated {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Enhanced Landing Page Styles */
.hero-landing {
    position: relative;
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge span {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.limited-time-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    border: none;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6);
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle strong {
    color: #fbbf24;
    font-weight: 700;
}

.hero-urgency {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #fbbf24;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    animation: fadeInUp 0.8s ease-out 0.5s both, pulse-urgency 2s ease-in-out 1.5s infinite;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-urgency strong {
    color: #f59e0b;
    font-weight: 700;
}

@keyframes pulse-urgency {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

.cta-urgency-text {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #fbbf24;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both, pulse-urgency 2s ease-in-out 1.5s infinite;
}

.cta-urgency-text strong {
    color: #f59e0b;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.hero-stats .stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-trust {
    margin-top: 2rem;
    font-size: 0.9375rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-large svg {
    transition: transform 0.3s ease;
}

.btn-large:hover svg {
    transform: translateX(4px);
}

.features-landing {
    padding: 6rem 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-landing .features-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.features-landing .feature-card {
    text-align: left;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.features-landing .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--accent-light);
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.features-landing .feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.features-landing .feature-icon {
    width: 5rem;
    height: 5rem;
    background: var(--gradient);
    color: white;
    margin: -2.5rem auto 1.5rem 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.features-landing .feature-card h3,
.features-landing .feature-card p {
    padding: 0 2.5rem;
}

.features-landing .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-landing .feature-card p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.stats-landing {
    padding: 4rem 0;
    background: white;
}

.stats-landing .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-landing .stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-landing .stat-item p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
}

.cta-landing {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
}

.cta-landing h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta-landing > .container > p {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-trust {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.cta-trust .limited-time {
    color: #fbbf24;
    font-weight: 600;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #5a5fcf 0%, #6b3fa0 100%);
}

.btn-primary:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--border-radius);
    background: var(--card);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* App Sections */
.app-section {
    display: none;
    padding: 3rem 0;
    min-height: 70vh;
}

.app-section.active {
    display: block;
}

/* Level Selector */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.level-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.level-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.level-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--accent-light);
    position: relative;
}

.level-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.level-card:hover .level-image img {
    transform: scale(1.1);
}

.level-icon {
    width: 5rem;
    height: 5rem;
    margin: -2.5rem auto 1.5rem;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: var(--shadow);
    border: 3px solid var(--accent-light);
    position: relative;
    z-index: 1;
}

.level-card h3,
.level-card p,
.level-card .progress-bar {
    padding: 0 2.5rem;
}

.level-card .progress-bar {
    margin-bottom: 2.5rem;
}

.level-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.level-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 10px;
    background-color: var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Course Path */
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.course-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.unit-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.unit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.unit-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--accent-light);
    position: relative;
}

.unit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.unit-card:hover .unit-image img {
    transform: scale(1.1);
}

.unit-header,
.lessons-list {
    padding: 0 2rem;
}

.unit-header {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.unit-title {
    font-size: 1.375rem;
    font-weight: 600;
}

.unit-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.lesson-item:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
}

.lesson-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border);
    color: var(--muted);
    flex-shrink: 0;
}

.lesson-item.completed .lesson-icon {
    background: var(--success);
    color: white;
}

.lesson-item.active .lesson-icon {
    background: var(--gradient);
    color: white;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.lesson-duration {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Lesson View */
.lesson-container {
    max-width: 900px;
    margin: 0 auto;
}

.lesson-header {
    margin-bottom: 2.5rem;
}

.lesson-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.lesson-objective {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.lesson-content {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.lesson-image-container {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lesson-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.lesson-section {
    margin-bottom: 2.5rem;
}

.lesson-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
}

.lesson-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--accent-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent);
}

.example-en {
    font-weight: 600;
    font-size: 1.125rem;
}

.example-es {
    color: var(--muted);
    font-style: italic;
}

.grammar-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--accent-light);
    border-radius: 0.75rem;
}

.tip-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.vocabulary-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.vocab-item {
    padding: 1rem;
    background: var(--accent-light);
    border-radius: 0.75rem;
    border-left: 3px solid var(--accent);
}

.vocab-word {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.vocab-translation {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.vocab-example {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.learning-strategies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--accent-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent);
}

.strategy-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.strategy-text {
    flex: 1;
    line-height: 1.6;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--accent-light);
    border-radius: 0.75rem;
}

.play-btn {
    min-width: auto;
    width: auto;
    height: auto;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 1rem;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #5a5fcf 0%, #6b3fa0 100%);
}

.play-btn:active {
    transform: translateY(0);
}

.play-btn .play-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    color: white;
}

.play-btn .play-btn-text {
    white-space: nowrap;
    color: white;
}

.play-btn svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.audio-text {
    flex: 1;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.lesson-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Practice Section */
.practice-container {
    max-width: 900px;
    margin: 0 auto;
}

.practice-header {
    margin-bottom: 3rem;
    text-align: center;
}

.practice-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.practice-instructions {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.practice-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.practice-item {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.practice-item.unanswered {
    border-color: var(--error);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.practice-count {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.practice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.practice-pill {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.practice-pill.difficulty-easy {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.practice-pill.difficulty-medium {
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.practice-pill.difficulty-hard {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.item-prompt {
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
}

.option.selected {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.option.correct {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
}

.option.incorrect {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.1);
}

.option input {
    display: none;
}

.option-label {
    flex: 1;
    cursor: pointer;
}

.blank-input {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
    font-family: inherit;
}

.blank-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.practice-hint {
    margin-top: 0.75rem;
    font-style: italic;
    color: var(--text-secondary);
}

.practice-feedback {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.practice-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

/* Quiz Section */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-header {
    margin-bottom: 3rem;
    text-align: center;
}

.quiz-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.quiz-question {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.question-text {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Results Section */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.results-header {
    margin-bottom: 3rem;
}

.results-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.score-display {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.score-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.results-details {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid var(--border);
}

.result-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.question-result {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.user-answer {
    color: var(--error);
    margin-bottom: 0.5rem;
}

.correct-answer {
    color: var(--success);
    font-weight: 500;
}

.explanation {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Navigation - Removed, using sidebar instead */

.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Course Progress Card */
.course-progress-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.course-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-progress-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.overall-progress-percentage {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-progress-bar-container {
    margin-bottom: 2rem;
}

.course-progress-bar {
    width: 100%;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.course-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.metric-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.metric-item svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    flex-shrink: 0;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-chart {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
}

.level-progress {
    margin-bottom: 2rem;
}

.level-progress:last-child {
    margin-bottom: 0;
}

.level-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.level-name {
    font-weight: 600;
}

.level-percentage {
    color: var(--text-secondary);
    font-weight: 500;
}

.recent-activity {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--accent-light);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Conversation Simulator */
.conversation-container {
    max-width: 1000px;
    margin: 0 auto;
}

.conversation-header {
    margin-bottom: 2rem;
    text-align: center;
}

.conversation-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.conversation-chat {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    height: 500px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--border);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Custom scrollbar - make it visible */
    scrollbar-width: auto; /* Changed from thin to auto for better visibility */
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem; /* Extra padding at bottom */
    position: relative;
    /* Add subtle background gradient */
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.conversation-chat::-webkit-scrollbar {
    width: 12px; /* Increased from 8px for better visibility */
}

.conversation-chat::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.conversation-chat::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-clip: padding-box;
    min-height: 40px; /* Ensure thumb is visible */
}

.conversation-chat::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
    border-color: rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
}

.conversation-chat::-webkit-scrollbar-thumb:active {
    background: #4338ca;
}


.message {
    display: flex;
    gap: 1rem;
    animation: slideIn 0.3s ease;
    transition: transform 0.2s ease;
}

.message:hover {
    transform: translateX(2px);
}

.message.user {
    flex-direction: row-reverse;
}

.message.user:hover {
    transform: translateX(-2px);
}

.message-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--gradient);
    color: white;
}

.message.ai .message-avatar {
    background: var(--accent-light);
    color: var(--accent);
}

.message-content {
    max-width: 70%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    line-height: 1.6;
}

.message.user .message-content {
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message.ai .message-content {
    background: var(--accent-light);
    color: var(--text-primary);
    border-bottom-left-radius: 0.25rem;
}

.typing-indicator .message-content {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.conversation-input {
    display: flex;
    gap: 1rem;
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    /* Add subtle gradient for visual depth */
    background: linear-gradient(to top, var(--card) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
}

.conversation-input input {
    flex: 1;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--card);
}

.conversation-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: white;
}

.conversation-input input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.conversation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.conversation-actions .btn.active {
    background: var(--success);
    color: white;
}

/* Evaluation Container */
.evaluation-container {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

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

.evaluation-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.evaluation-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.evaluation-instructions {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.evaluation-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
}

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

.evaluation-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.evaluation-results h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.evaluation-score {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.evaluation-score h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.evaluation-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feedback-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feedback-suggestions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.feedback-suggestions h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feedback-suggestions p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Lesson Animations */
.animated-fade-in {
    animation: fadeIn 0.6s ease-in;
}

.animated-slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

.lesson-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.lesson-image-placeholder svg {
    margin-bottom: 1rem;
    color: var(--accent);
}

.audio-btn-animated {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Progressive Skill Loading */
.lesson-section[data-skill] {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.lesson-section[data-skill]:not(.skill-loaded) {
    animation: skillLoading 1.5s ease-in-out infinite;
}

@keyframes skillLoading {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.lesson-section.skill-loaded {
    animation: skillLoaded 0.5s ease-out;
}

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

/* Lesson Exercise Styles */
.listening-exercise,
.speaking-exercise,
.reading-exercise,
.writing-exercise {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.listening-questions,
.reading-questions {
    margin-top: 1.5rem;
}

.listening-question,
.reading-question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card);
    border-radius: var(--border-radius);
}

.speaking-prompt {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.target-phrases {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--card);
    border-radius: var(--border-radius);
}

.target-phrases ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.reading-text {
    padding: 1.5rem;
    background: var(--card);
    border-radius: var(--border-radius);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.reading-answer {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    resize: vertical;
    margin-top: 0.5rem;
}

.writing-task,
.writing-wordcount,
.writing-structure {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.writing-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.writing-word-count-display {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Voice Simulator */
.voice-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.voice-header {
    margin-bottom: 3rem;
}

.voice-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.voice-player {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.voice-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
    min-height: 100px;
}

.voice-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.voice-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.voice-btn.record {
    background: var(--error);
    color: white;
}

.voice-btn.record:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.voice-btn.record.recording {
    animation: pulse 1.5s infinite;
}

.voice-btn.play {
    background: var(--gradient);
    color: white;
}

.voice-btn.play:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Voice Practice - Redesigned Styles */
.partner-selection {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.partner-selection h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.partner-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.partner-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.partner-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.partner-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.partner-card-personality {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.partner-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Conversation Interface */
.voice-conversation {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    max-height: 90vh;
    position: relative;
    /* Ensure proper height calculation */
    box-sizing: border-box;
    /* Add subtle border for better definition */
    border: 1px solid var(--border);
}

.conversation-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--card) 100%);
    flex-shrink: 0; /* Prevent header from shrinking */
    min-height: fit-content;
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.partner-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.partner-personality {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    padding-bottom: 8rem; /* Extra padding at bottom to prevent messages from being hidden behind input */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    scroll-behavior: smooth;
    min-height: 0; /* Important for flex scrolling */
    max-height: 100%; /* Ensure it doesn't exceed container */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    /* Custom scrollbar - make it visible and always show */
    scrollbar-width: auto; /* Changed from thin to auto for better visibility */
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.1);
    /* Ensure messages are always readable */
    scroll-padding-bottom: 2rem;
    /* Ensure proper spacing on mobile */
    margin-bottom: 0;
    /* Show scrollbar on hover and when scrolling */
    position: relative;
}

.conversation-messages::-webkit-scrollbar {
    width: 12px; /* Increased from 8px for better visibility */
}

.conversation-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.conversation-messages::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-clip: padding-box;
    min-height: 40px; /* Ensure thumb is visible */
}

.conversation-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
    border-color: rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
}

.conversation-messages::-webkit-scrollbar-thumb:active {
    background: #4338ca;
}

/* Show scrollbar when hovering over container */
.conversation-messages:hover::-webkit-scrollbar-thumb {
    background: var(--accent);
}


.message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease-out;
    position: relative;
    flex-shrink: 0; /* Prevent messages from shrinking */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-user {
    align-self: flex-end;
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-partner {
    align-self: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
}

.message-user .message-avatar {
    background: var(--accent);
}

.message-partner .message-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.message-content {
    padding: 0.875rem 1.25rem;
    border-radius: 1.25rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    /* Improve readability */
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.message-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.message-user .message-content {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: white;
    border-bottom-right-radius: 0.375rem;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.message-user .message-content:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.message-partner .message-content {
    background: var(--card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-partner .message-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.message[data-isloading="true"] .message-content {
    opacity: 0.7;
    font-style: italic;
    position: relative;
}

.message[data-isloading="true"] .message-content::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

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

.conversation-input {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--card);
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    /* Ensure input area doesn't overlap messages */
    margin-top: auto;
    /* Add subtle gradient for visual separation */
    background: linear-gradient(to top, var(--card) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.recording-indicator {
    position: absolute;
    top: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--error);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    white-space: nowrap;
    pointer-events: none;
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.voice-record-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    /* Ensure minimum touch target size for mobile (44x44px recommended) */
    min-height: 44px;
    /* Prevent text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Improve touch responsiveness */
    -webkit-touch-callout: none;
}

.voice-record-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.voice-record-btn:active {
    transform: translateY(0);
}

.voice-record-btn.recording {
    background: var(--error);
    animation: recordingButtonPulse 1.5s infinite;
}

@keyframes recordingButtonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.voice-record-btn .mic-icon {
    width: 24px;
    height: 24px;
}

.voice-record-btn .btn-text {
    font-size: 1rem;
}

.conversation-actions-inline {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voice-conversation {
        height: calc(100vh - 120px);
        min-height: 500px;
        max-height: calc(100vh - 100px);
        margin: 0 0.5rem;
        border-radius: 0.75rem;
    }
    
    .partner-selection {
        padding: 1.5rem 1rem;
    }
    
    .partner-selection h3 {
        font-size: 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-card {
        padding: 1.25rem;
    }
    
    .message {
        max-width: 85%;
    }
    
    .conversation-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        flex-shrink: 0; /* Prevent header from shrinking */
    }
    
    .partner-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .conversation-messages {
        padding: 1rem;
        padding-bottom: 10rem; /* Extra padding on mobile to prevent messages from being hidden behind input */
        gap: 1rem;
        /* Ensure proper scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Ensure messages are visible above input */
        margin-bottom: 0;
    }
    
    .conversation-input {
        padding: 1rem;
        flex-shrink: 0; /* Ensure input doesn't shrink */
        /* Ensure input stays above messages */
        position: sticky;
        bottom: 0;
        z-index: 100;
        background: var(--card);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        /* Prevent iOS Safari from resizing viewport */
        -webkit-overflow-scrolling: touch;
    }
    
    .voice-record-btn {
        padding: 1rem;
        font-size: 0.9375rem;
        min-height: 48px; /* Larger touch target on mobile */
    }
    
    .recording-indicator {
        top: -3rem;
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    .conversation-actions-inline {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .voice-conversation {
        height: calc(100vh - 100px);
        min-height: 400px;
        max-height: calc(100vh - 80px);
        margin: 0;
        border-radius: 0;
    }
    
    .conversation-messages {
        padding: 0.75rem;
        padding-bottom: 11rem; /* Extra bottom padding for small screens to prevent messages being hidden */
    }
    
    .message {
        max-width: 90%;
        gap: 0.5rem;
    }
    
    .message-content {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        /* Ensure text is readable */
        line-height: 1.5;
    }
    
    .voice-record-btn {
        padding: 0.875rem;
        min-height: 48px; /* Larger touch target on small screens */
    }
    
    .voice-record-btn .btn-text {
        font-size: 0.875rem;
    }
    
    .conversation-header {
        padding: 0.875rem;
    }
    
    .conversation-input {
        padding: 0.875rem;
    }
}

/* Lesson Loading Indicator */
.lesson-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

.loading-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
}

.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--error);
}

.error-message p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    height: 2rem;
    width: 70%;
    margin-bottom: 1.5rem;
}

.skeleton-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--card);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.toast {
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
    color: white;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Business English Styles */
.business-container {
    max-width: 1000px;
    margin: 0 auto;
}

.business-header {
    text-align: center;
    margin-bottom: 3rem;
}

.business-scenarios h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.scenario-card {
    padding: 2rem;
    background: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
}

.scenario-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    border-color: var(--border);
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.scenario-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.scenario-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scenario-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.business-scenario-content {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.business-loading-state {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--border);
    box-shadow: var(--shadow);
}

.business-loading-state.error {
    border-color: var(--error);
}

.business-loading-state .loading-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scenario-image-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.scenario-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.scenario-context {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.key-phrases, .business-vocabulary, .business-tips, .common-mistakes {
    margin: 2rem 0;
}

.key-phrases ul, .business-tips ul, .common-mistakes ul {
    list-style: none;
    padding: 0;
}

.key-phrases li, .business-tips li, .common-mistakes li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--accent-light);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent);
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vocab-card {
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.vocab-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.vocab-card strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.vocab-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* Topic Suggestions */
.topic-suggestions-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.suggestions-header {
    margin-bottom: 2rem;
    text-align: center;
}

.suggestions-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.suggestions-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.suggestion-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.suggestion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.suggestion-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.suggestion-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.learning-path-reminder {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

.learning-path-reminder svg {
    color: var(--accent);
    flex-shrink: 0;
}

.learning-path-reminder strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.learning-path-reminder p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.key-phrases ul, .business-tips ul {
    list-style: none;
    padding: 0;
}

.key-phrases li, .business-tips li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: var(--accent-light);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent);
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.vocab-card {
    padding: 1rem;
    background: var(--accent-light);
    border-radius: 0.5rem;
}

.vocab-card strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

/* Tutorials Styles */
.tutorials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tutorials-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    padding: 2rem;
    background: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tutorial-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tutorial-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tutorial-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.tutorial-modal.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.tutorial-modal-content {
    position: relative;
    background: var(--card);
    border-radius: 1.5rem;
    padding: 0;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tutorial-modal-content.animate-in {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.tutorial-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 2.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.tutorial-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tutorial-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.tutorial-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tutorial-body {
    padding: 2.5rem;
    overflow-y: auto;
    line-height: 1.8;
    flex: 1;
}

.tutorial-footer {
    padding: 1.5rem 2.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.tutorial-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tutorial-body ul, .tutorial-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.tutorial-body li {
    margin: 0.5rem 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--accent-light);
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent);
}

.faq-item strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

/* Footer */
footer {
    padding: 3rem 0 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    margin-top: 5rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Responsive Tutorial Modal */
@media (max-width: 768px) {
    .tutorial-modal-content {
        max-width: 100%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .tutorial-header {
        padding: 1.5rem 1.5rem;
    }
    
    .tutorial-header h2 {
        font-size: 1.5rem;
    }
    
    .tutorial-body {
        padding: 1.5rem;
    }
    
    .tutorial-footer {
        padding: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    body.sidebar-open header {
        margin-left: 0;
    }
    
    body.sidebar-open main {
        margin-left: 0;
    }
    
    .sidebar.active {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }
    
    .logo-text {
        display: none;
    }
    
    .sidebar-header .logo {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    /* Landing page responsive */
    .hero-landing {
        padding: 4rem 0 5rem !important;
    }
    
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem !important;
    }
    
    .hero-stats .stat-label {
        font-size: 0.875rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 1.0625rem !important;
        padding: 0 1rem;
    }
    
    .cta-landing {
        padding: 4rem 0 !important;
    }
    
    .cta-landing h2 {
        font-size: 2rem !important;
        padding: 0 1rem;
    }
    
    .cta-landing > .container > p {
        font-size: 1.125rem !important;
        padding: 0 1rem;
    }
    
    .features-landing .feature-card {
        text-align: center !important;
    }
    
    .btn-large {
        padding: 1rem 1.75rem !important;
        font-size: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .course-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .practice-actions, .quiz-navigation, .results-actions, .conversation-actions {
        flex-direction: column;
    }
    
    .practice-actions .btn, .quiz-navigation .btn, .results-actions .btn {
        width: 100%;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    /* Dashboard responsive */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .level-image {
        height: 160px;
    }
    
    .unit-image {
        height: 150px;
    }
    
    .level-icon {
        width: 4rem;
        height: 4rem;
        margin: -2rem auto 1rem;
    }
    
    .app-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .lesson-content, .practice-item, .quiz-question {
        padding: 1.5rem;
    }
    
    .feature-card, .level-card, .unit-card {
        padding: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-card {
        padding: 1.25rem;
    }
    
    .level-card {
        padding: 1.25rem;
    }
    
    .unit-card {
        padding: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Professional Auth Modal Styles with Animations */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.auth-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    max-width: 440px;
    width: 100%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    overflow: hidden;
}

.auth-content.animate-in {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    color: white;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.auth-subtitle {
    font-size: 0.9375rem;
    opacity: 0.9;
    color: white;
}

.auth-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 2.5rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--accent);
}

.btn-auth-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-divider {
    margin: 0 2rem;
    text-align: center;
    position: relative;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.btn-google {
    margin: 0 2rem 1.5rem;
    width: calc(100% - 4rem);
    padding: 0.875rem 1rem;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-google:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-google:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.error-message {
    margin: 0 2rem 1rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    color: var(--error);
    font-size: 0.875rem;
    text-align: center;
}

.error-message.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Responsive Auth Modal */
@media (max-width: 768px) {
    .auth-content {
        max-width: 100%;
        margin: 1rem;
        border-radius: 1.25rem;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .btn-google {
        margin: 0 1.5rem 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .auth-footer {
        padding: 1.5rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn-sm {
        width: 100%;
    }
    
    .stats-landing .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-landing .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-landing .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COMPREHENSIVE ENGLISH LEVEL EVALUATION
   ============================================ */

.evaluation-main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.evaluation-header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.evaluation-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.evaluation-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.evaluation-steps-container {
    position: relative;
}

.evaluation-step {
    display: none;
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.evaluation-step.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.step-content {
    min-height: 300px;
}

.evaluation-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.question-text {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-option {
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-primary);
}

.question-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(5px);
}

.question-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
}

.question-option.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.question-option.incorrect {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.question-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reading-passage {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.reading-passage h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.reading-passage p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.writing-textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.writing-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.writing-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.writing-word-count {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.writing-word-count .writing-target {
    font-weight: 600;
    color: var(--accent);
}

.writing-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    overflow: hidden;
}

.writing-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.writing-status-badge {
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #312e81;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.writing-status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.writing-status-badge.success,
.writing-status-badge.ready {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
}

.writing-status-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.writing-status-badge.evaluating {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.writing-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.evaluation-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.evaluation-progress {
    margin-top: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 6px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Evaluation Results */
.evaluation-results-summary {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.overall-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.nav-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
    display: none;
    align-items: center;
    gap: 0.2rem;
}

.nav-badge.badge-complete {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.sidebar-nav-item.nav-item-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.conversation-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .conversation-dashboard {
        grid-template-columns: 1fr;
    }
}

.conversation-main .conversation-container {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.conversation-sidebar {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.scenario-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #312e81;
    font-weight: 600;
    font-size: 0.85rem;
}

.conversation-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.conversation-metric-card {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    padding: 0.85rem;
}

.conversation-metric-card span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.conversation-metric-card strong,
.conversation-metric-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.conversation-topics ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.conversation-topics li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.conversation-topics li span {
    color: var(--accent);
    font-size: 1.2rem;
}

.conversation-coach-note {
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.95rem;
    line-height: 1.6;
}

.voice-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .voice-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .voice-coach-panel {
        order: -1; /* Show coach panel first on mobile */
    }
}

@media (max-width: 768px) {
    .voice-layout {
        gap: 1rem;
    }
    
    .voice-coach-panel {
        padding: 1.25rem;
    }
    
    .voice-analytics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .voice-metric {
        padding: 0.75rem 0.5rem;
    }
    
    .voice-metric strong {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .voice-layout {
        gap: 0.75rem;
    }
    
    .voice-coach-panel {
        padding: 1rem;
    }
    
    .voice-analytics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .voice-metric {
        padding: 0.875rem;
    }
}

.voice-coach-panel {
    background: var(--card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.voice-coach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.voice-role-badge {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.voice-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.voice-metric {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    padding: 0.85rem;
}

.voice-metric span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.voice-metric strong {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.voice-coach-note,
.voice-session-summary {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.voice-session-summary {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.05);
}

.evaluation-lock-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px dashed rgba(15, 23, 42, 0.2);
    background: rgba(15, 23, 42, 0.03);
    margin-bottom: 1.5rem;
}

.evaluation-lock-banner h3 {
    margin: 0 0 0.4rem 0;
}

.evaluation-locked .evaluation-steps-container {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.level-badge {
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow);
}

.level-a1 { background: #ef4444; }
.level-a2 { background: #f59e0b; }
.level-b1 { background: #10b981; }
.level-b2 { background: #3b82f6; }
.level-c1 { background: #8b5cf6; }

.skills-breakdown {
    margin-top: 2rem;
}

.skills-breakdown h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-scores {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.writing-eval-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.writing-eval-card.muted {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.writing-eval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.writing-eval-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 64px;
    text-align: right;
}

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

.writing-eval-section {
    background: rgba(99, 102, 241, 0.04);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.writing-eval-section h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.writing-eval-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.writing-eval-lists ul {
    margin: 0.5rem 0 0 1.25rem;
    color: var(--text-secondary);
}

.writing-eval-card ul li {
    margin-bottom: 0.35rem;
}

.muted-text {
    color: var(--text-secondary);
    font-style: italic;
}

.skill-name {
    min-width: 100px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    flex: 1;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.skill-score {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

/* Roadmap Styles */
.roadmap-container {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.roadmap-container h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.roadmap-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.roadmap-phase {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 2rem;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.roadmap-phase:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.phase-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.phase-focus {
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.phase-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.phase-goals h5,
.phase-activities h5,
.phase-lessons h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.phase-goals ul,
.phase-activities ul,
.phase-lessons ul {
    list-style: none;
    padding: 0;
}

.phase-goals li,
.phase-activities li,
.phase-lessons li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.phase-goals li::before,
.phase-activities li::before,
.phase-lessons li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.roadmap-priorities {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.roadmap-priorities h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.priority-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.priority-tag {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.study-plan {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.study-plan h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.study-plan-details p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.study-recommendations {
    margin-top: 1rem;
}

.study-recommendations h5 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.study-recommendations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.study-recommendations li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.roadmap-milestones {
    margin-bottom: 2rem;
}

.roadmap-milestones h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent);
}

.milestone-week {
    min-width: 80px;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 0.5rem;
    font-weight: 700;
    text-align: center;
    font-size: 0.875rem;
    height: fit-content;
}

.milestone-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.milestone-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.roadmap-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Responsive Evaluation */
@media (max-width: 768px) {
    .evaluation-main-title {
        font-size: 2rem;
    }
    
    .evaluation-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .overall-score {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .phase-content {
        grid-template-columns: 1fr;
    }
    
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .roadmap-container {
        padding: 1.5rem;
    }
    
    .milestone-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .milestone-week {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .evaluation-main-title {
        font-size: 1.75rem;
    }
    
    .evaluation-step {
        padding: 1.25rem;
    }
    
    .evaluation-navigation {
        flex-direction: column;
    }
    
    .evaluation-navigation .btn {
        width: 100%;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skill-bar {
        width: 100%;
    }
    
    .skill-score {
        text-align: left;
    }
}

/* ============================================
   AI STUDY RECOMMENDATIONS & INSIGHTS
   ============================================ */

.ai-recommendations-card,
.ai-insights-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.ai-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ai-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.btn-icon-sm:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.ai-recommendations-content,
.ai-insights-content {
    min-height: 200px;
}

.recommendations-list,
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item,
.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.recommendation-item:hover,
.insight-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.recommendation-item.high {
    border-left: 4px solid var(--error);
}

.recommendation-item.medium {
    border-left: 4px solid var(--accent);
}

.recommendation-item.low {
    border-left: 4px solid var(--success);
}

.recommendation-icon,
.insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
}

.recommendation-content,
.insight-content {
    flex: 1;
}

.recommendation-content h4,
.insight-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.recommendation-content p,
.insight-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.insight-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.insight-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.insight-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.insight-progress span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 45px;
    text-align: right;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.error-message {
    color: var(--error);
    text-align: center;
    padding: 1rem;
    font-size: 0.9375rem;
}

/* Responsive AI Features */
@media (max-width: 768px) {
    .ai-recommendations-card,
    .ai-insights-card {
        padding: 1.5rem;
    }
    
    .ai-card-header {
        flex-wrap: wrap;
    }
    
    .ai-card-header h3 {
        font-size: 1.25rem;
    }
    
    .recommendation-item,
    .insight-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .recommendation-icon,
    .insight-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ai-recommendations-card,
    .ai-insights-card {
        padding: 1.25rem;
    }
    
    .recommendation-content h4,
    .insight-content h4 {
        font-size: 1rem;
    }
    
    .recommendation-content p,
    .insight-content p {
        font-size: 0.875rem;
    }
}

/* ============================================
   PRACTICE ENCOURAGEMENT SECTION
   ============================================ */

.practice-encouragement {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--border-radius);
    border: 2px solid var(--accent);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.encouragement-content {
    max-width: 600px;
    margin: 0 auto;
}

.encouragement-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.encouragement-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.encouragement-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.encouragement-content .btn {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

/* Responsive Practice Encouragement */
@media (max-width: 768px) {
    .practice-encouragement {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .encouragement-icon {
        width: 56px;
        height: 56px;
    }
    
    .encouragement-content h3 {
        font-size: 1.5rem;
    }
    
    .encouragement-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .practice-encouragement {
        padding: 1.5rem 1rem;
    }
    
    .encouragement-icon {
        width: 48px;
        height: 48px;
    }
    
    .encouragement-content h3 {
        font-size: 1.25rem;
    }
    
    .encouragement-content p {
        font-size: 0.9375rem;
    }
}

