/**
 * YTFlash - Global Modern Design System
 * Features Dark & Light Themes, Glassmorphism, and Fluid Typography.
 */

:root {
    /* Brand Primary Colors */
    --brand-primary: #ff0033;
    --brand-primary-hover: #e0002d;
    --brand-glow: rgba(255, 0, 51, 0.35);
    --brand-gradient: linear-gradient(135deg, #ff0033 0%, #ff4b4b 100%);
    --brand-gradient-alt: linear-gradient(135deg, #8a2be2 0%, #ff0033 100%);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* -------------------------------------------------------------
 * DARK THEME (Default)
 * Soft modern charcoal / slate palette - comfortable and not harsh black
 * ------------------------------------------------------------- */
[data-theme="dark"] {
    --bg-page: #1e2430;
    --bg-card: #273142;
    --bg-card-hover: #313d52;
    --bg-card-glass: rgba(39, 49, 66, 0.92);
    --bg-input: #19202c;
    --bg-muted: #334055;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-subtle: #3a475d;
    --border-focus: rgba(255, 0, 51, 0.6);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 0 25px var(--brand-glow);

    --badge-bg: rgba(255, 0, 51, 0.18);
    --badge-text: #ff4d6d;
    --nav-bg: rgba(30, 36, 48, 0.95);
}

/* -------------------------------------------------------------
 * LIGHT THEME
 * ------------------------------------------------------------- */
[data-theme="light"] {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-card-glass: rgba(255, 255, 255, 0.9);
    --bg-input: #f1f5f9;
    --bg-muted: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-subtle: #e2e8f0;
    --border-focus: rgba(255, 0, 51, 0.5);
    
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 4px 20px rgba(255, 0, 51, 0.2);

    --badge-bg: #fee2e2;
    --badge-text: #dc2626;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------------------
 * BASE RESETS & TYPOGRAPHY
 * ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--trans-base), color var(--trans-base);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* -------------------------------------------------------------
 * CONTAINER & LAYOUT
 * ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 80px;
}

/* -------------------------------------------------------------
 * NAVBAR
 * ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--trans-base), border-color var(--trans-base);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}

.brand-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--brand-gradient);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item-dropdown {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all var(--trans-fast);
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-muted);
}

.nav-link.active {
    color: var(--brand-primary);
}

.nav-arrow {
    font-size: 0.65rem;
    transition: transform var(--trans-fast);
    opacity: 0.7;
}

.nav-item-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* -------------------------------------------------------------
 * MEGA DROPDOWN (AUTO-COLUMNS ON HOVER)
 * ------------------------------------------------------------- */
.mega-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    padding-top: 10px;
}

.mega-dropdown-panel.cols-2 {
    width: 620px;
}

.mega-dropdown-panel.cols-3 {
    width: 840px;
}

.nav-item-dropdown:hover .mega-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    backdrop-filter: blur(20px);
}

.mega-grid {
    display: grid;
    gap: 20px;
}

.mega-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.mega-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.mega-col-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.mega-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: all var(--trans-fast);
}

.mega-link-item:hover {
    background: var(--bg-muted);
    transform: translateX(3px);
}

.mega-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.badge-pill-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-pill-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-pill-pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.badge-pill-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-pill-indigo { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.badge-pill-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-pill-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-pill-teal { background: rgba(20, 184, 166, 0.15); color: #14b8a6; }

.mega-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mega-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.mega-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------
 * LANGUAGE DROPDOWN (AUTO-OPEN ON HOVER)
 * ------------------------------------------------------------- */
.lang-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--trans-fast);
}

.lang-select-btn:hover {
    background: var(--bg-muted);
    border-color: var(--brand-primary);
}

.lang-code-text {
    letter-spacing: 0.5px;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1060;
}

.nav-item-dropdown:hover .lang-dropdown-menu,
.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-menu-list {
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    backdrop-filter: blur(16px);
}

.lang-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--trans-fast);
}

.lang-item a:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    transform: translateX(2px);
}

.lang-item.active a {
    color: var(--brand-primary);
    font-weight: 700;
    background: var(--badge-bg);
}

.lang-flag {
    font-size: 1.15rem;
}

.lang-native-name {
    flex: 1;
}

.lang-check {
    font-size: 0.8rem;
    color: var(--brand-primary);
}

/* -------------------------------------------------------------
 * ACTIONS & THEME TOGGLE BUTTON (IN-LINE WITH LANGUAGE)
 * ------------------------------------------------------------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.05rem;
    transition: all var(--trans-fast);
}

.theme-toggle-btn:hover {
    background: var(--bg-muted);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.theme-icon-sun {
    color: #f59e0b;
}

.theme-icon-moon {
    color: #818cf8;
}

[data-theme="dark"] .theme-icon-sun { display: inline-flex; }
[data-theme="dark"] .theme-icon-moon { display: none; }

[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline-flex; }

/* Mobile Hamburger */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
}

.mobile-toggle-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--trans-fast);
}

/* -------------------------------------------------------------
 * HERO SECTION
 * ------------------------------------------------------------- */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.hero-glow-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

.hero-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 51, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* -------------------------------------------------------------
 * MASTER INPUT BOX
 * ------------------------------------------------------------- */
.hero-input-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 8px;
    transition: all var(--trans-base);
    position: relative;
}

.hero-input-card:focus-within {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
}

.input-flex-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-icon-left {
    padding-left: 14px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
}

.hero-url-input {
    flex: 1;
    height: 52px;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: transparent;
    padding: 0 8px;
}

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

.input-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 4px;
}

.btn-paste {
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-paste:hover {
    background: var(--border-subtle);
}

.btn-action-primary {
    height: 48px;
    padding: 0 26px;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--brand-glow);
    transition: all var(--trans-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-action-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--brand-glow);
    filter: brightness(1.08);
}

/* -------------------------------------------------------------
 * QUICK TOOL TABS (Under Hero)
 * ------------------------------------------------------------- */
.quick-tools-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tool-tab-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--trans-fast);
}

.tool-tab-chip:hover, .tool-tab-chip.active {
    background: var(--bg-muted);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * TOOL CARDS GRID
 * ------------------------------------------------------------- */
.section-title-wrap {
    text-align: center;
    margin: 60px 0 36px;
}

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

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

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--trans-base);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tool-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--badge-bg);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-muted);
    color: var(--brand-primary);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.tool-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-primary);
    gap: 6px;
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 30px;
    margin-top: auto;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 340px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * RESPONSIVENESS
 * ------------------------------------------------------------- */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-subtle);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .input-flex-row {
        flex-direction: column;
        align-items: stretch;
    }

    .input-action-btns {
        padding: 6px 0;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* -------------------------------------------------------------
 * DOWNLOAD PROCESSING MODAL POPUP
 * ------------------------------------------------------------- */
.download-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.download-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.download-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    padding: 32px 24px 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(15px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.download-modal-backdrop.active .download-modal-card {
    transform: translateY(0) scale(1);
}

.download-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    background: var(--bg-muted);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.download-modal-close:hover {
    background: var(--brand-primary);
    color: #fff;
}

.download-modal-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px var(--brand-glow);
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.download-modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.download-modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
}

.download-progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-muted);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.download-progress-bar {
    height: 100%;
    width: 30%;
    background: var(--brand-gradient);
    border-radius: var(--radius-pill);
    position: absolute;
    animation: progressIndeterminate 1.8s infinite ease-in-out;
}

@keyframes progressIndeterminate {
    0% { left: -30%; width: 30%; }
    50% { left: 40%; width: 50%; }
    100% { left: 100%; width: 30%; }
}

.download-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.download-notice-box {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
