* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: #0ea5e9;
}

button {
    padding: 14px 24px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0284c7;
}

/* Loading */
.loading {
    text-align: center;
    padding: 30px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #0ea5e9;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

/* Profile Card */
.profile {
    text-align: center;
}

.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #0ea5e9;
    margin-bottom: 15px;
}

.profile h2 {
    margin-bottom: 5px;
    color: #0f172a;
}

.profile .username {
    color: #64748b;
    margin-bottom: 15px;
}

.profile .bio {
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.3rem;
    color: #0f172a;
}

.stat span {
    font-size: 0.85rem;
    color: #64748b;
}

.profile a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0f172a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.profile a:hover {
    background: #1e293b;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }

    form {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .stats {
        gap: 15px;
    }
}