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

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding: 20px;
}

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

.hero {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2rem;
    color: #4a5568;
    margin-bottom: 4px;
}

.hero p {
    color: #718096;
    font-size: 0.9rem;
}

.user-info {
    margin-top: 12px;
    font-size: 0.9rem;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 40px;
    display: inline-block;
}

.user-info span {
    font-weight: 600;
    color: #4f46e5;
}

.login-link {
    margin-top: 12px;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    background: #e0e7ff;
    padding: 6px 20px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.2s;
}

.login-link a:hover {
    background: #c7d2fe;
    transform: translateY(-2px);
}

.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.module-card {
    background: white;
    border-radius: 28px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
}

.module-icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: inline-block;
}

.module-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2d3748;
}

.module-desc {
    color: #718096;
    font-size: 12px;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #4f46e5;
}

.stat-label {
    font-size: 12px;
    color: #4b5563;
    margin-top: 5px;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 40px;
    padding: 8px 12px;
    max-width: 500px;
    margin: 20px auto 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 30px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-item:hover:not(.active) {
    background: #f3f4f6;
    color: #4b5563;
}

#globalToast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    white-space: nowrap;
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .modules {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .module-icon {
        font-size: 40px;
    }
    
    .module-title {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 16px 20px;
    }
    
    .bottom-nav {
        padding: 6px 10px;
    }
    
    .nav-item {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    #globalToast {
        font-size: 12px;
        padding: 6px 16px;
        bottom: 80px;
        white-space: nowrap;
    }
}