:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#app {
    min-height: 100vh;
}

.view {
    transition: opacity 0.3s ease;
}

/* Modal and Global UI */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.error-text {
    color: var(--accent-red);
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Dashboard Headers */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#teacher-name {
    font-weight: 600;
    color: var(--text-primary);
}

#logout-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

#logout-btn:hover {
    color: var(--accent-red);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.class-card {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-live {
    background: #fef3c7;
    color: #92400e;
}

.btn-start {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#jitsi-container {
    background: #000;
    height: calc(100vh - 120px);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.meeting-header {
    background: #1e293b;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

#back-to-list {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#jitsi-meet-frame {
    flex: 1;
    width: 100%;
}

.loading-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Premium Landing Page Design --- */

#landing-page {
    display: block;
    height: auto;
    padding: 0;
    background: #ffffff;
    overflow-x: hidden;
    color: #0f172a;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.landing-nav {
    display: flex;
    align-items: center;
    padding: 1.25rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links-desktop a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links-desktop a:hover {
    color: var(--primary-color);
}

.nav-login-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-login-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 180px 5% 100px;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.08), transparent);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.35rem;
    color: #475569;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.play-store-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0f172a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.btn-label {
    display: flex;
    flex-direction: column;
}

.btn-label small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-label span {
    font-size: 1.1rem;
    font-weight: 700;
}

.play-store-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
    background: #1e293b;
}

.secondary-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 1rem 2rem;
    border-radius: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-cta:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.floating-mockup {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    animation: floatingHero 6s ease-in-out infinite;
}

@keyframes floatingHero {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
}

/* Trust Section */
.trust-section {
    padding: 60px 5%;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.trust-container {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.trust-container p {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.logo-marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 5rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
}

/* Features Premium */
.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.section-header-centered h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.feature-card-premium {
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 2.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-card-premium:hover::before {
    opacity: 1;
}

.icon-gradient {
    width: 70px;
    height: 70px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
}

.icon-gradient.i-blue {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
}

.icon-gradient.i-green {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.icon-gradient.i-amber {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.feature-list li ion-icon {
    color: #10b981;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonials-section {
    padding: 120px 5%;
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
}

.user-meta h4 {
    font-size: 1.15rem;
    color: #0f172a;
}

.user-meta span {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.testimonial-card p {
    font-size: 1.15rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rating-stars {
    color: #f59e0b;
    display: flex;
    gap: 4px;
}

/* Final CTA Banner */
.final-cta-section {
    padding: 80px 5% 120px;
}

.cta-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.cta-banner {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 4rem;
    padding: 6rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('hero-bg.png') center right no-repeat;
    background-size: contain;
    opacity: 0.1;
    top: 0;
    right: 0;
}

.cta-content-premium {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-content-premium h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.cta-content-premium p {
    font-size: 1.35rem;
    opacity: 0.9;
    margin-bottom: 3.5rem;
}

.cta-visual {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-visual ion-icon {
    font-size: 8rem;
    color: white;
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Footer New */
.main-footer-new {
    background: #0f172a;
    color: white;
    padding: 100px 5% 40px;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.6;
    transition: all 0.2s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-nav h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-nav a {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-credits {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    color: #475569;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-grid {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .nav-links-desktop {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 140px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 4rem 5%;
        flex-direction: column;
        text-align: center;
        border-radius: 2rem;
    }

    .cta-visual {
        margin-top: 3rem;
    }

    .feature-card-premium {
        padding: 2.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.stars {
    color: #f59e0b;
    display: flex;
    gap: 2px;
}

.stars ion-icon {
    font-size: 1rem;
}

.hero-stats strong {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stats span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}