:root {
    --bg-main: #020202;
    --text-white: #ffffff;
    --text-gray: #cbd5e1;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    --accent: #ff0000;
    --accent-dim: rgba(255, 0, 0, 0.2);
    --accent-glow: rgba(255, 0, 0, 0.6);
    --b-tl: #760101; --b-tr: #290000; --b-bl: #8a0000; --b-br: #000000;
}

body.insta-theme {
    --accent: #d62976;
    --accent-dim: rgba(225, 48, 108, 0.2);
    --accent-glow: rgba(214, 41, 118, 0.6);
    --b-tl: #4a044a; --b-tr: #2e022e; --b-bl: #831050; --b-br: #0f172a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }

html, body { width: 100%; overflow-x: hidden; height: auto; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    min-height: 100vh;
    transition: background-color 0.8s ease, color 0.8s ease;
}


.space-background { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #000; }
.stars { position: absolute; inset: 0; background: url('http://www.script-tutorials.com/demos/360/images/stars.png') repeat top center; opacity: 0.8; }
.twinkling { position: absolute; inset: 0; background: url('http://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center; animation: move-twink-back 200s linear infinite; opacity: 0.4; }
@keyframes move-twink-back { from {background-position:0 0;} to {background-position:-10000px 5000px;} }

.nebula {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
    will-change: transform; transition: background 1.5s ease; transform: translate3d(0,0,0);
}
.blob-tl { top: -10%; left: -10%; width: 60vw; height: 60vw; background: var(--b-tl); animation: float 20s infinite alternate; }
.blob-tr { top: -10%; right: -10%; width: 50vw; height: 50vw; background: var(--b-tr); animation: float 25s infinite alternate-reverse; }
.blob-bl { bottom: -10%; left: -10%; width: 70vw; height: 70vw; background: var(--b-bl); animation: float 22s infinite alternate; }
.blob-br { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: var(--b-br); animation: float 28s infinite alternate-reverse; }
@keyframes float { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(30px, 30px, 0); } }

.glass-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 3; }

.light-leak {
    position: fixed; top: -150px; left: -150px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px); z-index: 0; pointer-events: none; transition: opacity 0.8s ease; opacity: 1;
}
body.insta-theme .light-leak { opacity: 0; }


.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 5%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.logo-container { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { width: 35px; height: 35px; object-fit: contain; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: 1px; }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-gray); text-decoration: none; font-weight: 500; transition: 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-white); }

.nav-cta {
    padding: 10px 24px; background: var(--accent); color: white; border: none; border-radius: 50px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--accent-glow); }

.hero { text-align: center; padding: 100px 20px 60px; position: relative; z-index: 10; }

.badge-container { display: flex; justify-content: center; margin-bottom: 20px; }
.badge-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 20px; 
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px);
    border-radius: 50px; color: #ffffff; font-size: 1rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; box-shadow: 0 0 15px rgba(0, 255, 136, 0.15); transition: transform 0.3s ease;
}
.badge-pill:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.15); border-color: #fff; }
.badge-pill img { width: 24px !important; height: 24px !important; object-fit: contain; display: block; }

.hero h1 { font-size: 3.5rem; line-height: 1.2; margin: 15px 0 25px; font-weight: 800; }
.hero p { color: var(--text-gray); font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

.hero-icons { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; }
.icon-box {
    width: 80px; height: 80px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: bounce 3s infinite ease-in-out;
}
.icon-box img { width: 45px; }
.insta-box { animation-delay: 1.5s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-btn {
    padding: 18px 50px; font-size: 1.2rem; font-weight: 700; border: none; color: white;
    cursor: pointer; transition: 0.3s; border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), #440000);
    box-shadow: 0 0 30px var(--accent-dim); display: inline-flex; align-items: center; gap: 12px;
}
.insta-theme .hero-btn { background: linear-gradient(135deg, var(--accent), #581c87); }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--accent-glow); }
.btn-icon-img { width: 32px; height: 32px; object-fit: contain; }

.tool-wrapper { display: flex; justify-content: center; padding: 20px; z-index: 10; position: relative; }
.app-card {
    width: 100%; max-width: 600px; background: var(--glass); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px; backdrop-filter: blur(20px); box-shadow: var(--shadow);
}

.platform-tabs { display: flex; gap: 15px; margin-bottom: 30px; }
.tab-btn {
    flex: 1; padding: 15px; border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text-gray);
    font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s; border-radius: 16px;
}
.tab-btn.active {
    background: rgba(255, 255, 255, 0.05); color: var(--accent); border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-dim);
}

.sub-tabs { margin-bottom: 25px; text-align: center; }
.toggle-pill { display: inline-flex; background: rgba(0,0,0,0.4); padding: 5px; border: 1px solid var(--border); border-radius: 50px; flex-wrap: wrap; justify-content: center;}
.pill-btn {
    padding: 8px 25px; border-radius: 50px; border: none; background: transparent; color: var(--text-gray);
    cursor: pointer; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.pill-btn.active { background: white; color: black; }
.pill-btn i, .pill-icon { font-size: 0.9rem; }

.input-box { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
#urlInput {
    width: 100%; padding: 20px; padding-right: 110px; background: rgba(0,0,0,0.5); border: 1px solid var(--border);
    color: white; font-size: 1rem; outline: none; transition: 0.3s; border-radius: 16px;
}
#urlInput:focus { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-dim); }

.paste-btn { position: absolute; right: 65px; background: transparent; border: none; color: #aaa; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.paste-btn:hover { color: white; }
#searchBtn {
    position: absolute; right: 8px; width: 45px; height: 45px; background: var(--accent); border: none;
    color: white; font-size: 1.2rem; cursor: pointer; border-radius: 12px; transition: 0.3s;
}
#searchBtn:hover { transform: scale(1.05); }

.status-box { text-align: center; padding: 30px; }
.planet-spinner {
    width: 50px; height: 50px; border-radius: 50%; background: transparent;
    border: 3px solid rgba(255,255,255,0.15); 
    border-top: 3px solid var(--accent);
    margin: 0 auto 15px;
    

    will-change: transform;
    transform: translate3d(0, 0, 0); 
    perspective: 1000px;
    
    animation: spin 1s linear infinite; 
    -webkit-animation: spin 1s linear infinite; 
    box-shadow: 0 0 15px var(--accent-dim);
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } }

.result-box { margin-top: 20px; animation: slideUp 0.5s ease; }
.media-meta h3 { font-size: 1rem; margin-bottom: 5px; line-height: 1.4; color: white; }
.badge { font-size: 0.7rem; background: var(--accent); padding: 4px 10px; border-radius: 6px; font-weight: 700; text-transform: uppercase; }


.player-wrapper {
    position: relative; width: 100%; max-width: 350px; margin: 0 auto 20px;
    border-radius: 15px; overflow: hidden; border: 1px solid var(--border);
    background: black; display: flex; flex-direction: column; align-items: center;
}
.thumb-container, .pfp-wrapper { position: relative; display: inline-block; }

body:not(.insta-theme) .player-wrapper { max-width: 100%; height: auto; }
.player-thumb, .video-player { width: 100%; height: auto; object-fit: contain; display: block; }

.mini-dl-btn {
    position: absolute; bottom: 10px; right: 10px;
    width: 35px; height: 35px; background: var(--accent); color: white;
    border: 2px solid #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 10; transition: transform 0.2s;
}
.mini-dl-btn:hover { transform: scale(1.1); }
.mini-dl-btn i { font-size: 0.9rem; }

.play-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: 0.3s; z-index: 5;
}
.play-overlay i { font-size: 3rem; color: white; filter: drop-shadow(0 0 10px black); }

.audio-bar {
    width: 100%; background: rgba(0, 0, 0, 0.9); border-top: 1px solid var(--accent);
    padding: 10px 15px; display: flex; align-items: center; gap: 15px; animation: slideUp 0.3s ease;
}
.audio-bar-btn {
    background: var(--accent); color: white; border: none; border-radius: 50%;
    width: 35px; height: 35px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.audio-progress-container { flex: 1; height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.audio-progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.1s linear; }
.audio-status { font-size: 0.8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }


.action-btn {
    width: 100%; padding: 16px; font-weight: 700; cursor: pointer; color: white; border: none;
    display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem;
    transition: 0.3s; margin-bottom: 15px; border-radius: 16px;
}
.yt-btn { background: #ff0000; box-shadow: 0 5px 20px rgba(255,0,0,0.3); }
.insta-btn { background: linear-gradient(90deg, #f09433, #bc1888); box-shadow: 0 5px 20px rgba(220, 39, 67, 0.3); }

.select-wrapper select { width: 100%; padding: 12px; border-radius: 12px; background: black; color: white; border: 1px solid var(--border); margin-bottom: 15px; outline: none; }
.mini-actions { display: flex; justify-content: space-between; padding: 0 10px; }

.reset-link { 
    background: none; border: none; width: 100%; color: var(--text-gray); 
    margin-top: 20px; cursor: pointer; text-decoration: underline; 
    font-size: 0.9rem; padding: 10px;
}

.invert-icon { filter: brightness(0) invert(1); }
.hidden { display: none !important; }
.list-group { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 5px; }
.list-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.05); padding: 12px 15px; border-radius: 12px; border: 1px solid var(--border); }
.list-icon { width: 30px; height: 30px; object-fit: contain; }
.list-res { font-weight: 800; font-size: 1.1rem; color: white; width: 60px; text-align: center; }
.list-info { flex: 1; margin-left: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stream-btn { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; margin-right: 10px; }
.list-item .dl-mini-btn { background: white; color: black; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.info-section, .reviews-section, .steps-section { padding: 80px 20px; max-width: 1100px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { background: rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 20px; border: 1px solid var(--border); transition: 0.3s; text-align: center; }
.feature-icon { width: 50px; height: 50px; margin-bottom: 15px; object-fit: contain; }
.multi-icons { display: flex; justify-content: center; gap: 15px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.review-card {
    background: rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 20px;
    border: 1px solid var(--border); transition: 0.3s; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.review-card:hover { transform: translateY(-5px); border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.review-stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 10px; }
.review-card p { font-style: italic; color: #ddd; line-height: 1.5; font-size: 1rem; }
.review-card h4 { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin-top: 5px; }

.profile-header { display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,0.05); padding: 20px; border-radius: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
.pfp-thumb { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.sec-title { color: var(--text-gray); font-size: 0.9rem; margin: 15px 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.hz-scroll { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.story-circle { flex-shrink: 0; width: 75px; height: 75px; border-radius: 50%; border: 2px solid var(--accent); padding: 3px; cursor: pointer; transition: 0.2s; }
.story-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 500px; overflow-y: auto; padding: 5px; }
.grid-item { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; background: #111; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.grid-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.grid-item:hover .grid-overlay { opacity: 1; }
.grid-overlay i { font-size: 2rem; color: white; drop-shadow: 0 2px 5px black; }

.steps-container { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.step { background: rgba(255,255,255,0.05); padding: 25px 40px; border-radius: 24px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; min-width: 160px; }
.step-icon-box { width: 60px; height: 60px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.step-img { width: 32px; height: 32px; object-fit: contain; }
.connector { width: 50px; height: 2px; background: var(--border); }

footer { text-align: center; padding: 60px 20px; background: rgba(0,0,0,0.8); border-top: 1px solid var(--border); margin-top: 80px; }
.social-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.social-tab-btn { display: flex; align-items: center; gap: 12px; padding: 15px 30px; border-radius: 16px; text-decoration: none; color: var(--text-gray); font-weight: 600; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); }

.dl-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.4s ease; }
.dl-content { text-align: center; width: 300px; display: flex; flex-direction: column; align-items: center; }
.satellite-dish { position: relative; width: 80px; height: 80px; margin-bottom: 25px; }
.dish-antenna { width: 50px; height: 50px; border: 3px solid var(--accent); border-radius: 50%; border-right-color: transparent; border-bottom-color: transparent; position: absolute; top: 10px; left: 15px; transform: rotate(-45deg); box-shadow: 0 0 15px var(--accent-dim); }
.dish-antenna::after { content: ''; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; background: white; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 10px white; }
.dish-waves span { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-top: 2px solid white; border-right: 2px solid white; border-radius: 0 50px 0 0; opacity: 0; animation: wave 1.5s infinite linear; }
.dish-waves span:nth-child(1) { top: 5px; right: 5px; width: 20px; height: 20px; animation-delay: 0s; }
.dish-waves span:nth-child(2) { top: -5px; right: -5px; width: 35px; height: 35px; animation-delay: 0.3s; }
.dish-waves span:nth-child(3) { top: -15px; right: -15px; width: 50px; height: 50px; animation-delay: 0.6s; }
@keyframes wave { 0% { opacity: 0; transform: scale(0.8); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2); } }
.dl-progress-container { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; position: relative; }
.dl-progress-bar { width: 0%; height: 100%; background: var(--accent); box-shadow: 0 0 15px var(--accent); transition: width 0.2s linear; }
#dlPercentText { font-size: 3rem; font-weight: 800; color: white; margin-top: 15px; text-shadow: 0 0 20px var(--accent); font-family: 'Outfit', sans-serif; letter-spacing: 2px; }
.howto-action{ display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }

@media (max-width: 768px) {
    .nav-links { 
        display: flex; width: 100%; justify-content: center; gap: 15px; 
        font-size: 0.8rem; margin-top: 15px; order: 3; 
    }
    
    .navbar { flex-wrap: wrap; gap: 10px; }
    .logo-container { flex: 1; }
    .nav-cta { order: 2; }
    .nav-links { order: 3; width: 100%; justify-content: center; }

    .info-section, .reviews-section, .steps-section { 
        display: block !important; padding: 40px 15px; 
        opacity: 1 !important; visibility: visible !important;
    }

    body, html { overflow-x: hidden; height: auto; }
    footer { padding-bottom: 30px; margin-bottom: 0; }
    .footer-content { margin-bottom: 0; padding-bottom: 0; }
    .footer-title {
    margin-top: -10px !important; 
    margin-bottom: 10px;
}
    .hero h1 { font-size: 2.5rem; }
    .connector { display: none; }
    
    .steps-container { flex-direction: column; gap: 20px; }
    .social-tabs { flex-direction: column; width: 100%; }
    .grid-3, .reviews-grid { grid-template-columns: 1fr; }
    
    .toggle-pill { width: 100%; display: flex; justify-content: space-between; }
    .pill-btn { flex: 1; padding: 12px 5px; font-size: 0.85rem; justify-content: center; white-space: nowrap; }
    
    .reset-link {
        display: block; background: rgba(255,255,255,0.1); padding: 15px;
        border-radius: 12px; text-align: center; text-decoration: none;
        font-weight: 700; border: 1px solid var(--border); margin-top: 25px;
    }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reels-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 5000;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.close-reel-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 5002;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.reels-snap-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.reels-snap-container::-webkit-scrollbar { display: none; }

.reel-item {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-actions {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5001;
}

.reel-act-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.reel-act-btn:hover { transform: scale(1.1); color: var(--accent); }
