body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    background: #f4f7f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 90%;
    max-width: 460px;
    text-align: center;
}
h1 { color: #1e293b; font-size: 1.6rem; margin-bottom: 0.5rem; }
.subtitle { color: #64748b; font-size: 0.9rem; margin-bottom: 1.5rem; }
.input-group { display: flex; gap: 8px; margin-bottom: 1rem; }
input { flex: 1; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; }
input:focus { border-color: #3b82f6; outline: none; }
#pasteBtn { padding: 10px 15px; background: #475569; color: white; border: none; border-radius: 6px; cursor: pointer; }
#convertBtn { width: 100%; padding: 14px; background: #2563eb; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
#convertBtn:disabled { background: #94a3b8; cursor: not-allowed; }

#status { margin: 1.5rem 0; font-size: 0.9rem; color: #475569; }
.spinner {
    border: 3px solid rgba(0,0,0,0.1); width: 28px; height: 28px; border-radius: 50%;
    border-left-color: #ef4444; animation: spin 0.8s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hidden { display: none !important; }
.download-header { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
#clearBtn { background: #ef4444; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
#downloadList { list-style: none; padding: 0; margin-top: 1rem; text-align: left;}
.zip-btn { display: block; background: #0f172a; color: white; padding: 12px; text-align: center; border-radius: 6px; text-decoration: none; margin-bottom: 12px; font-weight: bold; }
.track-btn { display: block; background: #10b981; color: white; padding: 10px; text-align: center; border-radius: 6px; text-decoration: none; margin-bottom: 6px; font-size: 0.85rem; }

footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e2e8f0; font-size: 0.75rem; color: #94a3b8; }
.footer-links a { color: #3b82f6; text-decoration: none; margin: 0 5px; cursor: pointer; }

/* Modals */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: white; margin: 15% auto; padding: 25px; border-radius: 12px; width: 80%; max-width: 500px; position: relative; }
.close { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; color: #94a3b8; }