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

:root {
    --primary: #6366f1;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

header {
    background: var(--bg-card);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

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

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero { text-align: center; padding: 2rem 0; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { color: var(--muted); }

.uploader {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.field { margin-bottom: 1.5rem; }

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"], textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 200px;
    font-family: Consolas, monospace;
    resize: vertical;
}

small { color: var(--muted); font-size: 0.8rem; }

input[type="file"] {
    margin-top: 0.5rem;
    color: var(--muted);
}

button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

button:hover { background: var(--border); }

button.primary {
    width: 100%;
    background: var(--primary);
    border-color: var(--primary);
    font-weight: bold;
}

button.primary:hover { background: #4f46e5; }
button.primary:disabled { background: var(--border); cursor: not-allowed; }

.result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
}

.result.hidden { display: none; }
.result h3 { margin-bottom: 1rem; color: var(--success); }

.link-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.link-box input { flex: 1; }
.link-box button { padding: 0.5rem 1rem; }

.note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    margin-top: 3rem;
}