/* ============================================
   Non Quality Drop Upload AI — styles.css
   TikTok Neon Dark + Cyber Aesthetic
   ============================================ */

:root {
    --pink: #f72585;
    --violet: #7209b7;
    --blue: #4361ee;
    --cyan: #4cc9f0;
    --green: #06d6a0;
    --yellow: #ffd60a;
    --dark: #060608;
    --dark2: #0d0d14;
    --dark3: #12121c;
    --card-bg: rgba(15, 15, 25, 0.85);
    --border: rgba(255,255,255,0.07);
    --border-glow: rgba(247, 37, 133, 0.35);
    --text: #f0f0f8;
    --text-muted: #7a7a99;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 1.5rem;
    --radius-sm: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND ===== */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(247, 37, 133, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 37, 133, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== LAYOUT ===== */
.site-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

/* ===== HEADER ===== */
.site-header {
    padding: 1.5rem 0 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-emoji {
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--blue), var(--pink));
    animation: spin 4s linear infinite;
    padding: 2px;
}

.logo-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--dark3);
    border-radius: 50%;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--pink); }

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: var(--green);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== HERO ===== */
.hero-section {
    text-align: center;
    padding: 2.5rem 0 3rem;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pink);
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid rgba(247, 37, 133, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.8s 0.2s ease both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-desc strong {
    color: var(--cyan);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeUp 0.8s 0.4s ease both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

/* ===== UPLOAD CARD ===== */
.upload-section {
    margin-bottom: 2rem;
    animation: fadeUp 0.8s 0.5s ease both;
}

.upload-card {
    padding: 2rem;
}

.upload-zone {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: calc(var(--radius) - 0.5rem);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(247,37,133,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-zone:hover::before { opacity: 1; }
.upload-zone:hover {
    border-color: rgba(247, 37, 133, 0.5);
    box-shadow: 0 0 30px rgba(247, 37, 133, 0.1);
}

.upload-zone.dragover {
    border-color: var(--pink);
    background: rgba(247, 37, 133, 0.05);
    box-shadow: 0 0 40px rgba(247, 37, 133, 0.2);
}

.file-input-hidden { display: none; }

.upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.upload-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247,37,133,0.2), rgba(114,9,183,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(247,37,133,0.3);
}

.upload-icon {
    font-size: 1.8rem;
    color: var(--pink);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.upload-icon-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(247, 37, 133, 0.2);
    animation: ring-expand 3s linear infinite;
}

.ring1 { width: 80px; height: 80px; animation-delay: 0s; }
.ring2 { width: 100px; height: 100px; animation-delay: 1s; }
.ring3 { width: 120px; height: 120px; animation-delay: 2s; }

@keyframes ring-expand {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.upload-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.upload-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.upload-link {
    color: var(--pink);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.upload-formats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.upload-formats span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.upload-limit {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== PREVIEW ===== */
.preview-section {
    margin-top: 1.75rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: start;
}

.preview-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.preview-video {
    width: 100%;
    border-radius: var(--radius-sm);
    background: black;
    max-height: 220px;
    object-fit: contain;
    border: 1px solid var(--border);
}

.file-info-card {
    min-width: 160px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--pink);
}

.file-info-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.file-info-name {
    font-size: 0.75rem;
    color: var(--text);
    word-break: break-all;
    line-height: 1.4;
}

.btn-clear {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(255,80,80,0.1);
    border: 1px solid rgba(255,80,80,0.2);
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.btn-clear:hover {
    background: rgba(255,80,80,0.25);
}

/* ===== CONVERT BUTTON ===== */
.convert-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 0.6rem;
}

.btn-convert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(247, 37, 133, 0.35);
}

.btn-convert::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-convert:hover::before { opacity: 1; }
.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(247, 37, 133, 0.5);
}

.btn-convert:disabled {
    opacity: 0.4;
    filter: grayscale(0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-convert-icon,
.btn-convert-text,
.btn-convert-arrow {
    position: relative;
    z-index: 1;
}

.btn-convert-arrow {
    opacity: 0.7;
    font-size: 0.85rem;
}

.convert-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== AD SECTION ===== */
.ad-section {
    position: relative;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    overflow: visible;
}

.ad-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    opacity: 0.5;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ===== OUTPUT SECTION ===== */
.output-section {
    animation: fadeUp 0.6s ease both;
    margin-bottom: 2rem;
}

.output-card {
    padding: 2rem;
    border-color: rgba(6, 214, 160, 0.2);
    box-shadow: 0 0 40px rgba(6, 214, 160, 0.08);
}

.output-header {
    margin-bottom: 1.5rem;
}

.output-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6,214,160,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(6,214,160,0); }
}

.output-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
}

.output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.output-video-wrap {
    position: relative;
}

.output-video {
    width: 100%;
    border-radius: var(--radius-sm);
    max-height: 250px;
    object-fit: contain;
    background: black;
    border: 1px solid rgba(6,214,160,0.2);
}

.output-video-label {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(6,214,160,0.9);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.output-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.q-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #06d6a0, #059669);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.3);
    width: 100%;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(6, 214, 160, 0.45);
}

.btn-download:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.download-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.btn-another {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 100px;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-another:hover {
    border-color: var(--pink);
    color: var(--pink);
}

/* ===== HOW IT WORKS ===== */
.how-section {
    padding: 3rem 0;
    animation: fadeUp 0.8s 0.6s ease both;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(247,37,133,0.1);
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--pink);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.step-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--cyan);
}

.step-card h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.step-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-arrow {
    color: var(--border-glow);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--pink); }

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-card {
    background: var(--card-bg);
    border: 1px solid rgba(247,37,133,0.2);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 60px rgba(247,37,133,0.15);
}

.overlay-spinner-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--pink);
    border-right-color: var(--violet);
    animation: spin 1s linear infinite;
}

.spinner-inner {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--cyan);
    animation: spin 0.7s linear infinite reverse;
}

.spinner-core {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    color: var(--pink);
    animation: sparkle 1.5s ease infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(20deg); }
}

.overlay-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.overlay-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.progress-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
    border-radius: 100px;
    transition: width 0.5s ease;
    animation: shimmer 2s linear infinite;
    background-size: 200% 100%;
}

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

.progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.overlay-ad {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(247,37,133,0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1.25rem 0;
}

.overlay-ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.overlay-ad-box {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    line-height: 1.6;
}

.overlay-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ===== TOASTS ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    animation: toast-in 0.3s ease;
    white-space: nowrap;
    max-width: 90vw;
    text-overflow: ellipsis;
    overflow: hidden;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-error {
    background: rgba(220, 38, 38, 0.85);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: white;
}

.toast-success {
    background: rgba(6, 214, 160, 0.85);
    border: 1px solid rgba(6, 214, 160, 0.4);
    color: #000;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .header-nav { display: none; }
    .preview-grid { grid-template-columns: 1fr; }
    .file-info-card { min-width: unset; }
    .output-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .step-card { max-width: 100%; width: 100%; }
    .hero-stats { gap: 1rem; }
    .upload-zone { padding: 2rem 1rem; }
    .upload-card { padding: 1.25rem; }
    .output-card { padding: 1.25rem; }
}
