.auth-buttons {
    position: fixed;
    top: 32px;
    left: 32px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

/* Improve auth buttons look without affecting global buttons */
.auth-buttons .btn {
    padding: 10px 18px;
    border-radius: 9999px; /* pill */
    height: 38px;
    line-height: 18px;
}

.auth-buttons .btn-primary {
    background: linear-gradient(180deg, #ffffff, #eaeaea);
    color: #000;
    box-shadow: 0 2px 10px rgba(255,255,255,0.08);
}

.auth-buttons .btn-primary:hover {
    background: linear-gradient(180deg, #f5f5f5, #e2e2e2);
}

.auth-buttons .btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid #2d2d2d;
    backdrop-filter: saturate(120%) blur(6px);
}

.auth-buttons .btn:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

.user-profile {
    position: fixed;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(17,17,17,0.9);
    border: 1px solid #2a2a2a;
    border-radius: 9999px;
    padding: 6px 10px 6px 12px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: saturate(120%) blur(6px);
}

.user-profile .btn-sm {
    border-radius: 9999px;
}

.user-profile .btn-secondary {
    background: transparent;
    border-color: #2d2d2d;
}

.user-profile .btn-secondary:hover {
    border-color: #4a4a4a;
}

#userEmail {
    font-size: 0.9rem;
    color: #c9c9c9;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal h2 {
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #888888;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    outline: none;
}

.form-group input:focus {
    border-color: #ffffff;
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #666666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.btn-close:hover {
    color: #9b9b9b;
    transform: scale(1.05);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}

.w-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.profile-trigger {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}

.scores-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #222222;
}

.score-item:last-child {
    border-bottom: none;
}

.score-date {
    color: #666666;
    font-size: 0.85rem;
}

.score-stats {
    display: flex;
    gap: 16px;
}

.score-wpm {
    font-weight: 700;
}

.score-acc {
    color: #888888;
}

@media (max-width: 768px) {
    .auth-buttons, .user-profile {
        top: 20px;
        left: 20px;
    }

    .auth-buttons .btn {
        padding: 8px 14px;
        height: 34px;
    }
    
    .profile-trigger {
        bottom: 20px;
        right: 20px;
    }
}
