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

/* Better scrolling on iOS */
@supports (-webkit-touch-callout: none) {
    body {
        /* iOS Safari specific fixes */
        -webkit-overflow-scrolling: touch;
    }
}

/* Smooth momentum scrolling */
html {
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    /* iOS Safari safe area support */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Fix for iOS Safari bottom bar */
body {
    min-height: 100vh;
    /* Fallback for browsers that don't support dvh */
    min-height: -webkit-fill-available;
}

:root {
    --primary: #5940f1;
    --primary-dark: #4830d1;
    --secondary: #ce00ff;
    --gradient-start: #5940f1;
    --gradient-end: #ce00ff;
    --bg-main: #fafafa;
    --bg-secondary: #f8f8f8;
    --bg-card: #fefefe;
    --border: #e8e8e8;
    --text: #1a1a1a;
    --text-muted: #6c757d;
    --success: #00d9a0;
    --error: #ff4d4f;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.header {
    width: 100%;
    text-align: center;
    padding: 40px 20px 20px;
    margin: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo svg {
    width: 50px;
    height: 50px;
    color: var(--primary);
    filter: drop-shadow(0 0 12px rgba(89, 64, 241, 0.5));
    transition: all 0.3s ease;
}

.logo:hover svg {
    transform: rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(89, 64, 241, 0.7));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(89.86deg, var(--gradient-start) 8.6%, var(--gradient-end) 99.86%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.splash-container {
    width: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 60px 20px 80px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.splash-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.splash-container > * {
    position: relative;
    z-index: 1;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
}

.input-section {
    margin-bottom: 30px;
}

/* Mobile-specific input improvements */
@media (max-width: 768px) {
    .input-section {
        margin-bottom: 25px;
    }

    .input-wrapper {
        margin-bottom: 18px;
    }

    #videoUrl {
        /* Prevent zoom on iOS */
        font-size: 16px;
    }
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#videoUrl {
    width: 100%;
    padding: 22px 110px 22px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

#videoUrl:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(89, 64, 241, 0.2);
    border-color: rgba(89, 64, 241, 0.3);
    transform: translateY(-1px);
}

#videoUrl:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#pasteBtn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: rgba(89, 64, 241, 0.1);
    border: 1px solid rgba(89, 64, 241, 0.2);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: subtleFloat 3s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 2px)); }
}

#pasteBtn:hover {
    background: rgba(89, 64, 241, 0.15);
    border-color: rgba(89, 64, 241, 0.4);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(89, 64, 241, 0.2);
}

#pasteBtn:active {
    transform: translateY(-50%) scale(0.98);
}

#clearBtn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.2);
    border-radius: 8px;
    color: var(--error);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

#clearBtn:hover {
    background: rgba(255, 77, 79, 0.15);
    border-color: rgba(255, 77, 79, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.2);
}

#clearBtn:active {
    transform: translateY(-50%) scale(0.95);
}

#videoUrl::placeholder {
    color: var(--text-muted);
}

.bigmessage {
    font-size: 2.5em;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#downloadBtn {
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(135deg, #5940f1 0%, #fe2c55 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(89, 64, 241, 0.4), 0 8px 24px rgba(254, 44, 85, 0.3);
    position: relative;
    min-width: 140px;
    overflow: hidden;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

#downloadBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

#downloadBtn:hover::before {
    left: 100%;
}

#downloadBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4830d1 0%, #e0244a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(89, 64, 241, 0.6), 0 12px 32px rgba(254, 44, 85, 0.4);
}

#downloadBtn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(89, 64, 241, 0.5), 0 6px 20px rgba(254, 44, 85, 0.3);
}

#downloadBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #7d6dc9 0%, #ff5c7c 100%);
}

#downloadBtn .loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#downloadBtn.loading {
    pointer-events: none;
}

#downloadBtn.loading .btn-text {
    opacity: 0;
    transform: scale(0.9);
}

#downloadBtn.loading .loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 24px;
}

.result-section {
    margin-top: 30px;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .result-section {
        margin-top: 25px;
    }
}

.result-section.hidden,
.error-message.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.video-info:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.video-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-info:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-details {
    flex: 1;
}

.video-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text);
    font-weight: 700;
}

.video-details p {
    background: linear-gradient(89.86deg, var(--gradient-start) 8.6%, var(--gradient-end) 99.86%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-stats {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.video-stats span {
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.video-stats span:hover {
    background: var(--bg-main);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.download-options h4 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.download-options h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Modern Video Card Design */
.video-card-modern {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.video-preview {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.7) 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto;
    padding-bottom: 12px;
}

.video-title-wrapper h3 {
    flex: 1;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.copy-title-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.copy-title-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.copy-title-btn svg {
    display: block;
    color: white;
}

.video-overlay .video-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.video-overlay .video-stats span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-options-modern {
    padding: 30px;
}

.download-options-modern h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
}

/* Responsive adjustments for modern card */
@media (max-width: 768px) {
    .video-preview {
        height: 350px;
    }

    .video-overlay {
        padding: 20px;
    }

    .author-avatar {
        width: 42px;
        height: 42px;
    }

    .author-avatar svg {
        width: 20px;
        height: 20px;
    }

    .author-name {
        font-size: 1rem;
    }

    .video-title-wrapper h3 {
        font-size: 1.1rem;
    }

    .video-overlay .video-stats {
        gap: 10px;
        flex-wrap: wrap;
    }

    .video-overlay .video-stats span {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .download-options-modern {
        padding: 20px;
    }

    .download-options-modern h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-preview {
        height: 300px;
    }

    .video-overlay {
        padding: 16px;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
    }

    .author-avatar svg {
        width: 18px;
        height: 18px;
    }

    .author-name {
        font-size: 0.9rem;
    }

    .video-title-wrapper {
        gap: 8px;
    }

    .video-title-wrapper h3 {
        font-size: 1rem;
    }

    .copy-title-btn {
        padding: 8px;
    }

    .copy-title-btn svg {
        width: 14px;
        height: 14px;
    }

    .video-overlay .video-stats span {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .download-options-modern {
        padding: 16px;
    }
}

/* ===========================
   Adsterra Ad Containers
   =========================== */

/* Ad Label */
.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* 728x90 Banner Container (Desktop) */
.ad-container-728 {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 768px;
}

/* 300x250 Banner Container (Universal) */
.ad-container-300 {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 340px;
}

/* Native Banner Container */
.ad-container-native {
    margin: 50px auto;
    padding: 25px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 100%;
}

/* Mobile Sticky Banner 320x50 */
.ad-container-mobile-sticky {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--bg-card);
    padding: 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
    width: 100%;
    text-align: center;
}

/* Show mobile banner only on mobile devices */
@media (max-width: 768px) {
    .ad-container-mobile-sticky {
        display: block;
    }

    /* Hide desktop banner on mobile */
    .ad-container-728 {
        display: none;
    }

    /* Adjust other ad containers for mobile */
    .ad-container-300,
    .ad-container-native {
        margin: 30px auto;
        padding: 15px;
    }

    /* Add padding to bottom of body to prevent content being hidden by sticky ad */
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .ad-container-300,
    .ad-container-native {
        margin: 20px 10px;
        padding: 12px;
    }
}

/* ===========================
   Latest Blogs Section
   =========================== */

.latest-blogs-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card-home {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.blog-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card-home:hover::before {
    transform: scaleX(1);
}

.blog-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(89, 64, 241, 0.2);
    border-color: var(--primary);
}

.blog-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-card-home h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
}

.blog-card-home p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.blog-card-home:hover .read-more {
    gap: 10px;
}

.view-all-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(89, 64, 241, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(89, 64, 241, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .latest-blogs-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .blog-grid-home {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-home {
        padding: 25px;
    }

    .blog-card-home h3 {
        font-size: 1.15rem;
    }

    .view-all-btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .blog-card-home {
        padding: 20px;
    }

    .blog-icon {
        font-size: 2.5rem;
    }
}

/* ===========================
   Download Quality Buttons — Clean List Style
   =========================== */

.quality-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.quality-btn {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

/* Left icon bubble */
.quality-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.quality-btn:hover .quality-icon {
    transform: scale(1.08);
}

/* Middle text */
.quality-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.quality-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quality-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Right download arrow — always visible */
.quality-btn::after {
    content: '';
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235940f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(89, 64, 241, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quality-btn:hover::after {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    transform: translateY(1px);
}

/* Video buttons — red accent */
.quality-btn.video-btn {
    border-color: rgba(254, 44, 85, 0.25);
}
.quality-btn.video-btn .quality-icon {
    background: rgba(254, 44, 85, 0.1);
}
.quality-btn.video-btn .quality-icon i,
.quality-btn.video-btn .quality-icon svg {
    color: #fe2c55;
}
.quality-btn.video-btn:hover {
    border-color: #fe2c55;
    background: rgba(254, 44, 85, 0.04);
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.15);
    transform: translateX(3px);
}
.quality-btn.video-btn::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fe2c55' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    background-color: rgba(254, 44, 85, 0.08);
    background-repeat: no-repeat;
    background-position: center;
}
.quality-btn.video-btn:hover::after {
    background-color: #fe2c55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Audio buttons — teal accent */
.quality-btn.audio-btn {
    border-color: rgba(0, 180, 160, 0.25);
}
.quality-btn.audio-btn .quality-icon {
    background: rgba(0, 180, 160, 0.1);
}
.quality-btn.audio-btn .quality-icon i,
.quality-btn.audio-btn .quality-icon svg {
    color: #00b4a0;
}
.quality-btn.audio-btn:hover {
    border-color: #00b4a0;
    background: rgba(0, 180, 160, 0.04);
    box-shadow: 0 4px 16px rgba(0, 180, 160, 0.15);
    transform: translateX(3px);
}
.quality-btn.audio-btn::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300b4a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    background-color: rgba(0, 180, 160, 0.08);
    background-repeat: no-repeat;
    background-position: center;
}
.quality-btn.audio-btn:hover::after {
    background-color: #00b4a0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Image buttons — purple accent */
.quality-btn.image-btn {
    border-color: rgba(89, 64, 241, 0.25);
}
.quality-btn.image-btn .quality-icon {
    background: rgba(89, 64, 241, 0.1);
}
.quality-btn.image-btn .quality-icon i,
.quality-btn.image-btn .quality-icon svg {
    color: var(--primary);
}
.quality-btn.image-btn:hover {
    border-color: var(--primary);
    background: rgba(89, 64, 241, 0.04);
    box-shadow: 0 4px 16px rgba(89, 64, 241, 0.15);
    transform: translateX(3px);
}

/* Mobile touch targets */
@media (hover: none) and (pointer: coarse) {
    .quality-btn {
        min-height: 64px;
    }
}

@media (max-width: 480px) {
    .quality-btn {
        padding: 14px 16px;
        gap: 12px;
    }
    .quality-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .quality-label {
        font-size: 0.95rem;
    }
}

.error-message {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.08) 0%, rgba(255, 77, 79, 0.12) 100%);
    border: 2px solid var(--error);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease, shake 0.5s ease;
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.15);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.error-message svg {
    width: 28px;
    height: 28px;
    color: var(--error);
    flex-shrink: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.error-message p {
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 50px 20px;
    }

    .how-to {
        padding: 50px 20px;
    }

    .how-to-container {
        padding: 0 20px;
    }

    .how-to h2 {
        font-size: 1.8rem;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .step {
        padding: 25px 15px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.7rem;
    }

    .step h4 {
        font-size: 1.2rem;
    }

    .step p {
        font-size: 0.93rem;
    }

    .quality-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .main__content {
        padding: 50px 20px;
    }

    .main__content__container {
        margin-bottom: 40px;
    }

    .d-flex {
        gap: 50px;
    }

    .image__wrapper {
        max-width: 350px;
    }

    .text--text h3 {
        font-size: 1.6rem;
    }

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

    .video-info {
        gap: 18px;
    }

    .video-thumbnail {
        width: 110px;
        height: 150px;
    }

    .splash-container {
        padding: 50px 20px 70px;
    }

    #videoUrl {
        padding: 20px 150px 20px 22px;
    }

    #pasteBtn {
        right: 12px;
    }

    #clearBtn {
        right: 12px;
    }
}

/* Medium Tablets (769px - 900px) - Keep 3 columns but smaller */
@media (max-width: 900px) and (min-width: 769px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .step {
        padding: 20px 12px;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .step h4 {
        font-size: 1.1rem;
    }

    .step p {
        font-size: 0.9rem;
    }
}

/* Small Tablet / Large Phone (600px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .logo h1 {
        font-size: 1.6rem;
    }

    .bigmessage {
        font-size: 1.5em;
    }

    #videoUrl {
        padding: 18px 110px 18px 20px;
        font-size: 0.95rem;
    }

    #pasteBtn {
        right: 12px;
        font-size: 0.88rem;
    }

    #clearBtn {
        right: 12px;
    }

    #downloadBtn {
        font-size: 1.05rem;
        padding: 17px 35px;
    }

    .quality-buttons {
        grid-template-columns: 1fr;
    }

    .video-info {
        flex-direction: row;
    }

    .video-thumbnail {
        width: 100px;
        height: 135px;
    }

    .video-details h3 {
        font-size: 1.15rem;
    }

    .how-to h2 {
        font-size: 1.6rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step {
        padding: 22px 15px;
    }

    .step-number {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .step h4 {
        font-size: 1.15rem;
        margin-bottom: 11px;
    }

    .step p {
        font-size: 0.93rem;
    }

    .main__content__container .d-flex {
        flex-direction: column !important;
    }

    .image__wrapper {
        max-width: 70%;
        margin: 0 auto;
    }

    .image__wrapper img {
        max-height: 320px;
    }

    .text--text h3 {
        font-size: 1.35rem;
        text-align: center;
    }

    .text--text p {
        font-size: 0.93rem;
        text-align: center;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 15px;
    }

    .how-to {
        padding: 40px 15px;
    }

    .how-to h2 {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .step {
        padding: 25px 15px;
        background: var(--bg-card);
        border-radius: 15px;
        border: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .step h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .step p {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .main__content {
        padding: 40px 15px;
    }

    .main__content__container {
        margin-bottom: 30px;
    }

    .u-m-bottom {
        margin-bottom: 40px;
    }

    .d-flex {
        flex-direction: column !important;
        gap: 30px;
    }

    .text--image {
        order: 2;
        width: 100%;
    }

    .text--text {
        order: 1;
        width: 100%;
    }

    .text-pr {
        order: 1 !important;
    }

    .image__wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }

    .image__wrapper img {
        max-width: 100%;
        width: auto;
        max-height: 350px;
        margin: 0 auto;
    }

    .flex-1 {
        width: 100%;
        flex: none;
    }

    .text--text h3 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 15px;
    }

    .text--text p {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.7;
    }

    .info-arrow {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

/* Six Items Section */
#six__items {
    width: 100%;
    padding: 60px 20px;
    background: var(--bg-main);
}

.six__items_header {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.six__items_header p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.six__items_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.six__items_item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.six__items_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(89, 64, 241, 0.15);
}

.six__items_icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.six__items_text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .six__items_wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    #six__items {
        padding: 40px 20px;
    }

    .six__items_wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .six__items_header p {
        font-size: 1rem;
    }

    .six__items_icon {
        font-size: 3rem;
    }
}

/* Main Content Section - How To Use */
.main__content {
    width: 100%;
    padding: 60px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.main__content__container {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.info-arrow {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
}

.arrow-icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

.d-flex {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

.u-m-bottom {
    margin-bottom: 80px;
}

.text--text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text);
}

.text--text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.u-smaller-text {
    font-size: 0.95rem;
}

.text-pr {
    order: -1;
}

.image__wrapper {
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image__wrapper img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 968px) {
    .d-flex {
        flex-direction: column;
        gap: 30px;
    }

    .text-pr {
        order: 0;
    }

    .image__wrapper {
        max-width: 100%;
        width: 100%;
    }

    .image__wrapper img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .main__content__container {
        margin-bottom: 30px;
    }

    .u-m-bottom {
        margin-bottom: 50px;
    }

    .text--text h3 {
        font-size: 1.5rem;
    }

    .text--image {
        width: 100%;
    }

    .flex-1 {
        width: 100%;
    }
}

/* FAQ Accordion Section */
#accordion {
    width: 100%;
    padding: 60px 20px;
    background: var(--bg-main);
}

.accordion__container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-drawer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-drawer:hover {
    box-shadow: 0 4px 12px rgba(89, 64, 241, 0.1);
}

.faq-drawer__trigger {
    display: none;
}

.faq-drawer__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.faq-drawer__title::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-drawer__trigger:checked + .faq-drawer__title::after {
    transform: rotate(45deg);
}

.faq-drawer__title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    padding-right: 20px;
    line-height: 1.5;
}

.faq-drawer__content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-drawer__trigger:checked ~ .faq-drawer__content-wrapper {
    max-height: 500px;
}

.faq-drawer__content {
    padding: 0 25px 20px 25px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    #accordion {
        padding: 40px 15px;
    }

    .faq-drawer__title {
        padding: 15px 20px;
    }

    .faq-drawer__title h4 {
        font-size: 1rem;
    }

    .faq-drawer__content {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }
}

.how-to {
    width: 100%;
    background: var(--bg-card);
    padding: 60px 20px;
    margin: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-to-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-to h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(89.86deg, var(--gradient-start) 8.6%, var(--gradient-end) 99.86%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 20px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(89, 64, 241, 0.3);
    color: #ffffff;
    flex-shrink: 0;
}

.step h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

footer {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

@media (max-width: 768px) {
    .header {
        padding: 30px 15px 18px;
    }

    .header p {
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo svg {
        width: 35px;
        height: 35px;
    }

    .bigmessage {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .splash-container {
        padding: 40px 15px 50px;
    }

    #videoUrl {
        padding: 16px 100px 16px 18px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    #pasteBtn {
        right: 12px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    #pasteBtn span {
        display: none;
    }

    #pasteBtn svg {
        margin: 0;
    }

    #clearBtn {
        right: 12px;
    }

    #downloadBtn {
        font-size: 1rem;
        padding: 16px 30px;
    }

    .video-info {
        flex-direction: column;
    }

    .video-thumbnail {
        width: 100%;
        height: 200px;
    }

    .quality-buttons {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step h4 {
        font-size: 1.1rem;
    }

    .loader-spinner {
        width: 80px;
        height: 80px;
    }

    .loader-text {
        font-size: 1rem;
    }

    footer {
        padding: 35px 15px;
    }

    footer a {
        display: inline-block;
        margin: 0 10px;
        font-size: 0.9rem;
    }

    footer p {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 15px 15px;
    }

    .logo {
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .bigmessage {
        font-size: 1.3em;
        line-height: 1.3;
    }

    .splash-container {
        padding: 30px 15px 40px;
    }

    .main-content {
        padding: 0;
    }

    #videoUrl {
        padding: 14px 95px 14px 16px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    #pasteBtn {
        right: 12px;
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    #clearBtn {
        right: 12px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    #downloadBtn {
        font-size: 0.95rem;
        padding: 14px 25px;
        border-radius: 10px;
    }

    .hint {
        font-size: 0.8rem;
        padding-left: 16px;
    }

    .features {
        padding: 40px 15px;
        gap: 25px;
    }

    .features h3 {
        font-size: 1.15rem;
    }

    .feature p {
        font-size: 0.9rem;
    }

    .how-to {
        padding: 35px 15px;
    }

    .how-to h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .steps {
        gap: 20px;
        margin-top: 25px;
    }

    .step {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .step h4 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .step p {
        font-size: 0.88rem;
        padding: 0 5px;
        line-height: 1.5;
    }

    #six__items {
        padding: 40px 15px;
    }

    #six__items h2 {
        font-size: 1.5rem;
    }

    .six__items_header p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .six__items_icon {
        font-size: 2.5rem;
    }

    .six__items_text {
        font-size: 0.9rem;
    }

    .six__items_item {
        padding: 25px 15px;
    }

    .main__content {
        padding: 35px 15px;
    }

    .main__content__container {
        margin-bottom: 25px;
    }

    .u-m-bottom {
        margin-bottom: 35px;
    }

    .d-flex {
        flex-direction: column !important;
        gap: 25px;
    }

    .text--image,
    .text--text {
        width: 100%;
        order: initial;
    }

    .image__wrapper {
        max-width: 85%;
        margin: 0 auto;
        padding: 0 10px;
    }

    .image__wrapper img {
        max-width: 100%;
        width: auto;
        max-height: 280px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .info-arrow {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .text--text h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        text-align: center;
    }

    .text--text p {
        font-size: 0.88rem;
        line-height: 1.6;
        text-align: center;
    }

    .u-smaller-text {
        font-size: 0.86rem;
    }

    #accordion {
        padding: 40px 15px;
    }

    #accordion h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .faq-drawer__title {
        padding: 15px 18px;
    }

    .faq-drawer__title h4 {
        font-size: 0.95rem;
        padding-right: 15px;
    }

    .faq-drawer__title::after {
        font-size: 1.5rem;
    }

    .faq-drawer__content {
        padding: 0 18px 15px 18px;
        font-size: 0.9rem;
    }

    footer {
        padding: 30px 15px;
    }

    footer p {
        font-size: 0.85rem;
    }

    .video-info {
        padding: 15px;
        gap: 15px;
    }

    .video-details h3 {
        font-size: 1.1rem;
    }

    .video-details p {
        font-size: 0.9rem;
    }

    .video-stats {
        font-size: 0.85rem;
        gap: 8px;
    }

    .video-stats span {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .download-options h4 {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .quality-btn {
        padding: 16px;
        gap: 12px;
    }

    .quality-icon {
        font-size: 1.8rem;
        min-width: 45px;
        height: 45px;
    }

    .quality-label {
        font-size: 0.95rem;
    }

    .quality-size {
        font-size: 0.8rem;
    }

    .error-message {
        padding: 15px 18px;
        gap: 12px;
    }

    .error-message svg {
        width: 22px;
        height: 22px;
    }

    .error-message p {
        font-size: 0.9rem;
    }

    .ad-container {
        padding: 12px;
        margin: 15px auto;
    }

    .ad-label {
        font-size: 0.65rem;
    }

    .loader-spinner {
        width: 70px;
        height: 70px;
    }

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

/* Extra Small Devices (320px - 375px) */
@media (max-width: 375px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .bigmessage {
        font-size: 1.2em;
    }

    #videoUrl {
        padding: 12px 90px 12px 14px;
        font-size: 0.8rem;
    }

    #pasteBtn {
        right: 12px;
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    #clearBtn {
        right: 12px;
        padding: 5px 8px;
    }

    #downloadBtn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .quality-btn {
        padding: 14px;
    }

    .quality-icon {
        font-size: 1.6rem;
        min-width: 40px;
        height: 40px;
    }

    .quality-label {
        font-size: 0.9rem;
    }

    .how-to h2 {
        font-size: 1.3rem;
        padding: 0 10px;
    }

    .steps {
        gap: 18px;
    }

    .step {
        padding: 18px 10px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .step h4 {
        font-size: 1rem;
    }

    .step p {
        font-size: 0.85rem;
    }

    .main__content {
        padding: 30px 12px;
    }

    .image__wrapper {
        max-width: 90%;
        padding: 0 5px;
    }

    .image__wrapper img {
        max-height: 240px;
    }

    .text--text h3 {
        font-size: 1.15rem;
    }

    .text--text p {
        font-size: 0.85rem;
    }

    .info-arrow {
        font-size: 0.9rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-container {
        padding: 30px 20px 40px;
    }

    .bigmessage {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .header {
        padding: 20px 20px 15px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .input-section {
        margin-bottom: 20px;
    }

    .input-wrapper {
        margin-bottom: 15px;
    }
}

/* Touch-specific improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .quality-btn {
        min-height: 70px;
    }

    #pasteBtn,
    #clearBtn {
        min-width: 44px;
        min-height: 44px;
    }

    #downloadBtn {
        min-height: 50px;
    }

    .faq-drawer__title {
        min-height: 60px;
    }

    .cookie-btn {
        min-height: 48px;
        min-width: 120px;
    }

    /* Prevent text selection on interactive elements */
    .quality-btn,
    #downloadBtn,
    #pasteBtn,
    #clearBtn,
    .faq-drawer__title {
        -webkit-tap-highlight-color: rgba(89, 64, 241, 0.1);
        user-select: none;
        -webkit-user-select: none;
    }
}

/* Download Loader */
.download-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: loaderFadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.download-loader.hidden {
    display: none;
}

.loader-content {
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-spinner {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    animation: spinLogo 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(89, 64, 241, 0.8));
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(89, 64, 241, 0.5);
    border-right-color: rgba(206, 0, 255, 0.5);
    animation: spinRing 2s linear infinite;
}

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

.loader-spinner svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

@keyframes spinLogo {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.loader-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    animation: textPulse 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.loader-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-2px);
    }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content p:first-child {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 1rem;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #5940f1 0%, #fe2c55 100%);
    color: #ffffff;
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 64, 241, 0.4);
}

.cookie-btn.learn-more {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.learn-more:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-content p:first-child {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .cookie-btn {
        flex: 1;
        min-width: 110px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 12px;
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100px;
    }
}


/* ===========================
   Lucide Icon Styles
   =========================== */

/* Feature icons (Unlimited / No Watermark / MP4) */
.feature-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(89, 64, 241, 0.1), rgba(206, 0, 255, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon-wrap {
    background: linear-gradient(135deg, rgba(89, 64, 241, 0.2), rgba(206, 0, 255, 0.2));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(89, 64, 241, 0.2);
}

.feature-icon-wrap i,
.feature-icon-wrap svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    stroke-width: 1.8;
}

/* Six items icons */
.six__items_icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(89, 64, 241, 0.25);
    transition: all 0.3s ease;
}

.six__items_item:hover .six__items_icon {
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 12px 32px rgba(89, 64, 241, 0.35);
}

.six__items_icon i,
.six__items_icon svg {
    width: 34px;
    height: 34px;
    color: white;
    stroke-width: 1.8;
}

/* Step number icons */
.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(89, 64, 241, 0.3);
    transition: all 0.3s ease;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 28px rgba(89, 64, 241, 0.4);
}

.step-number i,
.step-number svg {
    width: 30px;
    height: 30px;
    color: white;
    stroke-width: 2;
}

/* Blog card icons */
.blog-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(89, 64, 241, 0.1), rgba(206, 0, 255, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.blog-card-home:hover .blog-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.1);
}

.blog-icon i,
.blog-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    stroke-width: 1.8;
    transition: color 0.3s ease;
}

.blog-card-home:hover .blog-icon i,
.blog-card-home:hover .blog-icon svg {
    color: white;
}

/* Quality button icons */
.quality-icon i,
.quality-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
}

.quality-btn.video-btn .quality-icon i,
.quality-btn.video-btn .quality-icon svg {
    color: #fe2c55;
}

.quality-btn.audio-btn .quality-icon i,
.quality-btn.audio-btn .quality-icon svg {
    color: #25f4ee;
}

.quality-btn.image-btn .quality-icon i,
.quality-btn.image-btn .quality-icon svg {
    color: var(--primary);
}

/* Video stats Lucide icon alignment */
.video-stats span i,
.video-stats span svg {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    stroke-width: 2;
    flex-shrink: 0;
}

#videoLikes i,
#videoLikes svg {
    color: #fe2c55;
}

#videoViews i,
#videoViews svg {
    color: var(--primary);
}

#videoDuration i,
#videoDuration svg {
    color: var(--text-muted);
}
