*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0b;
    --surface: #111114;
    --surface2: #18181c;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #fff;
    --text-secondary: rgba(255,255,255,0.5);
    --text-tertiary: rgba(255,255,255,0.3);
    --accent: #DC143C;
    --accent-hover: #b01030;
    --accent-glow: rgba(220,20,60,0.2);
    --green: #10b981;
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(10,10,11,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.3rem; }
.logo-text {
    background: linear-gradient(135deg, #DC143C, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.05); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 30px 24px; text-align: center; background: var(--surface); margin-top: 80px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text-tertiary); text-decoration: none; font-size: 0.8rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer p { color: var(--text-tertiary); font-size: 0.75rem; }

/* Hero */
.hero { text-align: center; padding: 50px 20px 30px; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 10px; }
.hero p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 24px; }
.gradient-red { background: linear-gradient(135deg, #DC143C, #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-tiktok { background: linear-gradient(135deg, #ff0050, #00f2ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-youtube { background: linear-gradient(135deg, #FF0000, #cc0000); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Input */
.input-wrapper {
    display: flex;
    max-width: 620px;
    margin: 0 auto;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 60px;
    overflow: hidden;
    transition: all 0.2s;
}
.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}
.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 15px 18px;
    outline: none;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}
.input-wrapper input::placeholder { color: rgba(255,255,255,0.18); }
.paste-btn {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    border-right: 1px solid var(--border);
    padding: 15px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}
.paste-btn:hover { background: rgba(255,255,255,0.1); }
.paste-btn i { font-size: 0.9rem; }
.download-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 15px 24px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-btn:hover { background: var(--accent-hover); }
.download-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.platform-tab {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.platform-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.25s;
}
.platform-tab:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.platform-tab:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.tab-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.tab-label {
    position: relative;
    z-index: 1;
}
.platform-tab.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.platform-tab.tiktok:hover { border-color: #ff0050; color: #ff0050; background: rgba(255,0,80,0.08); }
.platform-tab.tiktok.active { background: rgba(255,0,80,0.12); border-color: #ff0050; color: #ff0050 !important; }
.platform-tab.instagram:hover { border-color: #E1306C; color: #E1306C; background: rgba(225,48,108,0.08); }
.platform-tab.instagram.active { background: rgba(225,48,108,0.12); border-color: #E1306C; color: #E1306C !important; }
.platform-tab.youtube:hover { border-color: #FF0000; color: #FF0000; background: rgba(255,0,0,0.08); }
.platform-tab.youtube.active { background: rgba(255,0,0,0.12); border-color: #FF0000; color: #FF0000 !important; }

/* Loading */
.loading-state { text-align: center; padding: 40px; display: none; }
.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #fff; font-weight: 600; }
.loading-sub { color: var(--text-tertiary); font-size: 0.85rem; }

/* Result */
.result-section { max-width: 580px; margin: 20px auto; display: none; }
.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.result-thumb {
    width: 150px; height: 210px;
    border-radius: 10px; overflow: hidden;
    flex-shrink: 0; background: #000;
    position: relative;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; min-width: 0; }
.platform-tag {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 0.6rem;
    font-weight: 600; letter-spacing: 1px;
    margin-bottom: 8px;
}
.tag-tiktok { background: rgba(255,0,80,0.12); color: #ff0050; }
.tag-instagram { background: rgba(225,48,108,0.12); color: #E1306C; }
.tag-youtube { background: rgba(255,0,0,0.12); color: #FF0000; }
.result-info h3 { font-size: 1rem; margin-bottom: 4px; word-break: break-word; }
.result-info .author { color: var(--text-tertiary); font-size: 0.8rem; margin-bottom: 14px; }
.result-info .meta { color: var(--text-tertiary); font-size: 0.7rem; margin-bottom: 8px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
    padding: 10px 20px; border-radius: 10px;
    font-weight: 600; font-size: 0.82rem;
    cursor: pointer; display: flex;
    align-items: center; gap: 6px;
    border: none; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border); }
.btn-outline:hover { background: rgba(255,255,255,0.04); border-color: var(--border-hover); }
.btn-copy {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s;
}
.btn-copy:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--border-hover); }

/* Error */
.error-state { text-align: center; padding: 30px; display: none; }
.error-state i { font-size: 2.5rem; color: #ef4444; margin-bottom: 12px; }
.error-state p { color: var(--text-secondary); margin-bottom: 16px; }

/* Ad */
.ad-box {
    max-width: 728px; min-height: 90px;
    margin: 20px auto; text-align: center;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 8px;
    display: flex; align-items: center; justify-content: center;
}
.ad-label { font-size: 0.55rem; color: rgba(255,255,255,0.1); text-transform: uppercase; letter-spacing: 1.5px; }

/* Sections */
.section { max-width: 750px; margin: 60px auto; padding: 0 20px; }
.section h2 { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 16px; text-align: center;
    transition: all 0.2s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem; color: var(--accent);
}
.feature-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.feature-card p { color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.5; }

/* Steps */
.steps { display: flex; gap: 14px; text-align: center; }
.step {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px;
}
.step-num {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin: 0 auto 10px;
    font-size: 1rem;
}
.step h4 { font-size: 0.9rem; margin-bottom: 4px; }
.step p { color: var(--text-tertiary); font-size: 0.78rem; }

/* FAQ */
.faq { max-width: 700px; margin: 50px auto; padding: 0 20px; }
.faq h2 { text-align: center; font-size: 1.5rem; margin-bottom: 24px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px; margin-bottom: 10px;
}
.faq-item h3 { font-size: 0.9rem; margin-bottom: 6px; }
.faq-item p { color: var(--text-tertiary); font-size: 0.82rem; line-height: 1.6; }

/* SEO Content */
.seo-section {
    max-width: 750px; margin: 60px auto; padding: 0 20px;
}
.seo-section h2 { font-size: 1.3rem; margin: 28px 0 12px; color: rgba(255,255,255,0.8); }
.seo-section h3 { font-size: 1rem; margin: 20px 0 8px; color: rgba(255,255,255,0.6); }
.seo-section p { color: var(--text-tertiary); font-size: 0.85rem; line-height: 1.8; margin-bottom: 14px; }
.seo-section ul, .seo-section ol { color: var(--text-tertiary); font-size: 0.85rem; line-height: 1.8; padding-left: 20px; margin-bottom: 14px; }
.seo-section li { margin-bottom: 6px; }
.seo-section strong { color: rgba(255,255,255,0.7); }
.seo-section a { color: var(--accent); text-decoration: none; }
.seo-section a:hover { text-decoration: underline; }

/* Blog */
.blog-grid { max-width: 750px; margin: 30px auto; padding: 0 20px; display: grid; gap: 14px; }
.blog-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
    text-decoration: none; display: block; transition: all 0.2s;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.blog-card .cat { font-size: 0.6rem; font-weight: 600; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.blog-card h2 { font-size: 1.05rem; color: #fff; margin-bottom: 6px; }
.blog-card p { color: var(--text-tertiary); font-size: 0.82rem; line-height: 1.5; }
.blog-card .meta { color: var(--text-tertiary); font-size: 0.7rem; margin-top: 8px; }

/* Article */
.article { max-width: 750px; margin: 0 auto; padding: 40px 20px; }
.article .breadcrumb { color: var(--text-tertiary); font-size: 0.78rem; margin-bottom: 16px; }
.article .breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.article .breadcrumb a:hover { color: #fff; }
.article h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.article .article-meta { color: var(--text-tertiary); font-size: 0.8rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.article h3 { font-size: 1.05rem; margin: 20px 0 8px; color: rgba(255,255,255,0.8); }
.article p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.85; margin-bottom: 16px; }
.article ul, .article ol { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.85; padding-left: 24px; margin-bottom: 16px; }
.article li { margin-bottom: 6px; }
.article strong { color: #fff; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article th { background: var(--surface2); padding: 10px; text-align: left; border: 1px solid var(--border); font-size: 0.85rem; }
.article td { padding: 10px; border: 1px solid var(--border); font-size: 0.85rem; }
.cta-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; text-align: center; margin: 30px 0;
}
.cta-box p { color: #fff; font-weight: 600; margin-bottom: 12px; }
.cta-box a {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 12px 24px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.cta-box a:hover { background: var(--accent-hover); }

/* Page */
.page { max-width: 650px; margin: 0 auto; padding: 50px 20px; }
.page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.page h2 { font-size: 1.2rem; margin: 24px 0 10px; }
.page p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; margin-bottom: 12px; }

/* Trust Stats */
.trust-stats { display: flex; gap: 30px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.trust-stat { text-align: center; }
.stat-number { display: block; font-size: 1.4rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 12px; gap: 2px;
    }
    .nav-links.open a { padding: 12px 16px; border-radius: 8px; }
    .hamburger { display: block; }
    .hero h1 { font-size: 1.5rem; }
    .input-wrapper { flex-wrap: wrap; border-radius: 14px; }
    .input-wrapper input { flex: 1 1 100%; min-width: 100%; border-radius: 14px 14px 0 0; padding: 14px 16px; }
    .paste-btn { flex: 1; border-right: 1px solid var(--border); border-radius: 0; padding: 12px; justify-content: center; }
    .download-btn { flex: 1; border-radius: 0 0 14px 14px; justify-content: center; padding: 14px; }
    .result-card { flex-direction: column; }
    .result-thumb { width: 100%; height: 220px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { flex-direction: column; }
    .trust-stats { gap: 16px; }
    .stat-number { font-size: 1.1rem; }
    .platform-tab { padding: 8px 14px; font-size: 0.78rem; gap: 6px; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.3rem; }
}


/* ========================================
   INPUT CARD (Homepage)
   ======================================== */
.input-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s;
}
.input-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.input-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.input-card-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
}
.input-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}
.input-card-body {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.input-card-body input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.input-card-body input:focus {
    border-color: var(--accent);
}
.input-card-body input::placeholder {
    color: rgba(255,255,255,0.2);
}
.input-card-body .paste-btn {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}
.input-card-body .paste-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
}
.input-card .download-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.input-card .download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(220,20,60,0.3);
}
.input-card-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    margin-top: 10px;
}

/* ========================================
   DOWNLOAD PAGE
   ======================================== */
.breadcrumb-bar {
    max-width: 750px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s;
}
.breadcrumb-link:hover { color: #fff; }
.breadcrumb-sep { color: var(--text-tertiary); font-size: 0.75rem; }
.breadcrumb-current {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Ad containers */
.ad-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}
.ad-inner {
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ad-top { margin-bottom: 24px; }
.ad-bottom { margin-top: 24px; }
.ad-placeholder {
    width: 100%;
    min-height: 90px;
}

/* Platform indicator */
.platform-indicator {
    max-width: 550px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.platform-indicator-icon {
    font-size: 1.5rem;
}
.platform-indicator-text {
    display: flex;
    flex-direction: column;
}
.platform-indicator-label {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.platform-indicator-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

/* Loading progress */
.loading-progress {
    max-width: 300px;
    margin: 16px auto 0;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.loading-bar {
    height: 100%;
    width: 30%;
    background: var(--accent);
    border-radius: 3px;
    animation: loadingSlide 1.5s ease-in-out infinite;
}
@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Download result */
.download-result {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
}
.result-card-full {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.result-preview {
    position: relative;
    flex-shrink: 0;
}
.result-thumb-large {
    width: 200px;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    position: relative;
}
.result-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-btn-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.result-thumb-large:hover .play-btn-overlay { opacity: 1; }
.result-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
}
.badge-tiktok { background: rgba(255,0,80,0.8); }
.badge-instagram { background: rgba(225,48,108,0.8); }
.badge-youtube { background: rgba(255,0,0,0.8); }

.result-details { flex: 1; min-width: 0; }
.result-video-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}
.result-author { color: var(--text-tertiary); font-size: 0.82rem; margin-bottom: 4px; }
.result-meta { color: var(--text-tertiary); font-size: 0.72rem; margin-bottom: 18px; }

.download-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.btn-download {
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-download-primary {
    background: var(--accent);
    color: #fff;
}
.btn-download-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(220,20,60,0.3);
}
.btn-download-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
}
.btn-download-outline:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}

.result-quick-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.quick-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 0.72rem;
}
.quick-stat i { font-size: 0.75rem; }

/* Download another */
.download-another {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.download-another p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.download-another-input {
    display: flex;
    gap: 8px;
}
.download-another-input input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.download-another-input input:focus { border-color: var(--accent); }
.download-another-input input::placeholder { color: rgba(255,255,255,0.2); }

/* Error card */
.error-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}
.error-card i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 12px;
}
.error-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.error-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Related tools */
.related-tools {
    max-width: 550px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}
.related-tools h3 {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.related-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.related-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.related-card:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
}
.related-icon { font-size: 1.5rem; }
.related-name { color: #fff; font-weight: 600; font-size: 0.8rem; }
.related-desc { color: var(--text-tertiary); font-size: 0.68rem; }

/* Mobile */
@media (max-width: 768px) {
    .input-card { padding: 18px; border-radius: 16px; }
    .input-card-body { flex-direction: column; }
    .input-card-body .paste-btn { justify-content: center; }
    .result-card-full { flex-direction: column; padding: 18px; }
    .result-thumb-large { width: 100%; height: 240px; }
    .result-preview { width: 100%; }
    .download-actions { flex-direction: column; }
    .btn-download { justify-content: center; }
    .download-another-input { flex-direction: column; }
    .related-grid { flex-direction: column; }
    .breadcrumb-bar { font-size: 0.75rem; }
}


/* Audio button */
.btn-download-audio {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.btn-download-audio:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(139,92,246,0.3);
}

/* Type badges */
.result-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
}
.type-audio { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.type-image { background: linear-gradient(135deg, #10b981, #059669); }

/* Download another actions */
.download-another-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.download-another-actions .btn-download {
    text-decoration: none;
}

/* Platform badge colors */
.badge-tiktok { background: rgba(255,0,80,0.8); }
.badge-instagram { background: rgba(225,48,108,0.8); }
.badge-youtube { background: rgba(255,0,0,0.8); }

/* ========================================
   IMAGE GALLERY
   ======================================== */
.gallery-result {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}
.gallery-header {
    text-align: center;
    margin-bottom: 24px;
}
.gallery-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 8px 0 4px;
}
.gallery-header p {
    color: var(--text-tertiary);
    font-size: 0.82rem;
}
.gallery-count {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.8rem !important;
    margin-top: 4px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.gallery-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    overflow: hidden;
    background: #000;
}
.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}
.gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}
.gallery-card:hover .gallery-image-overlay {
    opacity: 1;
}
.gallery-image-overlay i {
    font-size: 1.5rem;
}
.gallery-image-number {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
.gallery-actions {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.gallery-actions .btn-download {
    display: inline-flex;
}
.gallery-hint {
    color: var(--text-tertiary);
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}


/* Gallery Header Card */
.gallery-header-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.gallery-header-left h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 6px 0 4px;
}
.gallery-author {
    color: var(--text-tertiary);
    font-size: 0.82rem;
}
.gallery-image-count {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.gallery-card {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    border: 2px solid var(--border);
    transition: all 0.2s;
}
.gallery-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    overflow: hidden;
    background: #000;
}
.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220,20,60,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}
.gallery-card:hover .gallery-image-overlay {
    opacity: 1;
}
.gallery-image-overlay i {
    font-size: 1.8rem;
}

/* Gallery Download Section */
.gallery-download-section {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.btn-download-large {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}
.gallery-hint {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-top: 10px;
}

/* Red Back Button */
.btn-download-back {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.btn-download-back:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,20,60,0.3);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-header-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/* Profile Card for Gallery */
.gallery-profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.gallery-profile-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.gallery-profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
}
.gallery-profile-info h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.gallery-author {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}
.gallery-profile-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.gallery-image-count {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sound download button */
.btn-download-sound {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gallery-card {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 2px solid var(--border);
    transition: all 0.2s;
}
.gallery-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 135%;
    overflow: hidden;
    background: #000;
}
.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220,20,60,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 1.8rem;
}
.gallery-card:hover .gallery-image-overlay {
    opacity: 1;
}
.gallery-tap-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* Red Back Button */
.btn-back-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.btn-back-red:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,20,60,0.3);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .gallery-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .gallery-profile-right {
        align-items: center;
    }
}

/* Thumbnail placeholder */
.thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181c;
    color: #555;
    font-size: 3rem;
    border-radius: 10px;
}

/* Video play overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 2;
}
.play-circle {
    width: 50px;
    height: 50px;
    background: rgba(220,20,60,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

/* Thumb placeholder */
.thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181c;
    border-radius: 10px;
}

/* VidPull Logo */
.logo-svg {
    filter: drop-shadow(0 2px 4px rgba(220,20,60,0.3));
    transition: transform 0.2s;
}
.nav-logo:hover .logo-svg {
    transform: scale(1.05);
}
.logo-text {
    background: linear-gradient(135deg, #DC143C, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Twitter/X & Facebook platform colors */
.platform-tab.twitter:hover, .platform-tab.twitter.active { 
    border-color: #1DA1F2; color: #1DA1F2; background: rgba(29,161,242,0.08); 
}
.platform-tab.twitter.active { background: rgba(29,161,242,0.12); border-color: #1DA1F2; color: #1DA1F2 !important; }
.platform-tab.facebook:hover, .platform-tab.facebook.active { 
    border-color: #1877F2; color: #1877F2; background: rgba(24,119,242,0.08); 
}
.platform-tab.facebook.active { background: rgba(24,119,242,0.12); border-color: #1877F2; color: #1877F2 !important; }

/* Platform tag colors */
.tag-twitter { background: rgba(29,161,242,0.12); color: #1DA1F2; }
.tag-facebook { background: rgba(24,119,242,0.12); color: #1877F2; }

/* Badge colors */
.badge-twitter { background: rgba(29,161,242,0.8); }
.badge-facebook { background: rgba(24,119,242,0.8); }

/* Gradient text */
.gradient-twitter { background: linear-gradient(135deg, #1DA1F2, #0d8bd9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-facebook { background: linear-gradient(135deg, #1877F2, #0b5fcc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }