/* === Course Card === */
.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-card-content {
    padding: 1.5rem;
}

.course-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.course-card-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.course-card-price span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* === Form Styles === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* === Auth Forms === */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: var(--bg);
}

.auth-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    position: relative;
}

.parent-login-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    border-right: 3px solid var(--primary);
}

.parent-login-hint p {
    margin-bottom: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    font-size: 1.5rem;
    color: var(--text-light);
    padding: 0.5rem;
}

/* === Stats Cards === */
.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
}

/* === Features === */
.features {
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--text-light);
}

/* === Trial Section === */
.trial-section {
    background: var(--gradient-dark);
    color: var(--white);
}

.trial-video {
    background: #000;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.trial-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Comments === */
.comment-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-name {
    font-weight: 700;
    color: var(--dark);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text);
}

/* === Dashboard === */
.dashboard {
    padding-top: 6rem;
    min-height: 100vh;
}

.dashboard-header {
    background: var(--gradient);
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--white);
    margin-bottom: 2rem;
}

.dashboard-welcome {
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-balance {
    font-size: 2rem;
    font-weight: 800;
}

/* === Lesson Card === */
.lesson-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.lesson-card:hover {
    background: #f1f5f9;
}

.lesson-icon {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-icon.completed {
    background: var(--success);
    color: var(--white);
}

.lesson-icon.locked {
    background: var(--error);
    color: var(--white);
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-weight: 600;
}

.lesson-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* === Video Player === */
.video-container {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-watermark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    pointer-events: none;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--dark);
    color: var(--white);
}

.watch-count {
    color: var(--accent);
    font-weight: 600;
}