/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    top: 0 !important; /* Fix Google Translate body positioning */
}

/* Fluid Images and Media */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

/* Hide Google Translate toolbar */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.skiptranslate {
    display: none !important;
}

/* Fix Google Translate affecting layout */
#google_translate_element {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.language-dropdown option {
    background: #1a1a2e;
    color: white;
    padding: 0.5rem;
}

/* Sign Up Button */
.signup-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* Login Button */
.login-btn {
    background: #0000FF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #0000CC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.4);
}

/* Logout Button */
.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.user-email {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: default;
    backdrop-filter: blur(10px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-cta p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    opacity: 1;
}

.hero-cta i {
    color: #ffd700;
    margin-right: 8px;
    font-size: 1.1rem;
}

.hero-cta strong {
    color: #ffd700;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #0000FF;
    color: white;
}

.btn-primary:hover {
    background: #0000CC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0000FF;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.tablet-mockup {
    position: relative;
    width: 450px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 3px #1a1a1a,
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

.tablet-mockup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -3px;
    transform: translateY(-50%);
    width: 3px;
    height: 60px;
    background: #0a0a0a;
    border-radius: 2px 0 0 2px;
}

.tablet-mockup::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -3px;
    width: 3px;
    height: 80px;
    background: #0a0a0a;
    border-radius: 0 2px 2px 0;
}

@keyframes float {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0px);
    }
    50% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(-15px);
    }
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.teaching-scene {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.logo-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: white;
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-logo {
    width: 140px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.teaching-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem 1.5rem;
    margin-top: 70px;
    gap: 2rem;
}

/* Featured Subject - English Language */
.featured-subject {
    text-align: center;
    animation: fadeInScale 0.8s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.featured-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.featured-icon i {
    font-size: 2.5rem;
    color: #ffd700;
}

.featured-subject h3 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.featured-subject p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.level-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 215, 0, 0.9);
    color: #0000FF;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.badge:nth-child(1) { animation-delay: 0.3s; }
.badge:nth-child(2) { animation-delay: 0.4s; }
.badge:nth-child(3) { animation-delay: 0.5s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Other Subjects Section */
.other-subjects {
    width: 100%;
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.subjects-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subject-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 0.3rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-item i {
    font-size: 1.5rem;
    color: white;
}

.icon-item span {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Devices Showcase Section */
.devices-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.devices-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.devices-showcase::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.showcase-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.showcase-header h2 i {
    color: #0000FF;
}

.devices-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    min-height: 500px;
    z-index: 1;
}

/* Laptop Device */
.laptop-device {
    position: relative;
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

@keyframes floatLaptop {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-15px) rotateX(2deg);
    }
}

.laptop-screen {
    width: 600px;
    height: 380px;
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    padding: 12px;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 255, 0.2);
    position: relative;
    animation: screenGlow 3s ease-in-out infinite;
}

@keyframes screenGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 2px #333,
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(0, 0, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 0 2px #333,
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 60px rgba(0, 0, 255, 0.4);
    }
}

.laptop-screen::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #444;
    border-radius: 50%;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/* YouTube Interface Styles */
.youtube-header {
    background: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.youtube-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.youtube-logo i {
    font-size: 1.8rem;
    color: #FF0000;
}

.youtube-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #0000FF;
}

.channel-details h4 {
    margin: 0;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.channel-details p {
    margin: 0;
    font-size: 0.7rem;
    color: #666;
}

.youtube-content {
    background: #f9f9f9;
}

.youtube-tabs {
    display: flex;
    gap: 20px;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    font-size: 0.85rem;
    color: #606060;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #000;
    border-bottom-color: #000;
    font-weight: 600;
}

.youtube-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    max-height: 240px;
    overflow-y: auto;
}

.youtube-videos::-webkit-scrollbar {
    width: 6px;
}

.youtube-videos::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.youtube-videos::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.youtube-videos::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.yt-video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: popIn 0.5s ease forwards;
    opacity: 0;
}

.yt-video-card:nth-child(1) { animation-delay: 0.8s; }
.yt-video-card:nth-child(2) { animation-delay: 0.9s; }
.yt-video-card:nth-child(3) { animation-delay: 1s; }
.yt-video-card:nth-child(4) { animation-delay: 1.1s; }
.yt-video-card:nth-child(5) { animation-delay: 1.2s; }
.yt-video-card:nth-child(6) { animation-delay: 1.3s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.yt-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.yt-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.yt-video-card:hover .play-overlay {
    background: rgba(255, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay i {
    color: white;
    font-size: 1rem;
    margin-left: 2px;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

.yt-info {
    padding: 8px;
}

.yt-info h5 {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-info p {
    margin: 0;
    font-size: 0.65rem;
    color: #606060;
}

.laptop-base {
    width: 650px;
    height: 15px;
    background: linear-gradient(to bottom, #d0d0d0 0%, #a0a0a0 100%);
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.laptop-base::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #888;
    border-radius: 0 0 3px 3px;
}

/* Mobile Device */
.mobile-device {
    position: relative;
    animation: slideInRight 1s ease forwards, floatMobile 3.5s ease-in-out 1.5s infinite;
    opacity: 0;
    animation-delay: 0.5s;
    margin-left: -50px;
    z-index: 2;
}

@keyframes floatMobile {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

.mobile-screen {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 
        0 0 0 3px #333,
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 0, 255, 0.3);
    position: relative;
    animation: mobileGlow 2.5s ease-in-out infinite;
}

@keyframes mobileGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 3px #333,
            0 25px 80px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(0, 0, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 3px #333,
            0 25px 80px rgba(0, 0, 0, 0.4),
            0 0 50px rgba(0, 0, 255, 0.5);
    }
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mobile-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

/* TikTok Interface Styles */
.tiktok-header {
    background: white;
    padding: 28px 12px 4px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.tiktok-logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.tiktok-logo i {
    font-size: 1.2rem;
    color: #000;
}

.tiktok-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.tiktok-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #FE2C55;
    margin-bottom: 4px;
    animation: none;
    opacity: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tiktok-profile h4 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

.tiktok-profile p {
    margin: 1px 0 0 0;
    font-size: 0.65rem;
    color: #666;
}

.tiktok-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
    padding-bottom: 4px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 0.75rem;
    color: #000;
    font-weight: 700;
}

.stat span {
    font-size: 0.6rem;
    color: #666;
}

.tiktok-bio {
    display: none;
}

.tiktok-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 6px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.tiktok-tab {
    font-size: 1rem;
    color: #999;
    cursor: pointer;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tiktok-tab.active {
    color: #000;
    border-bottom-color: #000;
}

.tiktok-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #f9f9f9;
    padding: 2px;
    max-height: 420px;
    overflow-y: auto;
}

.tiktok-video {
    position: relative;
    padding-top: 133%;
    background-color: #FE2C55; /* Fallback color */
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFElEQVR42mP8z8AARMAPIGRpBwAAbw/9C4tiD8AAAAAASUVORK5CYII='); /* Red placeholder */
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
    opacity: 1;
}

.tiktok-video:nth-child(1) { animation: none; }
.tiktok-video:nth-child(2) { animation: none; }
.tiktok-video:nth-child(3) { animation: none; }
.tiktok-video:nth-child(4) { animation: none; }
.tiktok-video:nth-child(5) { animation: none; }
.tiktok-video:nth-child(6) { animation: none; }
.tiktok-video:nth-child(7) { animation: none; }
.tiktok-video:nth-child(8) { animation: none; }
.tiktok-video:nth-child(9) { animation: none; }

.tiktok-video:nth-child(2) {
    background-color: #25F4EE; /* Fallback color */
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFElEQVR42mNkYPhfz/z/z8AARMAPIGRpBwAAbw/9C/9n4LgAAAAASUVORK5CYII='); /* Blue placeholder */
}

.tiktok-video:nth-child(3) {
    background: linear-gradient(135deg, #FE2C55 0%, #FF6B9D 100%);
}

.tiktok-video:nth-child(4) {
    background: linear-gradient(135deg, #25F4EE 0%, #00D4FF 100%);
}

.tiktok-video:nth-child(5) {
    background: linear-gradient(135deg, #FE2C55 0%, #FF6B9D 100%);
}

.tiktok-video:nth-child(6) {
    background: linear-gradient(135deg, #25F4EE 0%, #00D4FF 100%);
}

.tiktok-video:hover {
    transform: scale(1.05);
    z-index: 1;
}

.tiktok-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
}


@keyframes tiktokPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.tiktok-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.tiktok-video:nth-child(1) .tiktok-thumbnail::after {
    content: 'English Lesson';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-video:nth-child(2) .tiktok-thumbnail::after {
    content: 'Study Tips';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-video:nth-child(3) .tiktok-thumbnail::after {
    content: 'Exam Prep';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-video:nth-child(4) .tiktok-thumbnail::after {
    content: 'Grammar';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-video:nth-child(5) .tiktok-thumbnail::after {
    content: 'Math Tips';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-video:nth-child(6) .tiktok-thumbnail::after {
    content: 'Quick Quiz';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tiktok-views {
    position: absolute;
    bottom: 5px;
    left: 5px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tiktok-views i {
    font-size: 0.7rem;
}

.pinned-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #FE2C55;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Showcase Features */
.showcase-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 1.5s; }
.feature-item:nth-child(2) { animation-delay: 1.6s; }
.feature-item:nth-child(3) { animation-delay: 1.7s; }

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 3rem;
    color: #0000FF;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* English Language Section */
.english-section {
    padding: 80px 0;
    background: white;
}

.english-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.english-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.english-filter-btn {
    padding: 12px 24px;
    border: 2px solid #0000FF;
    background: transparent;
    color: #0000FF;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.english-filter-btn i {
    font-size: 1.1rem;
}

.english-filter-btn.active,
.english-filter-btn:hover {
    background: #0000FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.3);
}

.english-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.level-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #0000FF;
}

.clickable-level-card {
    cursor: pointer;
    position: relative;
}

.clickable-level-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 255, 0.2);
}

.clickable-level-card .btn {
    margin-top: 1rem;
}

.level-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-icon i {
    font-size: 2rem;
    color: white;
}

.level-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0000FF;
}

.level-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.level-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.level-card li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.level-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0000FF;
    font-weight: bold;
}

/* Price Section */
.price-section {
    margin: 1.5rem 0;
    text-align: center;
}

.original-price {
    display: block;
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.sale-price {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #0000FF;
    margin-bottom: 0.5rem;
}

/* English Filter Color Schemes */
.level-card.color-both {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-color: #0000FF;
}

.level-card.color-both:hover {
    border-color: #0000FF;
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.2);
}

.level-card.color-both .level-icon {
    background: linear-gradient(135deg, #0000FF 0%, #7b1fa2 100%);
}

.level-card.color-both h3 {
    color: #0000FF;
}

.level-card.color-both li:before {
    color: #0000FF;
}

.level-card.color-speaking {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff6f00;
}

.level-card.color-speaking:hover {
    border-color: #ff6f00;
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.2);
}

.level-card.color-speaking .level-icon {
    background: linear-gradient(135deg, #ff6f00 0%, #f57c00 100%);
}

.level-card.color-speaking h3 {
    color: #ff6f00;
}

.level-card.color-speaking li:before {
    color: #ff6f00;
}

.level-card.color-grammar {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #2e7d32;
}

.level-card.color-grammar:hover {
    border-color: #2e7d32;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
}

.level-card.color-grammar .level-icon {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.level-card.color-grammar h3 {
    color: #2e7d32;
}

.level-card.color-grammar li:before {
    color: #2e7d32;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 3rem;
    color: #0000FF;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Flashcard Section */
.flashcard-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.flashcard-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.upload-area {
    border: 3px dashed rgba(255,255,255,0.5);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.upload-area i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: #ffd700;
    width: 0%;
    transition: width 0.3s ease;
}

.flashcards-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.flashcard {
    width: 100%;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    color: #333;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: #0000FF;
    color: white;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: white;
}

.video-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.grade-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #0000FF;
    background: transparent;
    color: #0000FF;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0000FF;
    color: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (YouTube standard) */
    background: #000;
    overflow: hidden;
}

.video-thumbnail i.fa-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-card:hover .video-thumbnail i.fa-play {
    opacity: 1;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 0.75rem;
}

.video-info h3 {
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.video-actions {
    display: flex !important;
    gap: 0.5rem;
    margin-top: 0.75rem;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

.video-card:hover .video-actions {
    opacity: 1 !important;
    visibility: visible !important;
}

.video-actions .btn-small {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Video Lock Overlay */
.video-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.video-lock-overlay i {
    font-size: 3rem;
    color: #ffd700;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.lock-message {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
}

.video-actions button:disabled:hover {
    transform: none;
    background: #6c757d;
}

/* Grades Section */
.grades-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.grades-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grade-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.grade-card.available:hover {
    transform: translateY(-5px);
}

.grade-card h3 {
    font-size: 2rem;
    color: #0000FF;
    margin-bottom: 1rem;
}

.grade-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.grade-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.grade-card li {
    padding: 0.5rem 0;
    color: #555;
}

.grade-card li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

/* Coming Soon Styles */
.coming-soon-card {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #0000FF;
}

.coming-soon-overlay i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffc107;
}

.coming-soon-overlay h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #0000FF;
}

.coming-soon-card h3 {
    color: #999;
}

.coming-soon-card p,
.coming-soon-card li {
    color: #aaa;
}

.coming-soon-card li:before {
    color: #ccc;
}

.coming-soon-card button[disabled] {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border: 1px solid #dee2e6;
}

.coming-soon-card button[disabled]:hover {
    background: #e9ecef;
    transform: none;
}

/* Video Filter Coming Soon Styles */
.filter-btn.coming-soon {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    position: relative;
}

.filter-btn.coming-soon:hover {
    background: #f8f9fa;
    color: #6c757d;
}

.coming-soon-badge {
    font-size: 0.7rem;
    background: #ffc107;
    color: #212529;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.coming-soon-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.coming-soon-feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid #e9ecef;
}

.coming-soon-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon i {
    font-size: 2.5rem;
    color: white;
}

.coming-soon-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.coming-soon-feature-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.coming-soon-status {
    display: inline-block;
    padding: 8px 16px;
    background: #ffc107;
    color: #212529;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.coming-soon-status i {
    margin-right: 5px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave .shape-fill {
    fill: #f8f9fa;
}

.footer .container {
    padding-top: 100px;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-about {
    padding-right: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffd700;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 i {
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: #ffd700;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ffd700;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
}

.footer-newsletter {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-newsletter p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffd700;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* Beautiful Popup Notifications */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 10000;
    animation: slideInRight 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-popup.success {
    border-left: 4px solid #27ae60;
}

.notification-popup.error {
    border-left: 4px solid #e74c3c;
}

.notification-popup.warning {
    border-left: 4px solid #f39c12;
}

.notification-popup.info {
    border-left: 4px solid #3498db;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-popup.success .notification-icon {
    background: #d4edda;
    color: #27ae60;
}

.notification-popup.error .notification-icon {
    background: #f8d7da;
    color: #e74c3c;
}

.notification-popup.warning .notification-icon {
    background: #fff3cd;
    color: #f39c12;
}

.notification-popup.info .notification-icon {
    background: #d1ecf1;
    color: #3498db;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.notification-message {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-popup.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* Responsive Design */

/* Tablet Landscape and Below (1024px) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .tablet-mockup {
        width: 380px;
        height: 520px;
    }
    
    .laptop-screen {
        width: 550px;
        height: 350px;
    }
    
    .laptop-base {
        width: 590px;
    }
    
    .mobile-device {
        margin-left: -30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait and Below (768px) */
@media (max-width: 768px) {
    /* Disable animations on mobile for better performance */
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0.2s !important;
    }
    
    .laptop-device,
    .mobile-device,
    .tablet-mockup,
    .feature-card,
    .video-card,
    .grade-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Simplify backdrop filters for better performance */
    .nav-menu {
        backdrop-filter: none !important;
    }
    
    /* Optimize TikTok thumbnails loading */
    .tiktok-thumbnail,
    .tiktok-video {
        will-change: auto !important;
        transform: translateZ(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        padding: 1rem;
    }
    
    .hero-cta p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tablet-mockup {
        width: 320px;
        height: 450px;
        transform: rotateY(0deg) rotateX(0deg);
    }
    
    @keyframes float {
        0%, 100% {
            transform: rotateY(0deg) rotateX(0deg) translateY(0px);
        }
        50% {
            transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
        }
    }
    
    .hero-logo {
        width: 70px;
    }
    
    .logo-overlay {
        padding: 5px 10px;
        top: 15px;
    }
    
    .teaching-content {
        padding: 1.5rem 1rem;
        margin-top: 50px;
        gap: 1.5rem;
    }
    
    .featured-icon {
        width: 60px;
        height: 60px;
    }
    
    .featured-icon i {
        font-size: 2rem;
    }
    
    .featured-subject h3 {
        font-size: 1.5rem;
    }
    
    .featured-subject p {
        font-size: 0.85rem;
    }
    
    .badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .subjects-label {
        font-size: 0.75rem;
    }
    
    .subject-icons {
        gap: 0.5rem;
    }
    
    .icon-item {
        padding: 0.6rem 0.2rem;
    }
    
    .icon-item i {
        font-size: 1.2rem;
    }
    
    .icon-item span {
        font-size: 0.6rem;
    }
    
    .features-grid,
    .videos-grid,
    .grades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grade-filter {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .english-filter-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .flashcard-controls {
        flex-wrap: wrap;
    }
    
    /* Section Padding */
    .hero,
    .devices-showcase,
    .english-section,
    .features,
    .video-section,
    .grades-section,
    .coming-soon-section {
        padding: 60px 0;
    }
    
    /* Headings */
    h2 {
        font-size: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .level-card,
    .grade-card,
    .coming-soon-feature-card {
        padding: 1.5rem;
    }
    
    .feature-card i,
    .coming-soon-icon i {
        font-size: 2.5rem;
    }
    
    .feature-card h3,
    .level-card h3 {
        font-size: 1.3rem;
    }
    
    /* Video Cards */
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .video-info h3 {
        font-size: 0.9rem;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
    
    /* Notification Popup */
    .notification-popup {
        min-width: 280px;
        max-width: 90%;
        right: 10px;
        top: 10px;
        padding: 1rem;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-message {
        font-size: 0.85rem;
    }
    
    /* Auth Modal Responsive */
    .auth-modal {
        margin: 5% auto;
        width: 95%;
    }
    
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-icon i {
        font-size: 2rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 15px;
    }
    
    /* Devices Showcase Responsive */
    .devices-showcase {
        padding: 60px 0;
    }
    
    .showcase-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .devices-container {
        flex-direction: column;
        gap: 3rem;
        min-height: auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .laptop-device {
        transform: scale(1);
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .laptop-screen {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 16/10;
    }
    
    .laptop-base {
        width: 100%;
        max-width: 540px;
    }
    
    .youtube-videos {
        grid-template-columns: repeat(2, 1fr);
        max-height: 200px;
        padding: 10px 15px;
    }
    
    .youtube-header {
        padding: 8px 12px;
    }
    
    .youtube-logo i {
        font-size: 1.4rem;
    }
    
    .youtube-logo span {
        font-size: 0.9rem;
    }
    
    .channel-info img {
        width: 28px;
        height: 28px;
    }
    
    .mobile-device {
        margin: 0 auto;
        transform: scale(1);
        max-width: 100%;
        width: 100%;
    }
    
    .showcase-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-wave svg {
        height: 60px;
    }
    
    .footer .container {
        padding-top: 80px;
    }
    
    .footer-about {
        padding-right: 0;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-section h4 {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta p {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    .hero,
    .devices-showcase,
    .english-section,
    .features,
    .video-section,
    .grades-section,
    .coming-soon-section {
        padding: 40px 0;
    }
    
    /* Headings */
    h2 {
        font-size: 1.6rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .feature-card,
    .level-card,
    .grade-card,
    .coming-soon-feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3,
    .level-card h3,
    .grade-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p,
    .level-card p,
    .grade-card p {
        font-size: 0.9rem;
    }
    
    /* Filters */
    .grade-filter,
    .english-filter {
        gap: 0.5rem;
    }
    
    .filter-btn,
    .english-filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* Videos Grid */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .video-info {
        padding: 0.65rem;
    }
    
    .video-info h3 {
        font-size: 0.85rem;
    }
    
    .video-info p {
        font-size: 0.75rem;
    }
    
    .video-actions .btn-small {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* Flashcards */
    .flashcard {
        height: 250px;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-area i {
        font-size: 3rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Notification */
    .notification-popup {
        min-width: 260px;
        padding: 0.85rem;
    }
    
    .notification-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .notification-title {
        font-size: 0.85rem;
    }
    
    .notification-message {
        font-size: 0.8rem;
    }
    
    /* Devices Showcase Small Screen */
    .devices-showcase {
        padding: 40px 0;
    }
    
    .showcase-header h2 {
        font-size: 1.5rem;
    }
    
    .devices-container {
        padding: 0 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .laptop-device {
        transform: scale(1);
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .laptop-screen {
        width: 100%;
        max-width: 450px;
        height: auto;
        aspect-ratio: 16/10;
    }
    
    .laptop-base {
        width: 100%;
        max-width: 480px;
    }
    
    .youtube-videos {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .youtube-tabs {
        padding: 8px 10px;
        gap: 15px;
    }
    
    .tab {
        font-size: 0.75rem;
    }
    
    .yt-info h5 {
        font-size: 0.7rem;
    }
    
    .yt-info p {
        font-size: 0.6rem;
    }
    
    .mobile-device {
        transform: scale(1);
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    /* Footer Small Screen */
    .footer-wave svg {
        height: 40px;
    }
    
    .footer .container {
        padding-top: 60px;
    }
    
    .footer-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.video-card,
.grade-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.auth-modal {
    background-color: white;
    margin: 2% auto 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease;
    position: relative;
}

.auth-modal::-webkit-scrollbar {
    width: 8px;
}

.auth-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 20px 20px 0;
}

.auth-modal::-webkit-scrollbar-thumb {
    background: #0000FF;
    border-radius: 10px;
}

.auth-modal::-webkit-scrollbar-thumb:hover {
    background: #0000CC;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: 300;
    position: absolute;
    right: 25px;
    top: 20px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: #0000FF;
    background: rgba(0, 0, 255, 0.1);
    transform: rotate(90deg);
}

/* Auth Form Styles */
.auth-form {
    padding: 3rem 2.5rem 5rem 2.5rem;
}

.btn-full {
    width: 100%;
    margin-bottom: 1rem;
}

/* Auth Modal Button Overrides */
.auth-form .btn-primary {
    background: #0000FF;
    color: white;
    border: none;
}

.auth-form .btn-primary:hover {
    background: #0000CC;
}

.auth-form .btn-secondary {
    background: white;
    color: #0000FF;
    border: 2px solid #0000FF;
}

.auth-form .btn-secondary:hover {
    background: #0000FF;
    color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.3);
}

.auth-icon i {
    font-size: 2.5rem;
    color: white;
}

.auth-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: #0000FF;
    margin-right: 0.5rem;
    width: 16px;
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forgot-password {
    color: #0000FF;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #0000CC;
    text-decoration: underline;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px !important;
}

.toggle-password-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password-btn:hover {
    color: #0000FF;
}

.toggle-password-btn:focus {
    outline: none;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0000FF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 255, 0.1);
    transform: translateY(-2px);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-notice {
    background: #e3f2fd;
    border-left: 4px solid #0000FF;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-notice i {
    color: #0000FF;
    font-size: 1.2rem;
}

.form-notice span {
    color: #1565c0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 2rem 0 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e1e5e9;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    position: relative;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0000FF;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: #0000FF;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Empty Video State */
.empty-video-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-video-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #0000FF;
    opacity: 0.7;
}

.empty-video-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.empty-video-state p {
    font-size: 1rem;
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* Download Modal Styles */
.download-modal {
    display: flex;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.download-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease;
}

.download-modal-content::-webkit-scrollbar {
    width: 8px;
}

.download-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 20px 20px 0;
}

.download-modal-content::-webkit-scrollbar-thumb {
    background: #0000FF;
    border-radius: 10px;
}

.download-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0000CC;
}

.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.download-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.download-modal-header h3 i {
    color: #0000FF;
    margin-right: 10px;
}

.download-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.download-modal-close:hover {
    color: #333;
}

.download-modal-body {
    padding: 2rem;
}

.download-modal-body > p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.download-option:hover {
    background: #fff;
    border-color: #0000FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.1);
}

.download-option i {
    font-size: 2rem;
    color: #0000FF;
    min-width: 40px;
    text-align: center;
}

.download-option div {
    flex: 1;
}

.download-option strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.download-option span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.download-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #0000FF;
}

.download-note i {
    color: #0000FF;
    font-size: 1.2rem;
    margin-top: 2px;
}

.download-note p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Download Modal */
@media (max-width: 768px) {
    .download-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .download-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .download-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .download-modal-body {
        padding: 1.5rem;
    }
    
    .download-option {
        padding: 1rem;
    }
    
    .download-option i {
        font-size: 1.5rem;
        min-width: 35px;
    }
    
    .download-option strong {
        font-size: 1rem;
    }
    
    .download-option span {
        font-size: 0.85rem;
    }
}

/* Logout Confirmation Modal */
.logout-confirmation-modal {
    display: flex;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.logout-confirmation-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease;
}

.logout-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

.logout-confirmation-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
    }
}

.logout-confirmation-content h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
}

.logout-confirmation-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.logout-note {
    font-size: 0.95rem !important;
    color: #999 !important;
    font-style: italic;
    margin-bottom: 2rem !important;
}

.logout-confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-logout-cancel,
.btn-logout-confirm {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-logout-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-logout-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-logout-confirm:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Responsive Logout Modal */
@media (max-width: 768px) {
    .logout-confirmation-content {
        padding: 2rem;
        width: 95%;
    }
    
    .logout-confirmation-icon {
        width: 70px;
        height: 70px;
    }
    
    .logout-confirmation-icon i {
        font-size: 2rem;
    }
    
    .logout-confirmation-content h2 {
        font-size: 1.5rem;
    }
    
    .logout-confirmation-content p {
        font-size: 1rem;
    }
    
    .logout-confirmation-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-logout-cancel,
    .btn-logout-confirm {
        width: 100%;
        justify-content: center;
    }
}

/* Payment Instruction Modal */
.payment-instruction-modal {
    display: flex;
    position: fixed;
    z-index: 10003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.payment-instruction-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    margin: auto;
}

.payment-instruction-content::-webkit-scrollbar {
    width: 8px;
}

.payment-instruction-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 20px 20px 0;
}

.payment-instruction-content::-webkit-scrollbar-thumb {
    background: #0000FF;
    border-radius: 10px;
}

.payment-instruction-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease-in-out infinite;
}

.payment-instruction-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
    }
}

.payment-instruction-content h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 2rem;
}

.payment-main-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.telegram-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-contact i {
    font-size: 3rem;
    color: white;
}

.telegram-info {
    text-align: left;
}

.telegram-info strong {
    display: block;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.25rem;
}

.telegram-info span {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.payment-steps {
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.payment-steps h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-steps h3 i {
    color: #0000FF;
}

.payment-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.payment-steps li {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-steps li i {
    color: #0000FF;
    min-width: 20px;
}

.payment-steps li strong {
    color: #0088cc;
}

.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    margin-bottom: 1.5rem;
}

.payment-note i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 2px;
}

.payment-note p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.btn-payment-understood {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    color: white;
}

.btn-payment-understood:hover {
    background: linear-gradient(135deg, #0000CC 0%, #0000FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 255, 0.4);
}

/* Responsive Payment Modal */
@media (max-width: 768px) {
    .payment-instruction-modal {
        padding: 1rem 0;
    }
    
    .payment-instruction-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .payment-instruction-icon {
        width: 75px;
        height: 75px;
    }
    
    .payment-instruction-icon i {
        font-size: 2.5rem;
    }
    
    .payment-instruction-content h2 {
        font-size: 1.6rem;
    }
    
    .payment-main-text {
        font-size: 1rem;
    }
    
    .telegram-contact {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .telegram-contact i {
        font-size: 2.5rem;
    }
    
    .telegram-info {
        text-align: center;
    }
    
    .telegram-info strong {
        font-size: 1.3rem;
    }
    
    .payment-steps {
        padding: 1.25rem;
    }
    
    .payment-steps h3 {
        font-size: 1.1rem;
    }
    
    .payment-steps li {
        font-size: 0.95rem;
    }
    
    .btn-payment-understood {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 2rem;
    }
}

/* 12 Tenses for Beginners Page */
.beginner-tenses-page {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #0000FF;
    border: 2px solid #0000FF;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-back-home:hover {
    background: #0000FF;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.3);
}

.beginner-page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.beginner-page-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0000FF 0%, #0000CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.3);
}

.beginner-page-icon i {
    font-size: 3rem;
    color: white;
}

.beginner-page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.beginner-page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.beginner-page-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.beginner-page-stats .stat-item {
    text-align: center;
}

.beginner-page-stats .stat-item i {
    font-size: 2rem;
    color: #0000FF;
    margin-bottom: 0.5rem;
}

.beginner-page-stats .stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.beginner-page-stats .stat-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Login Notice */
.beginner-login-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.beginner-login-notice i {
    font-size: 2rem;
    color: #f39c12;
    flex-shrink: 0;
}

.beginner-login-notice h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-size: 1.2rem;
}

.beginner-login-notice p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
}

.beginner-login-notice a {
    color: #0000FF;
    font-weight: 700;
    text-decoration: underline;
}

.beginner-login-notice a:hover {
    color: #0000CC;
}

/* Videos Grid */
.beginner-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.beginner-video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.beginner-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.beginner-video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.beginner-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beginner-video-lock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.beginner-video-lock i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    animation: lockPulse 2s ease-in-out infinite;
}

.beginner-video-lock span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.beginner-video-info {
    padding: 1.25rem;
}

.beginner-video-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beginner-video-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.beginner-video-actions {
    display: flex;
    gap: 0.75rem;
}

.beginner-video-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Empty State */
.beginner-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.beginner-empty-state i {
    font-size: 4rem;
    color: #0000FF;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.beginner-empty-state h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.beginner-empty-state p {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .beginner-tenses-page {
        padding: 100px 0 60px;
    }
    
    .beginner-page-header {
        padding: 2rem 1.5rem;
    }
    
    .beginner-page-icon {
        width: 80px;
        height: 80px;
    }
    
    .beginner-page-icon i {
        font-size: 2.5rem;
    }
    
    .beginner-page-header h1 {
        font-size: 2rem;
    }
    
    .beginner-page-subtitle {
        font-size: 1rem;
    }
    
    .beginner-page-stats {
        gap: 2rem;
    }
    
    .beginner-videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .beginner-login-notice {
        flex-direction: column;
        text-align: center;
    }
}
