/* ==========================================================================
   YouTube to WAV Converter - Ultra Responsive Modern Dark Glassmorphism CSS
   ========================================================================== */

:root {
    --bg-main: #0b0f19;
    --bg-secondary: #111827;
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.12);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-emerald: #10b981;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-sub: #94a3b8;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 16.5px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

/* Navbar */
.navbar {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

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

.badge-wrapper {
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 30px;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    max-width: 100%;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    flex-shrink: 0;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

.hero-subtitle {
    font-size: 17.5px;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 0 10px;
    line-height: 1.75;
}

/* Tool Interface Card */
.converter-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: var(--shadow-main);
    text-align: left;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.url-input {
    width: 100%;
    padding: 16px 50px 16px 46px;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.25s;
}

.url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.paste-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.paste-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.setting-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.setting-select {
    width: 100%;
    padding: 13px 14px;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.convert-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
}

.notice-text {
    font-size: 12px;
    color: var(--text-sub);
    text-align: center;
    margin-top: 14px;
}

/* Progress & Live Steps Section (FULLY RESPONSIVE FIX) */
.progress-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(11, 15, 25, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-status {
    color: #a5b4fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.progress-percent {
    color: var(--text-main);
    flex-shrink: 0;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #10b981);
    border-radius: 4px;
    transition: width 0.3s;
}

/* Live Steps Tracker Pills - Responsive Grid */
.steps-tracker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.25s;
    width: 100%;
    min-width: 0;
}

.step-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.step-pill.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-weight: 600;
}

.step-pill.completed {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-sub);
    flex-shrink: 0;
}

.step-pill.active .step-dot {
    background: #6366f1;
    box-shadow: 0 0 8px #6366f1;
}

.step-pill.completed .step-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Video Preview & Success Card (RESPONSIVE FIX) */
.success-card {
    margin-top: 20px;
    padding: 24px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    width: 100%;
}

.video-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.thumb-container {
    width: 120px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}

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

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

.video-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.success-meta {
    font-size: 13px;
    color: var(--accent-emerald);
    font-weight: 600;
}

.action-buttons-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.download-btn {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--accent-emerald);
    color: white !important;
    text-decoration: none !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.convert-another-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.convert-another-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Alert Error */
.alert-error {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 14px;
    word-break: break-word;
}

/* Features Grid */
.features-section {
    padding: 85px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-desc {
    font-size: 16.5px;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.75;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-box {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.25s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(17, 24, 39, 0.85);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #a5b4fc;
}

.feature-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.feature-text { font-size: 15.5px; color: var(--text-muted); line-height: 1.7; }

/* How It Works Section */
.workflow-section {
    padding: 85px 0;
    background: rgba(17, 24, 39, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.step-card {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
}

.step-number {
    font-size: 36px;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.35);
    margin-bottom: 8px;
}

.step-heading { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #ffffff; }
.step-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* FAQ Section */
.faq-section {
    padding: 85px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-grid {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    transition: all 0.25s ease;
}

.faq-item:hover {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.faq-question {
    font-size: 18.5px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.4;
}

.faq-answer {
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.75;
}

/* Nav Admin Button */
.nav-admin-btn {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: #a5b4fc !important;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-admin-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white !important;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-drawer {
    display: none;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
}
.mobile-menu-drawer.active {
    display: block;
}
.mobile-menu-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-menu-drawer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: block;
    padding: 8px 0;
}

/* Footer Multi-Column */
.footer {
    padding: 60px 0 30px 0;
    background: rgba(8, 11, 19, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

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

.footer-heading {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-bio {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 320px;
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent-indigo-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

.disclaimer-text {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Policy & Legal Pages (About, Privacy, Terms, DMCA, Contact)
   ========================================================================== */
.policy-container {
    max-width: 960px;
    margin: 50px auto 80px;
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    color: #e2e8f0;
    line-height: 1.85;
    font-size: 16.5px;
    box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.4);
}
.policy-container h1 { font-size: 34px; font-weight: 900; color: #ffffff; margin-bottom: 12px; line-height: 1.25; }
.policy-container h2 { font-size: 24px; font-weight: 800; color: #ffffff; margin: 34px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; }
.policy-container h3 { font-size: 20px; font-weight: 700; color: #a5b4fc; margin: 24px 0 12px; }
.policy-container p { margin-bottom: 20px; }
.policy-container ul, .policy-container ol { margin: 0 0 24px 28px; }
.policy-container li { margin-bottom: 10px; }
.policy-highlight { background: rgba(99, 102, 241, 0.12); border-left: 4px solid var(--primary); padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 24px 0; color: #e0e7ff; font-size: 16px; line-height: 1.75; }
.last-updated { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; }

.feature-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 28px 0;
}
.feature-badge-card {
    background: rgba(11, 15, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}
.feature-badge-card h4 { color: #ffffff; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-badge-card p { font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }

.contact-wrapper {
    max-width: 960px;
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}
.contact-info-card, .contact-form-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    color: #e2e8f0;
}
.contact-info-card h2 { font-size: 24px; font-weight: 800; color: #ffffff; margin-bottom: 12px; }
.contact-info-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}
.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 20px;
    flex-shrink: 0;
}
.info-text h4 { color: #ffffff; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.info-text p { font-size: 14px; color: var(--text-muted); margin: 0; }

.contact-form-card h3 { font-size: 22px; font-weight: 800; color: #ffffff; margin-bottom: 22px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.form-input, .form-textarea {
    width: 100%;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-textarea { min-height: 130px; resize: vertical; }

/* ==========================================================================
   Homepage Structural & SEO Components
   ========================================================================== */
.content-section {
    padding: 85px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-article-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 42px 48px;
    color: #e2e8f0;
    line-height: 1.85;
    font-size: 16.5px;
    margin-bottom: 56px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.4);
}

.seo-article-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 22px;
    line-height: 1.35;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-article-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: #a5b4fc;
    margin: 32px 0 14px;
}

.seo-article-card p {
    margin-bottom: 20px;
}

.seo-article-card ul, .seo-article-card ol {
    margin: 0 0 24px 28px;
}

.seo-article-card li {
    margin-bottom: 10px;
}

.seo-callout {
    background: rgba(99, 102, 241, 0.12);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 26px 0;
    font-size: 15.5px;
    color: #e0e7ff;
    line-height: 1.75;
}

.hero-short-intro {
    max-width: 960px;
    margin: 36px auto 0;
    font-size: 17px;
    color: #e2e8f0;
    line-height: 1.8;
    text-align: center;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 32px;
    border-radius: var(--radius-md);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 28px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(11, 15, 25, 0.85);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 15px;
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
    font-weight: 700;
}

.workflow-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 24px;
    border-radius: var(--radius-md);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin: 28px 0;
    text-align: center;
    flex-wrap: wrap;
}

.workflow-arrow-box span {
    color: #a5b4fc;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.usecase-card {
    background: rgba(11, 15, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
}

.usecase-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.usecase-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

.responsibility-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-top: 44px;
    color: #fef08a;
    font-size: 15px;
    line-height: 1.7;
}

.responsibility-box h4 {
    color: #fbbf24;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ==========================================================================
   Blog Listing Page Styling
   ========================================================================== */
.blog-hero {
    padding: 60px 0 45px;
    text-align: center;
    position: relative;
}

.blog-title-gradient {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

.blog-hero-sub {
    font-size: 17.5px;
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.blog-search-box {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 16px 22px 16px 52px;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    color: #ffffff;
    font-size: 15.5px;
    outline: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.blog-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.blog-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.featured-banner {
    margin-bottom: 60px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-lg);
    padding: 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.featured-banner:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.6);
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}

.featured-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover {
    color: #a5b4fc;
}

.featured-excerpt {
    font-size: 16.5px;
    color: #e2e8f0;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 860px;
}

.meta-pill-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}

.article-card {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.card-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.14);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 14px;
}

.card-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #a5b4fc;
}

.card-excerpt {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
}

.read-more-link {
    color: #a5b4fc;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.read-more-link:hover {
    gap: 8px;
    color: #ffffff;
}

/* ==========================================================================
   Single Article & Post Page Styling
   ========================================================================== */
.post-wrapper {
    max-width: 960px;
    margin: 40px auto 80px;
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: gap 0.2s;
}

.back-nav-link:hover {
    gap: 10px;
    color: #ffffff;
}

.post-main-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 20px;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 30px;
    width: fit-content;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toc-box {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.toc-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: #a5b4fc;
}

.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: #e2e8f0;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 42px 0 18px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
    line-height: 1.3;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #a5b4fc;
    margin: 32px 0 14px;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body ul, .article-body ol {
    margin: 0 0 24px 28px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #e0e7ff;
    font-style: italic;
    font-size: 16.5px;
    margin: 30px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(17, 24, 39, 0.65);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-body th, .article-body td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
}

.article-body th {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
    font-weight: 700;
}

.converter-cta-box {
    margin: 60px 0;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-lg);
    padding: 38px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.converter-cta-box h3 {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.converter-cta-box p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.recommended-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Tablet & Mobile Devices)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-title { font-size: 36px; }
    .converter-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 15px; }
    .settings-grid { grid-template-columns: 1fr; }
    .converter-card { padding: 20px 16px; }
    .steps-tracker { grid-template-columns: 1fr 1fr; gap: 8px; }
    .action-buttons-group { flex-direction: column; gap: 10px; }
    .download-btn, .convert-another-btn { width: 100%; flex: none; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-bio { max-width: 100%; }
    .logo { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-title { font-size: 24px; }
    .converter-card { padding: 16px 12px; border-radius: 14px; }
    .url-input { font-size: 13px; padding-left: 40px; padding-right: 44px; }
    .input-icon { left: 12px; width: 18px; height: 18px; }
    .steps-tracker { grid-template-columns: 1fr 1fr; gap: 6px; }
    .step-pill { padding: 6px 8px; font-size: 11px; }
    .video-preview-box { flex-direction: column; text-align: center; gap: 10px; }
    .thumb-container { width: 100%; max-width: 220px; height: 110px; margin: 0 auto; }
    .video-title { font-size: 15px; white-space: normal; }
    .section-title { font-size: 22px; }
}
