body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 10;
}

h1 { color: #2d3748; margin-bottom: 1.5rem; font-size: 1.5rem; }

.input-group { margin-bottom: 1.5rem; text-align: left; }

label { display: block; margin-bottom: 0.5rem; color: #4a5568; font-weight: 500; }

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:focus { border-color: #4299e1; outline: none; box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2); }

button {
    width: 100%;
    padding: 12px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background: #2b6cb0; }

button:disabled { background: #a0aec0; cursor: not-allowed; }

#result { margin-top: 1.5rem; text-align: left; display: none; border-radius: 8px; overflow: hidden; }

.status-box { padding: 1.25rem; position: relative; }

.success { background: #f0fff4; border: 1px solid #c6f6d5; color: #22543d; }

.error { background: #fff5f5; border: 1px solid #fed7d7; color: #742a2a; }

.name-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(0,0,0,0.08);
    border-radius: 6px;
    color: inherit;
}

.result-header { font-weight: bold; font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; }

.info-row { margin: 0.25rem 0; font-size: 0.95rem; }

.fail-container { margin-top: 1rem; }

.fail-section {
    background: rgba(255,255,255,0.7);
    border-left: 4px solid #e53e3e;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
}

.fail-section strong { display: block; color: #c53030; margin-bottom: 0.25rem; }

.fail-section:last-child { margin-bottom: 0; }
