:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --bg: #f0f2f5;
    --glass: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: #2b2d42; overflow-x: hidden; }

/* Preloader */
#loader { position: fixed; width: 100%; height: 100%; background: white; z-index: 9999; display: flex; justify-content: center; align-items: center; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.app-container { max-width: 1100px; margin: 0 auto; padding-bottom: 50px; }

/* Header */
.glass-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; background: var(--glass); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }

/* Hero Banner */
.hero-section { padding: 20px; }
.banner-wrapper { 
    position: relative; border-radius: 24px; overflow: hidden; height: 300px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.banner-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
    position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    display: flex; flex-direction: column; justify-content: center; padding: 40px; color: white;
}
.search-box {
    margin-top: 20px; background: white; border-radius: 12px; display: flex; align-items: center;
    padding: 5px 15px; width: 100%; max-width: 400px;
}
.search-box input { border: none; padding: 10px; outline: none; width: 100%; font-family: inherit; }
.search-box i { color: #888; }

/* Stats */
.stats-bar {
    display: flex; justify-content: space-around; background: white;
    margin: -30px 20px 30px; position: relative; z-index: 10;
    padding: 20px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.stat-item { font-weight: 600; font-size: 0.9rem; color: var(--secondary); }

/* Cards Grid */
.section-title { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 15px; }
.query-link { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.grid-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; padding: 0 20px;
}
.card {
    background: white; padding: 25px; border-radius: 20px; text-decoration: none;
    color: inherit; display: flex; flex-direction: column; gap: 10px;
    transition: 0.3s; border: 1px solid #eee;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.card-icon { 
    width: 50px; height: 50px; border-radius: 12px; display: flex; 
    justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 5px;
}
.blue { background: #e0e7ff; color: #4361ee; }
.red { background: #ffeaee; color: #f72585; }
.green { background: #dcfce7; color: #16a34a; }
.orange { background: #ffedd5; color: #ea580c; }
.purple { background: #f3e8ff; color: #9333ea; }
.cyan { background: #e0f2fe; color: #0891b2; }

/* Guide Section */
.guide-section { padding: 40px 20px; }
.guide-card { background: #1e1e2e; color: white; padding: 25px; border-radius: 20px; margin-top: 15px; }
.guide-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.badge { background: var(--primary); padding: 5px 12px; border-radius: 8px; font-weight: 700; }

/* Floating Button */
.floating-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--primary); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4); transition: 0.3s;
}
.floating-btn:hover { transform: scale(1.1); }

/* Mobile */
@media (max-width: 768px) {
    .banner-wrapper { height: 200px; }
    .hero-text h1 { font-size: 1.4rem; }
    .grid-container { grid-template-columns: 1fr; }
    .stats-bar { flex-direction: column; gap: 10px; text-align: center; }
}