* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #0f0c29 100%);
    min-height: 100vh;
    color: #e0e0e0;
}
.container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }

header { text-align: center; margin-bottom: 40px; }
header h1 { font-size: 3em; font-weight: 800; letter-spacing: -1px; }
.ghost { color: #a855f7; }
.grad { color: #ffffff; }
.ai { color: #6366f1; font-style: italic; }
.subtitle { color: #888; margin-top: 8px; font-size: 1.1em; }

.main-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    padding: 16px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}
textarea:focus { outline: none; border-color: #a855f7; }
textarea::placeholder { color: #666; }

.controls {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}
select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.95em;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}
select:focus { outline: none; border-color: #a855f7; }
select option { background: #1a1a3e; }

#humanizeBtn {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 10px 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    flex: 1;
    min-width: 120px;
}
#humanizeBtn:hover { transform: scale(1.02); opacity: 0.9; }
#humanizeBtn:disabled { opacity: 0.5; cursor: not-allowed; }

#loading {
    text-align: center;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #a855f7;
}
.hidden { display: none !important; }

.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(168,85,247,0.3);
    border-top: 3px solid #a855f7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ai-score {
    font-size: 0.9em;
    font-weight: 600;
    color: #a855f7;
    background: rgba(168,85,247,0.15);
    padding: 6px 14px;
    border-radius: 20px;
}
.copy-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

.note {
    margin-top: 12px;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}
.tells-badge {
    margin-top: 10px;
    font-size: 0.85em;
    color: #22c55e;
    background: rgba(34,197,94,0.12);
    padding: 6px 14px;
    border-radius: 20px;
    text-align: center;
}
.verdict-badge {
    font-size: 0.8em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
}
.verdict-human { background: rgba(34,197,94,0.15); color: #22c55e; }
.verdict-mixed { background: rgba(234,179,8,0.15); color: #eab308; }
.verdict-ai { background: rgba(239,68,68,0.15); color: #ef4444; }
.pass-badge {
    margin-top: 6px;
    font-size: 0.75em;
    color: #888;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #555;
    font-size: 0.85em;
}
