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

/* Utility Classes */
.hidden {
    display: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1001;
}

/* Authentication Styles */
.auth-section {
    margin-left: auto;
}

.user-info-mini {
    display: flex;
    align-items: center;
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.login-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.login-status {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

/* Profile Section Styles */
.profile-section {
    min-height: 80vh;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.welcome-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-card p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.auth-options h4 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-login {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.btn-google {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.btn-google:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-apple {
    background: #000;
    color: white;
    border: 2px solid #000;
}

.btn-apple:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.auth-divider {
    margin: 2rem 0;
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.email-auth {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.guest-features {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.guest-features h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.guest-features p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.8rem 1.5rem;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* User Profile Card */
.user-profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
}

.user-details h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.user-details p {
    margin: 0.5rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.user-provider {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
}

.btn-edit-profile {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-edit-profile:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
}

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

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.user-actions {
    padding: 2rem;
}

.user-actions h4 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.danger-zone {
    border-top: 1px solid #dc3545;
    padding-top: 2rem;
    margin-top: 2rem;
}

.danger-zone h5 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.signout-section {
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #eee;
}

.btn-signout {
    min-width: 200px;
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-modal.hidden {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.auth-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 9999;
    pointer-events: auto;
    position: relative;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-close:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.auth-modal form {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

/* Old hamburger styles - replaced by mobile.css */

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Home Section */
.home-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.main-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.nav-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.nav-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.quick-stat {
    text-align: center;
}

.quick-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.quick-stat .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.breadcrumb-item {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #667eea;
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: " > ";
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb-item.clickable {
    cursor: pointer;
    text-decoration: underline;
}

.breadcrumb-item.clickable:hover {
    color: #667eea;
}

/* Lessons Section */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.level-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.level-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.level-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.level-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.level-progress-mini {
    margin-top: 1rem;
}

.progress-bar-mini {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-mini {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text-mini {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

.level-content {
    margin-top: 3rem;
}

.level-content.hidden {
    display: none;
}

.back-btn {
    margin-bottom: 2rem;
}

.btn-back {
    background-color: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.btn-back:hover {
    background-color: #34495e;
    border-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

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

.subject-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

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

.subject-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.subject-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Topics Section */
.topics-content {
    margin-top: 3rem;
}

.topics-content.hidden {
    display: none;
}

/* Lesson Content Page */
.lesson-content-page {
    margin-top: 3rem;
}

.lesson-content-page.hidden {
    display: none;
}

.lesson-content-page .lesson-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Quiz Content Page */
.quiz-content-page {
    margin-top: 3rem;
}

.quiz-content-page.hidden {
    display: none;
}

.quiz-content-page .quiz-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.topic-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.topic-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.topic-card p {
    color: #666;
    font-size: 0.9rem;
}

.topic-card.completed {
    background: #f8fff8;
    border: 2px solid #4caf50;
    position: relative;
}

.topic-card.completed h3 {
    color: #2e7d32;
}

.completed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-success {
    background-color: #4caf50;
    color: white;
    border: 2px solid #4caf50;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-success:hover {
    background-color: #4caf50;
    border-color: #4caf50;
    transform: none;
}

/* Level Progress */
.level-progress {
    margin-top: 3rem;
}

.level-progress h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

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

.level-progress-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.level-progress-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.progress-text {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #667eea;
}

/* Data Management Section */
.data-management {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.data-management h3 {
    color: #495057;
    margin-bottom: 2rem;
    text-align: center;
}

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

.data-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.data-section h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.data-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Lesson Quizzes */
.lesson-quizzes {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.lesson-quizzes.hidden {
    display: none;
}

.lesson-quizzes h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.quiz-types {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Fill in the blank input */
.fill-input {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    outline: none;
    margin-top: 1rem;
}

.fill-input:focus {
    border-color: #667eea;
}

/* All questions layout */
.all-questions {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.all-questions .quiz-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.all-questions .quiz-question h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.all-questions .quiz-question p {
    font-weight: 500;
    margin-bottom: 1rem;
}

.answer-feedback {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Dictionary Section */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

#word-search {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    width: 400px;
    max-width: 100%;
    outline: none;
}

#word-search:focus {
    border-color: #667eea;
}

.search-container button {
    padding: 1rem 1.5rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
}

.word-result {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 200px;
}

/* Progress Section */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.overview-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.overview-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 0.5rem 0;
}

.overview-content p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

.detailed-progress {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detailed-progress h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.level-progress-detailed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.level-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
}

.level-badge-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.level-name {
    font-weight: 500;
    color: #333;
}

.progress-bar-detailed {
    flex: 1;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-detailed {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

.progress-actions {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.progress-actions h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 10000;
    padding: 5px;
    user-select: none;
    pointer-events: auto;
}

.close:hover {
    color: #333;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Old Responsive Design - replaced by mobile.css */
/* @media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .auth-section {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        margin-left: 0;
    }
    
    .login-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn-login {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .user-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .user-name {
        max-width: none;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        z-index: 999;
        list-style: none;
        margin: 0;
    }
    
    .nav-menu li {
        padding: 0.5rem 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .nav-menu .auth-section {
        display: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1000;
        position: relative;
        pointer-events: auto;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 250px;
    }

    #word-search {
        width: 300px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    /* Profile Section Mobile */
    .welcome-card {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-login {
        width: 100%;
        max-width: 280px;
    }
    
    .email-auth {
        flex-direction: column;
        align-items: center;
    }
    
    .user-profile-card {
        margin: 0 1rem;
    }
    
    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .btn-edit-profile {
        margin-left: 0;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .auth-modal .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .auth-modal form {
        padding: 1.5rem;
    }
}

/* Quiz Styles */
.quiz-question {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.quiz-option {
    padding: 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: #667eea;
    background-color: #f0f0ff;
}

.quiz-option.selected {
    border-color: #667eea;
    background-color: #667eea;
    color: white;
}

.quiz-option.correct {
    border-color: #4caf50;
    background-color: #4caf50;
    color: white;
}

.quiz-option.incorrect {
    border-color: #f44336;
    background-color: #f44336;
    color: white;
}

.quiz-score {
    text-align: center;
    font-size: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

/* Lesson Content Styles */
.lesson-content {
    line-height: 1.8;
}

.lesson-content h3 {
    color: #667eea;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.lesson-content p {
    margin-bottom: 1rem;
}

.lesson-content .example {
    background: #f0f0ff;
    padding: 1rem;
    border-left: 4px solid #667eea;
    margin: 1rem 0;
    border-radius: 5px;
}

.lesson-content .tip {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    margin: 1rem 0;
    border-radius: 5px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading Animations */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-container {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-animation {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4caf50;
    position: relative;
    animation: successPulse 0.6s ease-in-out;
}

.success-animation::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #667eea;
    animation: confettiFall 3s linear forwards;
}

.confetti-piece:nth-child(2n) { background: #4caf50; }
.confetti-piece:nth-child(3n) { background: #ff6b6b; }
.confetti-piece:nth-child(4n) { background: #ffc107; }
.confetti-piece:nth-child(5n) { background: #9c27b0; }

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* All sections hidden by default, JavaScript will control visibility */

/* End of old mobile styles - replaced by mobile.css */