/* =========================================
   YT Thumbnail Pro — Premium CSS
   ========================================= */

/* --- Variables --- */
:root {
    --primary: #ff0000;
    --primary-dark: #cc0000;
    --primary-glow: rgba(255,0,0,0.3);
    --accent: #ff6b6b;
    --gold: #ffd700;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --gradient-primary: linear-gradient(135deg, #ff0000, #ff6b6b);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    --shadow-glow: 0 0 40px rgba(255,0,0,0.2);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,0,0,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(120,0,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* =============================================
   HEADER & NAVBAR
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    background: rgba(10,10,15,0.96);
}

.navbar { padding: 0 20px; }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}
.logo:hover { transform: scale(1.03); }
.logo-icon {
    width: 40px; height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}
.logo-text { color: var(--text-primary); }
.logo-highlight { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.nav-link.active { color: var(--primary); }
.nav-link i { font-size: 0.8rem; }

/* --- Dropdown Styles --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 650px;
    background: #0f0f1a;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 1001;
    overflow: hidden;
    padding: 16px;
    gap: 10px 20px;
}
.dropdown-content a {
    color: var(--text-secondary);
    padding: 10px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.dropdown-content a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.dropdown-content a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}
@media (min-width: 992px) {
    .nav-dropdown:hover .dropdown-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        animation: dropdownFade 0.3s ease;
    }
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile Adjustments for Dropdown */
@media (max-width: 991px) {
    .nav-dropdown.active .dropdown-content {
        display: grid;
        grid-template-columns: 1fr;
    }
    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255,255,255,0.03);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 5px 10px;
        margin-top: 5px;
        width: 100%;
        max-width: none;
        transform: none;
    }
    .dropdown-content a { padding: 10px 16px; font-size: 0.9rem; }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.hamburger:hover { background: var(--bg-card); }
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}
.mobile-overlay.show { display: block; }

/* =============================================
   AD CONTAINERS
   ============================================= */
.ad-container {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ad-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.ad-header { margin: 10px 20px; border-radius: var(--radius); min-height: 90px; }
.ad-sidebar { min-height: 250px; margin-bottom: 20px; }
.ad-in-content { min-height: 90px; margin: 30px 0; }
.ad-footer-banner { max-width: 1200px; margin: 20px auto; min-height: 90px; }

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,0,0,0); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* =============================================
   TOOL CARD
   ============================================= */
.tool-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* Input Group */
.input-wrapper {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.url-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.url-input::placeholder { color: var(--text-muted); }
.url-input:focus {
    border-color: var(--primary);
    background: rgba(255,0,0,0.05);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}

.url-input option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.btn-download {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 16px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255,0,0,0.3);
    letter-spacing: 0.5px;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,0,0,0.5);
}
.btn-download:active { transform: translateY(0); }
.btn-download i { font-size: 1rem; }

/* Error Message */
.error-msg {
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    color: #ff6b6b;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   VIDEO INFO STRIP
   ============================================= */
.video-info-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}
.video-info-strip .vi-thumb {
    width: 80px; height: 45px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.vi-text { flex: 1; min-width: 0; }
.vi-id {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vi-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.vi-ytlink {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.8rem; color: var(--primary);
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.vi-ytlink:hover { background: var(--primary); color: white; }

/* =============================================
   QUALITY GRID
   ============================================= */
.quality-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.quality-section-title i { color: var(--primary); }

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quality-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardFadeIn 0.5s ease both;
}
.quality-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,0,0,0.3);
    box-shadow: 0 12px 40px rgba(255,0,0,0.1);
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.quality-card:nth-child(1) { animation-delay: 0.0s; }
.quality-card:nth-child(2) { animation-delay: 0.08s; }
.quality-card:nth-child(3) { animation-delay: 0.16s; }
.quality-card:nth-child(4) { animation-delay: 0.24s; }
.quality-card:nth-child(5) { animation-delay: 0.32s; }

/* Quality Badge */
.quality-badge-wrap {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
}
.qbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.qbadge.max { background: rgba(255,215,0,0.2); color: var(--gold); border: 1px solid rgba(255,215,0,0.4); }
.qbadge.hq  { background: rgba(0,200,100,0.2); color: #00e676; border: 1px solid rgba(0,200,100,0.4); }
.qbadge.mq  { background: rgba(0,150,255,0.2); color: #64b5f6; border: 1px solid rgba(0,150,255,0.4); }
.qbadge.sd  { background: rgba(150,0,255,0.2); color: #ce93d8; border: 1px solid rgba(150,0,255,0.4); }
.qbadge.lq  { background: rgba(255,100,0,0.2); color: #ffab40; border: 1px solid rgba(255,100,0,0.4); }

/* Thumbnail Image */
.thumb-img-wrap {
    position: relative;
    background: #111;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 ratio */
}
.thumb-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.quality-card:hover .thumb-img-wrap img { transform: scale(1.05); }

.thumb-img-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    background: #111;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-direction: column;
    gap: 8px;
}
.thumb-img-placeholder i { font-size: 2rem; opacity: 0.3; }

/* Card Body */
.qcard-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qcard-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.qcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.qmeta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.qmeta-chip i { font-size: 0.7rem; }

.btn-dl-quality {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1.5px solid transparent;
    margin-top: auto;
    font-family: var(--font-main);
    text-decoration: none;
}
.btn-dl-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255,0,0,0.25);
}
.btn-dl-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,0,0,0.4);
    color: white;
}
.btn-dl-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--glass-border);
}
.btn-dl-outline:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

/* =============================================
   HOW TO USE
   ============================================= */
.how-section {
    padding: 60px 0;
}
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.section-sub {
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.step-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}
.step-card:hover::after { transform: scaleX(1); }
.step-card:hover { transform: translateY(-4px); border-color: rgba(255,0,0,0.2); }

.step-number {
    width: 48px; height: 48px;
    background: rgba(255,0,0,0.1);
    border: 1.5px solid rgba(255,0,0,0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.step-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 14px;
}
.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.step-card p { font-size: 0.875rem; color: var(--text-secondary); }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section { padding: 40px 0;}
.faq-list { max-width: 800px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open { border-color: rgba(255,0,0,0.3); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-icon {
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 22px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 22px 18px;
}

/* =============================================
   LAYOUT WITH SIDEBAR (for desktop)
   ============================================= */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
}
.sidebar-widget h4 i { color: var(--primary); }

/* =============================================
   STATIC PAGES (About, Privacy, etc.)
   ============================================= */
.page-hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}
.page-hero p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin-bottom: 24px;
}
.content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center; gap: 10px;
}
.content-card h2 i { color: var(--primary); }
.content-card p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; }
.content-card ul li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-left: 16px;
    position: relative;
    font-size: 0.95rem;
}
.content-card ul li::before {
    content: '▸';
    position: absolute; left: 0;
    color: var(--primary);
}
.content-card a { color: var(--primary); }
.content-card a:hover { text-decoration: underline; }

/* Contact Form */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
    border-color: var(--primary);
    background: rgba(255,0,0,0.04);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 20px rgba(255,0,0,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,0,0,0.4); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 0;
    margin-top: 80px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-links ul li a i { font-size: 0.75rem; }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 280px; height: 100vh;
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 6px;
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        align-items: flex-start;
        border-left: 1px solid var(--glass-border);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; }
    .hamburger { display: flex; }
    .tool-card { padding: 24px 16px; }
    .input-wrapper { flex-direction: column; }
    .btn-download { width: 100%; justify-content: center; }
    .quality-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .content-card { padding: 24px 20px; }
    .hero { padding: 40px 16px 24px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 40px 0;
}

/* Copy animation */
@keyframes copyPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.copy-anim { animation: copyPop 0.2s ease; }

/* Loading spinner */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }