/* ==========================================================================
   RichPoint.in Video Downloader – Master Design Stylesheet v4.5
   Pixel-Perfect Match to Reference Design (Light Glassmorphic & Ultra-Modern)
   ========================================================================== */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Primary Accent Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    
    /* Light Mode (Default - Matches Reference Design) */
    --body-bg: #fbfcfe;
    --card-bg: #ffffff;
    --card-border: #f1f5f9;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(226, 232, 240, 0.85);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --tab-bg: #f8fafc;
    --tab-active-bg: #ffffff;
    
    /* Brand Gradients */
    --accent-gradient: linear-gradient(90deg, #0ea5e9 0%, #a855f7 50%, #ec4899 100%);
    --btn-gradient: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --btn-hover-gradient: linear-gradient(90deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
    --ig-gradient: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 45px -10px rgba(0,0,0,0.08), 0 10px 15px -5px rgba(0,0,0,0.03);
    --shadow-glow: 0 12px 28px rgba(236, 72, 153, 0.35);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
    --body-bg: #070d1e;
    --card-bg: #0e172e;
    --card-border: #1e293b;
    --header-bg: rgba(14, 23, 46, 0.92);
    --header-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: #0b1329;
    --input-border: #334155;
    --tab-bg: #0b1329;
    --tab-active-bg: #1e293b;
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Ensure inputs, textareas, and readable article bodies remain selectable */
input, 
textarea, 
[contenteditable="true"],
.legal-article p,
.legal-article li,
.faq-answer,
.accordion-body,
code {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   1. Floating Pill Header (Exact Reference Design)
   ========================================================================== */
.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 16px 0;
    background: transparent;
}

.site-header {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: 50px;
    height: 68px;
    padding: 0 24px;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
    color: #ffffff;
}

.brand-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-dot {
    color: #0284c7;
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.nav-link.active {
    color: #ffffff !important;
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-switch-btn {
    width: 58px;
    height: 30px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

[data-bs-theme="dark"] .theme-switch-btn {
    background: #1e293b;
    border-color: #334155;
}

.theme-switch-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0 4px;
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    z-index: 1;
}

.theme-switch-btn::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: #38bdf8;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

[data-bs-theme="dark"] .theme-switch-btn::after {
    left: 30px;
    background: #a855f7;
}

.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   2. Hero Section (Clean Light Glows & 3D Floating Stage)
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 40px 0 65px 0;
    min-height: auto;
}

/* Mesh Pastel Background Glows */
.mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
    z-index: 1;
}

.mesh-glow-left {
    top: -10%;
    left: -5%;
    width: 520px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
}

.mesh-glow-right {
    top: -10%;
    right: -5%;
    width: 520px;
    height: 480px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.16) 0%, rgba(244, 63, 94, 0.08) 50%, transparent 70%);
}

.mesh-glow-center {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 60%);
}

/* ==========================================================================
   3. Ambient 3D Stage (Clean Floating Social Badges Flanking Downloader)
   ========================================================================== */
.hero-3d-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Hide on laptops, tablets, and mobile to ensure clean zero-clutter layout */
@media (max-width: 1240px) {
    .hero-3d-stage {
        display: none !important;
    }
}

/* Stage Flanks strictly anchored outside the 920px hero content container */
.stage-flank {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
}

.stage-flank-left {
    right: calc(50% + 490px);
}

.stage-flank-right {
    left: calc(50% + 490px);
}

/* 3D Floating Social Badges */
.ambient-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: default;
    pointer-events: auto;
}

.ambient-badge:hover {
    transform: scale(1.1) translateY(-6px) !important;
}

/* Left Flank Badges */
.ambient-badge.badge-ig {
    top: 175px;
    left: 10px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--ig-gradient);
    box-shadow: 0 14px 32px rgba(220, 39, 67, 0.38), 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: floatBadgeL1 5s ease-in-out infinite;
}

.ambient-badge.badge-tt {
    top: 365px;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), -2px -2px 14px rgba(0, 242, 234, 0.3), 2px 2px 14px rgba(255, 0, 79, 0.3);
    animation: floatBadgeL2 5.5s ease-in-out infinite 0.7s;
}

/* Right Flank Badges */
.ambient-badge.badge-fb {
    top: 165px;
    right: 10px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #1877f2;
    box-shadow: 0 14px 32px rgba(24, 119, 242, 0.38), 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: floatBadgeR1 5.2s ease-in-out infinite 0.3s;
}

.ambient-badge.badge-yt {
    top: 300px;
    right: 18px;
    width: 60px;
    height: 44px;
    border-radius: 14px;
    background: #ff0000;
    box-shadow: 0 14px 30px rgba(255, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: floatBadgeR2 5.6s ease-in-out infinite 1s;
}

.ambient-badge.badge-x {
    top: 435px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
    animation: floatBadgeR3 5.4s ease-in-out infinite 1.5s;
}

@keyframes floatBadgeL1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-9px) rotate(2deg); }
}

@keyframes floatBadgeL2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-2deg); }
}

@keyframes floatBadgeR1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes floatBadgeR2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes floatBadgeR3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

/* ==========================================================================
   4. Foreground Hero Content Layer
   ========================================================================== */
.hero-content-container {
    position: relative;
    z-index: 10;
    max-width: 920px;
    margin: 0 auto;
}

.hero-header-text {
    text-align: center;
    margin-bottom: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

[data-bs-theme="dark"] .hero-badge {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.hero-badge .badge-icon {
    color: #f59e0b;
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.55;
}

.hero-subtitle strong {
    color: var(--text-main);
}

/* ==========================================================================
   5. Center Downloader Card (Exact Match)
   ========================================================================== */
.downloader-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 24px 28px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 26px auto 0;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Platform Tabs */
.platform-tabs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.platform-tabs-row::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--tab-bg);
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
    background: var(--tab-active-bg);
    border-color: var(--card-border);
}

.tab-btn.active {
    color: var(--text-main);
    background: var(--tab-active-bg);
    border-color: var(--input-border);
    box-shadow: var(--shadow-sm);
}

.tab-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.ig-icon { background: var(--ig-gradient); }
.fb-icon { background: #1877f2; }
.yt-icon { background: #ff0000; }
.tt-icon { background: #000000; }
.x-icon  { background: #000000; }

/* Input Container & Form Layout */
.downloader-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 768px) {
    .downloader-form {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
}

.input-container {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 50px;
    padding: 6px 20px;
    min-height: 56px;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.015);
    flex: 1;
}

.input-container:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.input-link-icon {
    color: #94a3b8;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.downloader-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    padding: 10px 0;
}

.downloader-input::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

.input-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.input-clear-btn:hover {
    color: #ef4444;
}

/* Big Vibrant Gradient Download Button */
.btn-download-main {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--btn-gradient);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    text-transform: capitalize;
    min-height: 56px;
}

@media (min-width: 768px) {
    .btn-download-main {
        width: auto;
        min-width: 220px;
        padding: 0 24px;
        flex-shrink: 0;
    }
}

.btn-download-main:hover {
    background: var(--btn-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.45);
}

.btn-download-main:active {
    transform: translateY(0);
}

.btn-main-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-tray-icon {
    display: flex;
    align-items: center;
}

.btn-arrow-circle {
    width: 34px;
    height: 34px;
    background: #ffffff;
    color: #db2777;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.btn-download-main:hover .btn-arrow-circle {
    transform: translateX(3px);
}

/* Loader Area */
.loader-area {
    text-align: center;
    padding: 30px 15px;
}

.loader-pulse-ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-status-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.loader-status-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Results Container */
.results-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.result-engine-badge {
    margin-bottom: 18px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.result-engine-badge > * {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 18px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-bs-theme="dark"] .result-engine-badge > * {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: #60a5fa;
}

.result-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.video-player-box {
    width: 100%;
    max-width: 100%;
    min-height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.result-video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    border-radius: 14px;
    background: #000000;
    outline: none;
    display: block;
    box-sizing: border-box;
}

.video-player-box iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none;
    border-radius: 14px;
    display: block;
}

.preview-fallback-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    box-sizing: border-box;
}

.video-details-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Creator Profile Header */
.video-creator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.result-creator-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    background: #e2e8f0;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.creator-meta-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.author-handle {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

[data-bs-theme="dark"] .author-handle {
    color: #60a5fa;
}

.stream-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: #10b981;
    font-weight: 600;
}

.video-details-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.download-actions-block {
    margin-top: 4px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.download-section-heading {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.format-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin: 14px 0 8px 0;
}

.format-category-header svg {
    color: var(--primary);
}

.format-buttons-stack,
.download-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Master Format Download Button */
.btn-format-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-format-download:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Left Section: Icon + Text */
.fmt-left-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.fmt-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    color: #ffffff;
}

.fmt-text-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.fmt-main-title {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.fmt-sub-meta {
    font-size: 0.74rem;
    font-weight: 500;
    opacity: 0.88;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Right Section: Badge + Arrow */
.fmt-right-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fmt-res-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.fmt-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.btn-format-download:hover .fmt-arrow-icon {
    transform: translateX(3px);
}

/* Color Themes for Resolutions */
/* 1080p Full HD - Vibrant Master Gradient */
.btn-fmt-1080 {
    background: var(--btn-gradient);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
}
.btn-fmt-1080:hover {
    background: var(--btn-hover-gradient);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

/* 720p HD - Deep Azure Gradient */
.btn-fmt-720 {
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.btn-fmt-720:hover {
    background: linear-gradient(90deg, #0369a1 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

/* 480p Medium - Clean Slate Glass */
.btn-fmt-480 {
    background: var(--tab-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}
.btn-fmt-480 .fmt-icon-circle {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}
.btn-fmt-480 .fmt-res-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border-color: var(--card-border);
}
.btn-fmt-480:hover {
    background: var(--card-bg);
    border-color: #2563eb;
    box-shadow: var(--shadow-md);
}

/* 360p Fast */
.btn-fmt-360 {
    background: var(--tab-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}
.btn-fmt-360 .fmt-icon-circle {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
    border-color: var(--card-border);
}
.btn-fmt-360 .fmt-res-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    border-color: var(--card-border);
}
.btn-fmt-360:hover {
    background: var(--card-bg);
    border-color: #64748b;
    box-shadow: var(--shadow-md);
}

/* Audio HQ (320k) - Sunset Gold */
.btn-fmt-audio-hq {
    background: linear-gradient(90deg, #d97706 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}
.btn-fmt-audio-hq:hover {
    background: linear-gradient(90deg, #b45309 0%, #c2410c 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45);
}

/* Audio Standard (128k) - Violet */
.btn-fmt-audio-std {
    background: linear-gradient(90deg, #7c3aed 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.btn-fmt-audio-std:hover {
    background: linear-gradient(90deg, #6d28d9 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
}

/* Direct CDN Mirror */
.btn-format-mirror {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn-format-mirror:hover {
    background: linear-gradient(90deg, #047857 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

/* Dynamic States: Converting / Ready */
.btn-format-download.converting {
    background: linear-gradient(90deg, #475569 0%, #334155 100%) !important;
    cursor: wait !important;
    box-shadow: none !important;
    transform: none !important;
}

.converting-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

.btn-format-download.ready-download {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    animation: readyPulse 2s infinite ease-in-out;
}

@keyframes readyPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.7); }
}

[data-bs-theme="dark"] .btn-fmt-480,
[data-bs-theme="dark"] .btn-fmt-360 {
    background: #0b1329;
    border-color: #1e293b;
    color: #f8fafc;
}

[data-bs-theme="dark"] .btn-fmt-480 .fmt-res-badge,
[data-bs-theme="dark"] .btn-fmt-360 .fmt-res-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-color: #334155;
}

/* ==========================================================================
   6. 4 Feature Badges Row Below Downloader (Exact Match from Image)
   ========================================================================== */
.hero-feature-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.hero-feature-badge-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-feature-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hfb-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-shield-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.icon-rocket-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.icon-cloud-blue {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.icon-crown-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.hfb-text-box {
    display: flex;
    flex-direction: column;
}

.hfb-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}

.hfb-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   7. Supported Platforms Section
   ========================================================================== */
.section-padding {
    padding: 70px 0;
}

.section-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.platform-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.platform-card-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-ig { background: var(--ig-gradient); box-shadow: 0 8px 20px rgba(220, 39, 67, 0.3); }
.icon-fb { background: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3); }
.icon-yt { background: #ff0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3); }
.icon-tt { background: #000000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.icon-x  { background: #000000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

.platform-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.platform-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.4;
    min-height: 38px;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn-action-ig { background: var(--ig-gradient); }
.btn-action-fb { background: #1877f2; }
.btn-action-yt { background: #ff0000; }
.btn-action-tt { background: #000000; }
.btn-action-x  { background: #000000; }

.btn-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.btn-action-arrow {
    transition: transform 0.2s ease;
}

.btn-card-action:hover .btn-action-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   8. How It Works (3 Steps)
   ========================================================================== */
.how-section {
    background: rgba(241, 245, 249, 0.5);
}

[data-bs-theme="dark"] .how-section {
    background: rgba(14, 23, 46, 0.4);
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 950px;
    margin: 0 auto;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 24px;
    flex: 1;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 18px auto;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   9. Features Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-amber   { background: #fef3c7; color: #d97706; }
.icon-rose    { background: #ffe4e6; color: #e11d48; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-blue    { background: #dbeafe; color: #2563eb; }

.hd-badge-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: #d97706;
}

.feature-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.feature-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   10. FAQ Section
   ========================================================================== */
.faq-section {
    background: var(--body-bg);
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.faq-question:hover {
    color: #2563eb;
}

.faq-toggle-icon {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2563eb;
    margin-left: 12px;
    transition: transform 0.2s ease;
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px 0;
    color: var(--text-muted);
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: #2563eb;
    transform: translateX(3px);
    display: inline-block;
}

.footer-platform-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.footer-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.ig-mini-icon { background: var(--ig-gradient); }
.fb-mini-icon { background: #1877f2; }
.yt-mini-icon { background: #ff0000; }
.tt-mini-icon { background: #000000; }
.x-mini-icon  { background: #000000; }

.footer-social-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.social-circle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.social-yt { background: #ff0000; }
.social-x  { background: #1e293b; }
.social-fb { background: #1877f2; }

.footer-bottom-bar {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.82rem;
}

.disclaimer-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   12. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
    .platform-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-feature-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .result-layout-grid {
        grid-template-columns: 1fr;
    }
    .platform-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-row {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    .step-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header-wrap {
        padding: 10px 10px 0;
    }
    .site-header {
        height: 58px;
        padding: 0 16px;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 66px;
        left: 10px;
        right: 10px;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: 20px;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        gap: 10px;
        z-index: 1001;
    }
    .nav-menu.open {
        display: flex;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .hero-section {
        padding: 20px 0 35px 0;
        text-align: center;
    }
    .hero-badge {
        margin-bottom: 10px;
        padding: 4px 14px;
        font-size: 0.74rem;
    }
    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.45;
        margin: 0 auto 16px auto;
        padding: 0 10px;
    }
    .downloader-card {
        padding: 16px 14px;
        border-radius: 18px;
        margin-top: 14px;
    }
    .platform-tabs-row {
        gap: 6px;
        margin-bottom: 12px;
    }
    .tab-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    .downloader-form {
        flex-direction: column;
        gap: 10px;
    }
    .input-container {
        min-height: 48px;
        padding: 4px 14px;
    }
    .downloader-input {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    .btn-download-main {
        width: 100%;
        min-height: 48px;
        padding: 11px 18px;
        font-size: 0.98rem;
        justify-content: center;
        gap: 10px;
    }
    .btn-main-content {
        margin: 0;
    }
    .btn-arrow-circle {
        margin-left: 0;
        width: 28px;
        height: 28px;
    }
    .hero-feature-cards-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }
    .hero-feature-badge-card {
        padding: 12px 14px;
        border-radius: 16px;
    }
    .hero-3d-stage {
        display: none !important;
    }
    .platform-cards-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Results & Downloader Card Management */
    .downloader-card {
        padding: 16px 12px !important;
        border-radius: 18px !important;
        margin-top: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .results-container {
        margin-top: 18px !important;
        padding-top: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .result-engine-badge {
        margin-bottom: 12px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .result-engine-badge > * {
        font-size: 0.76rem !important;
        padding: 4px 12px !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .result-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .video-player-box {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 180px !important;
        max-height: 280px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .result-video-player {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 280px !important;
        border-radius: 12px !important;
        object-fit: contain !important;
    }

    .video-player-box iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 210px !important;
        min-height: 180px !important;
        border-radius: 12px !important;
    }

    .preview-fallback-container {
        min-height: 180px !important;
        max-height: 260px !important;
        width: 100% !important;
    }

    .video-details-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .video-creator-header {
        gap: 10px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .result-creator-avatar {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }

    .creator-meta-col {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .author-handle {
        font-size: 0.84rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .stream-verified-badge {
        font-size: 0.7rem !important;
    }

    .video-details-title {
        font-size: 0.98rem !important;
        margin-bottom: 12px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .download-section-heading {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    .format-category-header {
        font-size: 0.76rem !important;
        margin: 10px 0 6px 0 !important;
    }

    .format-buttons-stack,
    .download-buttons-stack {
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-format-download {
        padding: 9px 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }

    .fmt-left-wrap {
        gap: 10px !important;
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .fmt-icon-circle {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }

    .fmt-icon-circle svg {
        width: 14px !important;
        height: 14px !important;
    }

    .fmt-text-info {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .fmt-main-title {
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .fmt-sub-meta {
        font-size: 0.67rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .fmt-right-wrap {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .fmt-res-badge {
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.2px !important;
    }

    .fmt-arrow-icon {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }

    .fmt-arrow-icon svg {
        width: 11px !important;
        height: 11px !important;
    }
}

@media (max-width: 420px) {
    .downloader-card {
        padding: 14px 10px !important;
        border-radius: 16px !important;
    }
    .btn-format-download {
        padding: 8px 10px !important;
    }
    .fmt-icon-circle {
        width: 28px !important;
        height: 28px !important;
    }
    .fmt-icon-circle svg {
        width: 13px !important;
        height: 13px !important;
    }
    .fmt-main-title {
        font-size: 0.78rem !important;
    }
    .fmt-sub-meta {
        font-size: 0.64rem !important;
    }
    .fmt-res-badge {
        padding: 2px 6px !important;
        font-size: 0.64rem !important;
    }
    .fmt-arrow-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ==========================================================================
   13. Dedicated Subpages Design System (Features, How to Use, Supported Sites,
       FAQ, Privacy Policy, Terms, Disclaimer, Contact Us)
   ========================================================================== */
.subpage-hero {
    position: relative;
    padding: 45px 0 35px 0;
    text-align: center;
    overflow: hidden;
}

.subpage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 14px;
}

[data-bs-theme="dark"] .subpage-badge {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.subpage-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .subpage-title {
        font-size: 1.85rem;
    }
    .subpage-hero {
        padding: 25px 0 20px 0;
    }
}

.subpage-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

/* Subpage Call-to-Action Bar */
.subpage-cta-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.subpage-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--btn-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
    transition: var(--transition);
}

.subpage-cta-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(168, 85, 247, 0.45);
}

/* Subpage Content Section */
.subpage-content-wrap {
    padding: 10px 0 60px 0;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .content-card {
        padding: 20px 16px;
        border-radius: 18px;
    }
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.25);
}

/* Feature Deep-Dive Cards */
.feature-deep-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-deep-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.3);
}

.feature-deep-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-deep-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-deep-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.feature-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits-list li {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-check-icon {
    color: #10b981;
    flex-shrink: 0;
}

/* Step-By-Step Guide Cards */
.guide-step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    transition: var(--transition);
}

.guide-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guide-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3);
}

.guide-step-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.guide-step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.guide-tip-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    font-size: 0.82rem;
    color: var(--text-main);
}

[data-bs-theme="dark"] .guide-tip-box {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
}

/* Platform Detailed Showcase Cards */
.platform-showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.platform-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.platform-badge-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.platform-showcase-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.platform-specs-table {
    width: 100%;
    margin-top: 16px;
    font-size: 0.86rem;
}

.platform-specs-table td {
    padding: 6px 0;
    border-bottom: 1px solid var(--card-border);
}

.platform-specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.platform-specs-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
}

/* Legal & Policy Articles */
.legal-article {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    line-height: 1.75;
}

@media (max-width: 768px) {
    .legal-article {
        padding: 22px 16px;
    }
}

.legal-article h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.legal-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.legal-article p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.legal-article ul {
    color: var(--text-muted);
    padding-left: 24px;
    margin-bottom: 20px;
    font-size: 0.93rem;
}

.legal-article ul li {
    margin-bottom: 8px;
}

.legal-highlight-box {
    background: rgba(99, 102, 241, 0.06);
    border-left: 4px solid #6366f1;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 22px 0;
    font-size: 0.92rem;
    color: var(--text-main);
}

/* Contact Us Form */
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 22px 16px;
    }
}

.form-group-custom {
    margin-bottom: 18px;
}

.form-label-custom {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.form-input-custom,
.form-select-custom,
.form-textarea-custom {
    width: 100%;
    padding: 12px 18px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-input-custom:focus,
.form-select-custom:focus,
.form-textarea-custom:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.contact-info-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    margin-bottom: 14px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}