/* === LIQUID GLASS THEME === */
:root {
    --bg-color: #0A0A0F; 
    --glass-bg-dark: rgba(10, 10, 15, 0.4);
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --neon: #00E5FF; 
    --neon-alt: #B026FF; 
    --primary-gradient: linear-gradient(135deg, #00E5FF, #B026FF);
    --success: #10B981;
    --danger: #F43F5E;
    --radius: 24px;
    --radius-sm: 16px;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.8)), url('/assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 50px;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* === GLASS UTILITIES === */
.glass-panel {
    background: var(--glass-bg-light);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
}

.hidden { display: none !important; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }
.mt-5 { margin-top: 50px; }
.text-center { text-align: center; }

/* === MAIN LAYOUT === */
.main-container { width: 100%; max-width: 950px; margin: 40px auto 0; padding: 0 20px; }

/* === TOP HEADER === */
.top-nav {
    position: sticky; 
    top: 15px; 
    z-index: 1000;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 30px;
    margin: 0 20px;
    transition: 0.3s ease;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 12px; object-fit: cover; }
.brand-text { font-size: 1.2rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; }

.desktop-links { display: flex; align-items: center; gap: 10px; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-sm); transition: 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--text-main); background: rgba(255, 255, 255, 0.1); }

.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .desktop-links { 
        display: none; position: absolute; top: 120%; left: 0; width: 100%; 
        background: var(--glass-bg-dark); backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--glass-border);
        border-radius: var(--radius); flex-direction: column; padding: 20px; box-shadow: var(--glass-shadow);
    }
    .desktop-links.active { display: flex; }
}

/* === HERO SECTION === */
.hero-section h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-section p { color: var(--text-muted); font-size: 1.1rem; }

/* === FORMS & INPUTS === */
.terminal-box { padding: 35px; position: relative; z-index: 2; margin-bottom: 40px; }
.input-wrapper { position: relative; margin-bottom: 20px; }
.input-wrapper .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; transition: color 0.3s; }

.glass-input {
    width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 18px 20px 18px 55px; color: var(--text-main);
    font-family: var(--font-mono); font-size: 1rem; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.01); box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
.glass-input:focus + .icon { color: var(--neon); }

/* === ANIMATED MAIN BUTTON === */
.glass-btn {
    width: 100%; padding: 18px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-sm);
    color: var(--text-main); font-size: 1.1rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    position: relative; overflow: hidden; z-index: 1;
}

/* Sweeping shine effect */
.glass-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg); transition: 0.5s; z-index: -1;
}

.glass-btn:hover:not(:disabled) {
    border-color: var(--neon);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.1);
    transform: translateY(-3px); color: #fff;
}

.glass-btn:hover:not(:disabled)::before { left: 150%; transition: 0.7s; }

/* Pulsating processing state */
.glass-btn.processing {
    background: rgba(0, 229, 255, 0.1); border-color: var(--neon);
    color: var(--neon); cursor: not-allowed;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* === LOADING UI === */
.progress-container { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-top: 20px; display: none; }
.progress-bar { height: 100%; width: 0%; background: var(--primary-gradient); box-shadow: 0 0 10px var(--neon); }

.skeleton-wrapper { display: none; margin-top: 30px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite linear; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skel-header { display: flex; gap: 15px; margin-bottom: 20px; padding: 15px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }
.skel-thumb { width: 80px; height: 80px; flex-shrink: 0; }
.skel-text-box { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.skel-line { height: 14px; width: 70%; }
.skel-line.short { width: 30%; height: 20px; border-radius: 6px; }
.skel-btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.skel-btn { width: 110px; height: 42px; border-radius: 12px; }

/* === DYNAMIC CATEGORY RESULTS === */
.result-header {
    display: flex; gap: 15px; align-items: center; background: rgba(0, 0, 0, 0.4);
    padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border);
    margin-bottom: 25px; backdrop-filter: blur(10px);
}
.result-thumb { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.1); }

.result-categories { display: flex; flex-direction: column; gap: 20px; }
.category-section {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 20px;
}

.category-title {
    font-size: 1.1rem; color: var(--text-main); margin-bottom: 15px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 12px;
}
.video-category .category-title i { color: var(--neon); }
.audio-category .category-title i { color: var(--neon-alt); }

.category-links { display: flex; flex-wrap: wrap; gap: 12px; }

.download-btn {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid var(--glass-border);
    padding: 12px 20px; border-radius: 12px; font-family: var(--font-mono); font-size: 0.85rem;
    font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px);
}

.download-btn:hover { 
    background: rgba(0, 229, 255, 0.15); border-color: var(--neon); color: #fff; 
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2); 
}

/* Audio specific hover */
.audio-btn:hover {
    background: rgba(176, 38, 255, 0.15); border-color: var(--neon-alt); box-shadow: 0 5px 15px rgba(176, 38, 255, 0.2);
}

/* Micro-interaction for download icons */
.download-icon-anim { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.download-btn:hover .download-icon-anim { transform: translateY(3px); }

/* === CARDS & PILLS === */
.features-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.glass-card { background: var(--glass-bg-light); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 30px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: 0.3s ease; }
.glass-card:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1000px; margin: 0 auto; }
.service-pill { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px; transition: 0.3s; backdrop-filter: blur(10px); }
.service-pill:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* === MODALS & LOGIN COMPONENTS REMAIN UNCHANGED BELOW THIS POINT === */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.social-icons-large { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 50px; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
.login-showcase { display: flex; max-width: 1000px; width: 100%; margin: 40px auto; background: var(--glass-bg-dark); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px) saturate(150%); overflow: hidden; position: relative; z-index: 2; }
.login-brand-side { flex: 1; background: rgba(255, 255, 255, 0.02); padding: 60px 50px; display: flex; flex-direction: column; justify-content: space-between; position: relative; border-right: 1px solid var(--glass-border); overflow: hidden; }
.brand-floating-orb { position: absolute; width: 300px; height: 300px; background: var(--primary-gradient); border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: floatOrb 8s infinite ease-in-out alternate; top: -50px; left: -50px; z-index: 0; }
.brand-content { position: relative; z-index: 1; }
.login-form-side { flex: 1.2; padding: 60px; background: transparent; }
.floating-input-group { position: relative; margin-bottom: 25px; }
.floating-input { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 22px 18px 12px 18px; color: var(--text-main); font-size: 1rem; outline: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.floating-label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; pointer-events: none; transition: 0.3s ease; }
.floating-input:focus, .floating-input:not(:placeholder-shown) { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 15px rgba(255, 255, 255, 0.05); }
.floating-input:focus ~ .floating-label, .floating-input:not(:placeholder-shown) ~ .floating-label { top: 14px; font-size: 0.75rem; color: var(--neon); font-weight: 600; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }
@media (max-width: 768px) { .login-showcase { flex-direction: column; margin: 20px auto; border-radius: var(--radius-sm); } .login-brand-side { display: none; } .login-form-side { padding: 40px 20px; } }
.footer-link { color: var(--text-muted); font-size: 0.9rem; transition: 0.3s ease; }
.footer-link:hover { color: var(--text-main); padding-left: 5px; }