:root {
    --bg: #0b0e14;
    --card: #121826;
    --muted: #9aa4bf;
    --text: #e6eaf2;
    --accent: #7c7cff;
    --border: #1f2937;
}

* {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 50% -10%, #1a1f3c, #0b0e14);
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 32px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

textarea {
    width: 100%;
    min-height: 180px;
    background: #0f1320;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

button{
    background: linear-gradient(135deg, var(--accent), #9f9fff);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    color: #0b0e14;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    color: var(--muted);
    font-size: 0.9rem;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

pre {
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    color: #d6dbff;
}