/* ==========================================================================
   SnapTok Pro CSS - Premium Custom Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette - Dark Mode (Default) */
    --bg-main: #0a0b10;
    --bg-header: rgba(13, 14, 24, 0.75);
    --panel-glass: rgba(18, 20, 38, 0.55);
    --panel-border: rgba(255, 255, 255, 0.06);
    --panel-border-glow: rgba(0, 240, 255, 0.35);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Branding Gradients */
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7000ff 50%, #ff007f 100%);
    --gradient-glow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 40px rgba(112, 0, 255, 0.15);
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --accent-pink: #ff007f;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;

    /* Theme-specific shadows */
    --shadow-main: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.05);

    /* Fonts & Radii */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Transition speed */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Variables Override */
[data-theme="light"] {
    --bg-main: #f4f6fb;
    --bg-header: rgba(255, 255, 255, 0.8);
    --panel-glass: rgba(255, 255, 255, 0.75);
    --panel-border: rgba(0, 0, 0, 0.08);
    --panel-border-glow: rgba(112, 0, 255, 0.25);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    --gradient-primary: linear-gradient(135deg, #00b4d8 0%, #7b2cbf 60%, #e63946 100%);
    --gradient-glow: 0 10px 30px rgba(123, 44, 191, 0.15);
    --accent-cyan: #0096c7;
    --accent-purple: #7b2cbf;
    --accent-pink: #d90429;
    
    --shadow-main: 0 16px 40px -15px rgba(0, 0, 0, 0.08);
    --shadow-inset: inset 0 1px 0px rgba(255, 255, 255, 0.8);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Drifting Neon Background Orbs */
.radial-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

[data-theme="light"] .radial-bg {
    opacity: 0.15;
}

.radial-bg-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    animation: drift-slow 25s infinite alternate;
}

.radial-bg-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    animation: drift-slow 35s infinite alternate-reverse;
}

.radial-bg-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation: drift-medium 20s infinite alternate;
}

@keyframes drift-slow {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(8%, 12%) rotate(360deg) scale(1.1); }
}

@keyframes drift-medium {
    0% { transform: translate(-50%, -50%) translate(-5%, -5%) scale(0.9); }
    100% { transform: translate(-50%, -50%) translate(5%, 5%) scale(1.1); }
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--panel-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-main), var(--shadow-inset);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-glow 2s infinite alternate;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--accent-cyan);
}

.logo-badge {
    font-size: 10px;
    font-weight: 800;
    background: var(--gradient-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

.btn-theme-toggle {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Downloader Hero Section */
.downloader-section {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-text {
    margin-bottom: 40px;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(112, 0, 255, 0.15);
    border: 1px solid rgba(112, 0, 255, 0.3);
    color: #cc99ff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

[data-theme="light"] .badge-premium {
    background: rgba(123, 44, 191, 0.1);
    border-color: rgba(123, 44, 191, 0.2);
    color: var(--accent-purple);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title br {
    display: none;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Input Form Elements */
.downloader-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.downloader-card:focus-within {
    border-color: var(--panel-border-glow);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), var(--shadow-main);
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    gap: 8px;
    transition: var(--transition-smooth);
}

[data-theme="light"] .input-group {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.input-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    color: var(--text-muted);
    font-size: 18px;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 4px;
    min-width: 100px;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    transition: var(--transition-smooth);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4), var(--gradient-glow);
}

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

.btn-spinner {
    display: none;
}

/* Loading State for Primary Button */
.btn-primary.loading {
    pointer-events: none;
    color: transparent;
}

.btn-primary.loading .btn-spinner {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.input-error {
    display: none;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    padding-left: 8px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Result Dashboard */
.result-container {
    max-width: 850px;
    margin: 40px auto 0;
    padding: 32px;
    text-align: left;
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.result-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Media Column */
.video-preview-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    box-shadow: var(--shadow-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .author-profile {
    background: rgba(0, 0, 0, 0.03);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-details {
    overflow: hidden;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.author-handle {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Actions Column */
.video-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: break-word;
}

.video-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 50px;
}

[data-theme="light"] .stat-item {
    background: rgba(0, 0, 0, 0.04);
}

/* Download Action Buttons */
.download-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    gap: 16px;
    transition: var(--transition-smooth);
    color: white;
}

.btn-download i {
    font-size: 22px;
}

.dl-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.dl-title {
    font-size: 15px;
    font-weight: 700;
}

.dl-subtitle {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
}

.dl-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.dl-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.dl-secondary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.dl-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.dl-watermark {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.dl-watermark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.dl-audio {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.dl-audio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-reset {
    margin-top: 12px;
    background: none;
    border: 1px dashed var(--panel-border-glow);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-reset:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--accent-cyan);
}

/* Skeleton Loading Animation */
.loader-container {
    max-width: 850px;
    margin: 40px auto 0;
    padding: 32px;
}

.skeleton-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.skeleton-media {
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-title {
    height: 32px;
    width: 80%;
}

.skeleton-author {
    height: 48px;
    width: 60%;
    border-radius: var(--radius-sm);
}

.skeleton-stats {
    height: 24px;
    width: 40%;
}

.skeleton-button {
    height: 52px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
    margin-top: 4px;
}

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

/* ADVERTISEMENT CONTAINERS & SLOTS */
.ad-container {
    margin: 24px auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-placeholder {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

[data-theme="light"] .ad-placeholder {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.ad-badge {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.ad-top-leaderboard {
    max-width: 900px;
}

.ad-top-leaderboard .ad-placeholder {
    min-height: 90px;
}

.ad-content-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    width: 100%;
}

.ad-mock-icon {
    font-size: 28px;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    padding: 8px;
    border-radius: 50%;
}

.ad-mock-text {
    flex: 1;
    text-align: left;
}

.ad-mock-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.ad-mock-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.ad-mock-btn {
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ad-mock-btn:hover {
    transform: scale(1.05);
}

/* In-Content Native Ad */
.ad-in-content {
    margin: 16px 0;
}

.ad-content-mock.mini {
    padding: 6px 12px;
}

.ad-content-mock.mini .ad-mock-text h4 {
    font-size: 13px;
    color: var(--accent-cyan);
}

/* Square Ad Block Row */
.ad-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 850px;
    margin: 32px auto;
}

.ad-placeholder.square {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content-mock.center {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.ad-content-mock.center .ad-mock-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.ad-content-mock.center h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.ad-content-mock.center p {
    margin-bottom: 12px;
    max-width: 250px;
}

/* How to Use Steps */
.how-to-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--panel-border);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

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

.step-card {
    padding: 40px 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--panel-border-glow);
}

.step-num {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 90px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    pointer-events: none;
    transition: var(--transition-smooth);
}

[data-theme="light"] .step-num {
    color: rgba(0, 0, 0, 0.02);
}

.step-card:hover .step-num {
    color: rgba(0, 240, 255, 0.05);
    transform: scale(1.05);
}

.step-icon {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Features Grid */
.features-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--panel-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: var(--transition-smooth);
}

.f-purple { background: rgba(112, 0, 255, 0.08); color: var(--accent-purple); border: 1px solid rgba(112, 0, 255, 0.15); }
.f-cyan { background: rgba(0, 240, 255, 0.08); color: var(--accent-cyan); border: 1px solid rgba(0, 240, 255, 0.15); }
.f-pink { background: rgba(255, 0, 127, 0.08); color: var(--accent-pink); border: 1px solid rgba(255, 0, 127, 0.15); }
.f-orange { background: rgba(245, 158, 11, 0.08); color: var(--accent-orange); border: 1px solid rgba(245, 158, 11, 0.15); }

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
    padding: 60px 0 80px;
    text-align: center;
    border-top: 1px solid var(--panel-border);
}

.faq-accordion-group {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    text-align: left;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.faq-arrow {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: var(--panel-border-glow);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer Section */
.footer {
    background: rgba(8, 9, 15, 0.95);
    border-top: 1px solid var(--panel-border);
    padding: 60px 0 0;
    color: var(--text-secondary);
}

[data-theme="light"] .footer {
    background: #eaecef;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-desc {
    font-size: 14px;
    margin-top: 16px;
    max-width: 450px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    font-size: 13px;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0,0,0,0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.2)); }
    100% { filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6)); }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    .footer-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    .nav-links {
        display: none; /* Hide standard links on mobile */
    }
    .hero-title br {
        display: inline;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    
    /* Re-arrange grid to single column */
    .result-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .video-preview-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .author-profile {
        max-width: 280px;
        margin: 16px auto 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links-group {
        justify-content: space-between;
    }
    
    .ad-row-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ad-placeholder.square {
        min-height: 200px;
    }

    .skeleton-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .skeleton-media {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 580px) {
    .container {
        padding: 0 16px;
    }
    
    .downloader-card {
        padding: 16px;
    }
    
    /* Collapse button text on smaller viewports */
    .input-group {
        flex-wrap: wrap;
        border-radius: var(--radius-md);
        padding: 12px;
    }
    
    .input-group input {
        width: 100%;
        padding: 6px 0;
    }
    
    .input-icon-wrapper {
        display: none; /* Hide input icon on compact wrap */
    }
    
    .btn-secondary {
        flex: 1;
        justify-content: center;
        padding: 12px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .ad-content-mock {
        flex-direction: column;
        text-align: center;
        padding: 16px 12px;
    }
    
    .ad-mock-icon {
        margin-bottom: 4px;
    }
    
    .ad-mock-text {
        text-align: center;
    }
    
    .ad-mock-btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
