/* ==========================================================================
   YTDownloader.app - Custom Design System & CSS Stylesheet
   Theme: Glassmorphic YouTube Red Dark Mode (#FF0033)
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary: #ff0033;
    --color-primary-hover: #e6002e;
    --color-primary-glow: rgba(255, 0, 51, 0.35);
    --color-accent: #ff4d6d;
    --color-bg-dark: #0a0a0f;
    --color-bg-card: rgba(22, 22, 32, 0.7);
    --color-bg-card-hover: rgba(30, 30, 44, 0.85);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 0, 51, 0.4);
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadow & Effects */
    --glass-backdrop: blur(16px);
    --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 0, 51, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Ambient Lighting Glows */
body::before {
    content: '';
    position: fixed;
    top: -10vw;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.15) 0%, rgba(10, 10, 15, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ff4d6d 50%, #ff0033 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-icon {
    width: clamp(26px, 4vw, 36px);
    height: clamp(26px, 4vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--color-primary-glow));
    transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.08);
}

.brand-ext {
    color: var(--color-primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--text-main);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

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

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #14141e;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    width: 190px;
    padding: 0.5rem 0;
    list-style: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-fast);
    z-index: 110;
}

.language-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
}

.lang-menu li:hover, .lang-menu li.active {
    background: rgba(255, 0, 51, 0.15);
    color: #ffffff;
}

/* PWA Install Button */
.btn-install {
    background: linear-gradient(135deg, var(--color-primary), #d6002b);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: var(--transition-fast);
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-primary-glow);
}

/* ==========================================================================
   Hero Converter Section
   ========================================================================== */
.hero-section {
    padding: 4rem 0 3rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.3);
    color: #ff6b8b;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 51, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

/* Converter Box Form */
.converter-box {
    padding: 2rem;
    max-width: 860px;
    margin: 0 auto 2rem;
    border-color: var(--color-border);
}

.input-group {
    display: flex;
    align-items: center;
    background: #0d0d14;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.5rem 0.4rem 1rem;
    transition: var(--transition-normal);
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px var(--color-primary-glow);
}

.input-icon {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    margin-right: 0.6rem;
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-body);
    padding: 0.6rem 0;
}

.url-input::placeholder {
    color: var(--text-dim);
}

.btn-paste {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.btn-paste:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-primary), #d6002b);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--color-primary-glow);
    transition: var(--transition-fast);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px var(--color-primary-glow);
}

/* Sample Pills */
.sample-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tag-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Loader Box */
.loader-box {
    padding: 2.5rem 0;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 0, 51, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

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

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

/* Video Download Result Card */
.result-card {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.video-preview-header {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.thumbnail-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.video-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.video-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.meta-separator { margin: 0 0.4rem; }

/* Format Selector Tabs */
.format-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Quality Selection Table */
.quality-table-wrapper {
    background: rgba(10, 10, 15, 0.6);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.quality-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.quality-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.quality-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.quality-table tr:last-child td {
    border-bottom: none;
}

.quality-badge {
    display: inline-block;
    background: rgba(255, 0, 51, 0.15);
    color: var(--color-accent);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.btn-download-action {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
}

.btn-download-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Download Progress Bar */
.download-progress-container {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), #ff4d6d);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Bookmarklet Tool Bar */
.bookmarklet-box {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.bookmarklet-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bookmarklet-icon { font-size: 1.4rem; }

.bookmarklet-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: grab;
    transition: var(--transition-fast);
}

.bookmarklet-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

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

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

.feature-card {
    padding: 2rem;
    text-align: left;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 51, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.bg-red-glow { background: rgba(255, 0, 51, 0.15); }
.bg-purple-glow { background: rgba(168, 85, 247, 0.15); }
.bg-blue-glow { background: rgba(59, 130, 246, 0.15); }
.bg-green-glow { background: rgba(16, 185, 129, 0.15); }
.bg-orange-glow { background: rgba(249, 115, 22, 0.15); }
.bg-pink-glow { background: rgba(236, 72, 153, 0.15); }

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

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

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
    padding: 4rem 0;
}

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

.step-card {
    padding: 2rem;
    position: relative;
    text-align: left;
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   SEO Article & FAQ Section
   ========================================================================== */
.seo-article-section {
    padding: 3rem 0;
}

.article-box {
    padding: 2.5rem;
    text-align: left;
}

.article-illustration {
    float: right;
    margin: 0 0 1.5rem 2rem;
}

.seo-article-img {
    max-width: 220px;
    height: auto;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 0 20px rgba(255, 0, 51, 0.25));
    transition: transform var(--transition-normal);
}

.seo-article-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .article-illustration {
        float: none;
        margin: 1rem auto 1.5rem;
        display: flex;
        justify-content: center;
    }
    .seo-article-img {
        max-width: 180px;
    }
}

.article-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.article-box h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--color-accent);
}

.article-box p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

/* FAQ Accordion */
.faq-section {
    padding: 4rem 0;
}

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

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem 1.5rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-icon {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

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

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background: #07070a;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    max-width: 320px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
}

.disclaimer-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 1rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization (100% Mobile Perfect)
   ========================================================================== */

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
    .container { padding: 0 1.25rem; }
    .hero-title { font-size: 2.6rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .hero-section { padding: 2.5rem 0 2rem; }
    .converter-box { padding: 1.5rem 1rem; }
    
    /* Input Group Mobile Stacking */
    .input-group { 
        flex-direction: column; 
        padding: 0.75rem; 
        gap: 0.6rem; 
        background: rgba(13, 13, 20, 0.95);
    }
    
    .url-input { 
        width: 100%; 
        font-size: 16px; /* Prevents auto-zoom on iOS Safari */
        padding: 0.5rem 0.2rem;
        text-align: center;
    }

    .input-icon { display: none; }
    
    .btn-paste, .btn-submit { 
        width: 100%; 
        justify-content: center; 
        min-height: 46px; /* Touch friendly height */
        font-size: 0.95rem;
    }

    .btn-paste { margin-right: 0; }

    /* Video Preview Layout */
    .video-preview-header { 
        grid-template-columns: 1fr; 
        gap: 1rem;
    }

    .thumbnail-wrapper { 
        height: 200px; 
    }

    .video-thumb { 
        height: 100%; 
    }

    .format-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }

    /* Table Mobile Horizontal Scroll */
    .quality-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .quality-table th, .quality-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .btn-download-action {
        padding: 0.4rem 0.8rem;
        min-height: 38px;
    }

    /* Grid Sections */
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }

    .bookmarklet-content { 
        flex-direction: column; 
        text-align: center; 
        gap: 0.8rem;
    }

    .footer-top { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .nav-wrapper {
        gap: 0.5rem;
    }

    .brand-logo {
        font-size: 1.1rem;
        gap: 0.4rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn-install {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-install span {
        display: none; /* Icon only on extra small mobile header */
    }

    .hero-title { 
        font-size: 1.85rem; 
    }

    .hero-subtitle { 
        font-size: 0.95rem; 
    }

    .badge-pill {
        font-size: 0.78rem;
        padding: 0.3rem 0.8rem;
    }

    .article-box {
        padding: 1.5rem 1rem;
    }

    .article-box h2 {
        font-size: 1.4rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.88rem;
    }
}

