:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --light: #f8fafc;
    --light-text: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    
    /* Socials */
    --yt: #ff0000;
    --fb: #1877f2;
    --tk: #000000;
    --ig: #e1306c;
    --tw: #000000;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--light);
}
.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}
.btn-primary-outline {
    border: 2px solid var(--primary);
    color: var(--light);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
}
.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Area */
.downloader-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.downloader-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient);
}
.social-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--light-text);
}
.social-logos i {
    transition: color 0.3s ease;
}
.input-group {
    display: flex;
    gap: 15px;
}
.url-input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: rgba(0,0,0,0.2);
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.url-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Results Area */
#result-container {
    margin-top: 40px;
    display: none; /* Initially hidden */
}
.video-preview {
    display: flex;
    gap: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.thumbnail {
    width: 200px;
    height: 150px;
    background: #333;
    border-radius: 8px;
    object-fit: cover;
}
.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.platform-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--border);
    margin-bottom: 15px;
    align-self: flex-start;
}
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.btn-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: transform 0.2s;
}
.btn-download:hover {
    transform: translateY(-2px);
}
.btn-download span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Ad Placeholders */
.ad-container {
    margin: 40px auto;
    text-align: center;
}
.ad-placeholder {
    background: repeating-linear-gradient(
      45deg,
      #1e293b,
      #1e293b 10px,
      #0f172a 10px,
      #0f172a 20px
    );
    border: 1px dashed var(--light-text);
    color: var(--light-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 90px;
    border-radius: 8px;
    font-weight: 600;
}

/* Loaders */
.loader {
    display: none;
    text-align: center;
    margin: 30px 0;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Footer */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}
.footer-col p {
    color: var(--light-text);
    margin-bottom: 20px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}
.social-icons a:hover {
    background: var(--primary);
}
.links-col ul li {
    margin-bottom: 12px;
}
.links-col ul li a {
    color: var(--light-text);
}
.links-col ul li a:hover {
    color: var(--primary);
}
.btn-app {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}
.btn-app:hover {
    background: rgba(255,255,255,0.1);
}
.app-download-btn i { color: #3ddc84; }
.ext-download-btn i { color: #fbbc05; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Static pages (About, FAQ, Contact) */
.page-container {
    max-width: 800px;
    margin: 60px auto;
    background: var(--dark-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .input-group { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .video-preview { flex-direction: column; }
    .thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; }
}
