/* ===== ZXH TikTok Downloader Pro - Complete Styles ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #FF005C 0%, #00F2FE 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --terminal-color: #00F2FE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-gradient);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 90%, rgba(255, 0, 92, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(0, 242, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.main-header { padding: 2rem 0; text-align: center; position: relative; z-index: 2; }

.logo-icon {
    background: var(--primary-gradient);
    width: 70px; height: 70px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(255, 0, 92, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.logo-text h1 {
    font-weight: 800; font-size: 2.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tagline { font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 30px; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px var(--shadow-color);
    padding: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 10px;
}

.section-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.url-input {
    width: 100%;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.url-input:focus {
    outline: none;
    border-color: rgba(255, 0, 92, 0.7);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 0, 92, 0.2);
}

.btn-download {
    background: var(--primary-gradient);
    border: none; color: white;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    gap: 15px; margin: 0 auto; transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255, 0, 92, 0.3);
    width: 100%; max-width: 350px;
}

.btn-download:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255, 0, 92, 0.4); color: white; }

.terminal-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-family: 'Courier New', monospace;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.terminal-header {
    display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots { display: flex; gap: 8px; margin-right: 15px; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F57; } .dot-yellow { background: #FFBD2E; } .dot-green { background: #28CA42; }

.terminal-output {
    color: var(--terminal-color);
    font-size: 1rem; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word;
}

.cursor {
    display: inline-block; width: 8px; height: 20px; background-color: var(--terminal-color);
    margin-left: 5px; animation: blink 1s infinite; vertical-align: middle;
}

@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.loader {
    width: 70px; height: 70px; border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #FF005C; border-radius: 50%; animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.results-section {
    display: none; position: relative; z-index: 10;
}

.video-preview-card {
    background: rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 25px;
    margin-bottom: 30px; border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-thumbnail img { width: 100%; height: auto; border-radius: 15px; }

.download-options {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px; margin-top: 30px;
}

.download-option {
    background: rgba(255, 255, 255, 0.08); border-radius: 15px; padding: 25px;
    text-align: center; transition: all 0.3s; border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-icon {
    width: 70px; height: 70px; border-radius: 20px; display: flex;
    align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 15px;
}

.video-icon { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }
.nowm-icon { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); }
.audio-icon { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }

.btn-option {
    display: inline-block; padding: 12px 25px; border-radius: 10px; font-weight: 600;
    transition: all 0.3s; width: 100%; border: none; cursor: pointer; color: white;
    margin-top: 15px; font-family: 'Poppins', sans-serif;
}

.btn-video { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }
.btn-nowm { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); }
.btn-audio { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }

.main-footer {
    text-align: center; padding: 40px 0; margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 2;
}

.developer-name { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.copyright { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

/* ==================== NEW INSTALL POPUP OVERLAY ==================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;      /* popup top se slide hoga */
    justify-content: center;
    padding-top: 10vh;            /* thoda upar se neeche */
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border-radius: 30px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s;
}

.popup-close-btn:hover {
    color: #333;
}

.popup-content img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.popup-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.popup-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.popup-content .btn-premium {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 0, 92, 0.35);
}

.popup-content .btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 0, 92, 0.5);
}

.popup-content .btn-premium i {
    font-size: 1.2rem;
}

.popup-content .not-now-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 20px;
    transition: color 0.3s;
}

.popup-content .not-now-btn:hover {
    color: #555;
}

/* ===== Utility classes used in popup ===== */
.max-w-sm {
    max-width: 400px;
}

.w-20 {
    width: 80px;
}

.h-20 {
    height: 80px;
}

.rounded-2xl {
    border-radius: 20px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-xl {
    font-size: 1.8rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-500 {
    color: #666;
}

.text-sm {
    font-size: 0.95rem;
}

.text-gray-400 {
    color: #999;
}

.mt-3 {
    margin-top: 1rem;
}

.underline {
    text-decoration: underline;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-transparent {
    background: transparent;
}

.border-none {
    border: none;
}