:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --sidebar-width: 260px;
    --sidebar-width-mobile: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh; 
    position: relative;
}

#bg-video-fallback {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1; background: radial-gradient(circle at 20% 80%, #00f2ff20 0%, transparent 50%), 
                                            radial-gradient(circle at 80% 20%, #ff00ff20 0%, transparent 50%), #000;
    animation: bgPulse 20s ease-in-out infinite;
}

#bg-video { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: -1; transition: filter 1.2s ease; 
}

.blurred { filter: blur(45px) brightness(0.3); }

.menu-toggle {
    display: block; position: fixed; top: 20px; left: 20px; z-index: 3000;
    background: var(--primary); color: #000; border: none;
    padding: 12px 16px; border-radius: 12px; cursor: pointer; font-weight: 800;
    font-size: 1rem; box-shadow: 0 8px 25px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
    width: var(--sidebar-width-mobile);
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    padding: 70px 20px 20px;
    z-index: 2100;
    transform: translate3d(-100%, 0, 0);
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 2px 0 30px rgba(0,0,0,0.5);
}

.sidebar.active { transform: translate3d(0, 0, 0); }

.close-btn {
    position: absolute; top: 20px; right: 20px;
    font-size: 1.8rem; color: var(--primary); cursor: pointer;
    background: rgba(255,255,255,0.1); border: none; width: 44px; height: 44px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.brand-container { 
    display: flex; align-items: center; gap: 12px; margin-bottom: 50px; 
    padding: 10px 0;
}

.logo-img { 
    width: 35px; height: 35px; object-fit: contain; 
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text { font-size: 1.3rem; font-weight: 800; white-space: nowrap; }
.logo-text .part1 { color: var(--primary); }

.side-link {
    color: #888; text-decoration: none; padding: 14px 16px; border-radius: 12px;
    margin-bottom: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem; display: flex; align-items: center; gap: 12px; cursor: pointer;
    position: relative; overflow: hidden;
}

.main-wrapper {
    margin-left: 0; width: 100%; min-height: 100vh;
    display: flex; flex-direction: column; transition: margin-left 0.4s ease;
}

header {
    width: 100%; padding: 20px 20px 20px 70px;
    display: flex; justify-content: flex-end; align-items: center;
    min-height: 70px; z-index: 1000; position: relative;
}

#landing-page {
    flex: 1; display: flex; flex-direction: column; justify-content: center; 
    align-items: center; text-align: center; padding: 20px 20px 120px;
    background: transparent; 
}

.hero-title { 
    font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; 
    max-width: 90vw; 
    background: linear-gradient(135deg, var(--primary) 0%, #00d4ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; 
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.tagline { 
    color: #fff; font-size: 1.1rem; margin-bottom: 40px; max-width: 600px; 
    line-height: 1.5; font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 1);
} 

#dashboard { padding: 80px 20px 60px; display: none; opacity: 0; width: 100%; }

.tools-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
    max-width: 800px; margin: 0 auto; width: 100%; perspective: 1000px;
}

.card {
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(15px);
    border: 1px solid var(--border); padding: 24px 16px; border-radius: 20px; 
    text-decoration: none; color: white; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center; position: relative; aspect-ratio: 1; display: flex; 
    flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
}

.card:hover { 
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    color: #000; transform: translateY(-12px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 25px 50px var(--primary-glow), 0 0 0 1px rgba(0,242,255,0.3);
}

.btn {
    padding: 12px 24px; border-radius: 12px; cursor: pointer;
    font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border); text-decoration: none; 
    font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), #00d4ff); 
    color: #000; border: none; box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-logout { background: rgba(255, 0, 0, 0.1); color: #ff5f5f; border: 1px solid #ff5f5f; }

.yt-floating-btn {
    position: fixed; bottom: 25px; right: 25px;
    background: linear-gradient(135deg, #FF0000, #cc0000); 
    color: white; width: 56px; height: 56px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    box-shadow: 0 8px 30px rgba(255,0,0,0.4); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer { width: 100%; padding: 30px 20px; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.feedback-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3000;
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feedback-modal.active { opacity: 1; visibility: visible; }
.feedback-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); }
.feedback-box {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
    width: 90%; max-width: 500px; background: rgba(20,20,20,0.95);
    border-radius: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feedback-modal.active .feedback-box { transform: translate(-50%, -50%) scale(1); }

.feedback-box input, .feedback-box textarea {
    width: 100%; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--border);
    border-radius: 12px; background: rgba(255,255,255,0.05); color: #fff;
}

.show-page { display: block !important; opacity: 1 !important; }
.hide-page { display: none !important; }

.user-img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--primary); }

@keyframes bgPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@media (min-width: 1025px) {
    .menu-toggle { display: none; }
    .sidebar { transform: translateX(0) !important; width: var(--sidebar-width); }
    .main-wrapper { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); }
    .hero-title { font-size: 4.5rem; }
    .tools-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
}
