* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a1d; /* Premium Dark Background */
    padding: 40px 20px;
    display: flex;
    flex-direction: column; /* UPDATE: Taki SEO article tool ke thik niche aaye */
    align-items: center; 
    min-height: 100vh;
    position: relative; 
}

.container {
    background: #ffffff; 
    width: 100%;
    max-width: 600px; 
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: fit-content;
    z-index: 10;
}

h2 { text-align: center; margin-bottom: 25px; color: #1a1a1a; }

.upload-box { border: 2px dashed #4A90E2; border-radius: 10px; height: 120px; display: flex; justify-content: center; align-items: center; background: #f4f8ff; margin-bottom: 20px; transition: all 0.3s ease; }
.upload-box:hover { background: #e6efff; border-color: #357ABD; }
.upload-box label { cursor: pointer; color: #4A90E2; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.upload-box label span { font-size: 18px; font-weight: 600; margin-bottom: 5px; }

.preview-section { display: flex; align-items: center; gap: 20px; background: #fafafa; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #eaeaea; }
.cover-image-box img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; border: 2px solid #ddd; }
.stats-box { flex-grow: 1; }
.stats-box h3 { font-size: 16px; color: #333; margin-bottom: 8px; }
.stats-box p { font-size: 14px; margin-bottom: 5px; color: #555; font-weight: 500;}
.old-size { text-decoration: line-through; color: #999; }
.new-size { color: #28a745; font-weight: bold; font-size: 15px; }

.controls { margin-top: 10px; }
.quality-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-weight: 500; color: #333; }
#quality-slider { width: 55%; cursor: pointer; }

#smart-download-btn { width: 100%; padding: 14px; background: #007bff; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; }
#smart-download-btn:hover { background: #0056b3; }
#smart-download-btn:disabled { background: #80bfff; cursor: not-allowed; }

/* =========================================
   SEO CONTENT SECTION STYLES
   ========================================= */
.seo-content {
    max-width: 800px;
    margin: 40px auto 100px auto; 
    padding: 0 20px;
    color: #cccccc; 
    text-align: left;
}

.article-box h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: left;
}

.article-box h3, .faq-section h3 {
    color: #4A90E2; 
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.article-box p, .faq-item p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.article-box strong {
    color: #ffffff;
}

.faq-section {
    margin-top: 40px;
    border-top: 1px solid #333333;
    padding-top: 30px;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 17px;
}

/* =========================================
   FOOTER LINKS (Left Bottom)
   ========================================= */
.footer-links {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff; 
    text-decoration: underline;
}

/* =========================================
   ADSENSE AD CONTAINER (Currently Hidden)
   ========================================= */
/*
.video-ad-container { position: fixed; bottom: 25px; right: 25px; width: 320px; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 9999; border: 2px solid #333; transition: all 0.5s ease; }
.video-ad-container video { width: 100%; display: block; }
.skip-btn { position: absolute; bottom: 15px; right: 15px; background: rgba(255, 255, 255, 0.9); color: #000; border: none; padding: 8px 15px; border-radius: 6px; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.skip-btn:hover:not(:disabled) { background: #fff; transform: scale(1.05); }
.skip-btn:disabled { cursor: not-allowed; color: #666; background: rgba(220, 220, 220, 0.8); }
*/

/* MOBILE RESPONSIVE LOGIC */
@media (max-width: 768px) {
    /* .video-ad-container { display: none !important; } */
    
    body { padding-bottom: 80px; }
    
    .footer-links {
        position: absolute; 
        left: 0;
        bottom: 20px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; 
    }
}